mirror of https://github.com/ArduPilot/ardupilot
AP_HAL_ChibiOS: Make BOARD_FLASH_SIZE available at configure time
This commit is contained in:
parent
0a7cf77de4
commit
a34ac14ec5
|
@ -572,6 +572,7 @@ def write_mcu_config(f):
|
|||
f.write('#define %s\n' % d[7:])
|
||||
flash_size = get_config('FLASH_SIZE_KB', type=int)
|
||||
f.write('#define BOARD_FLASH_SIZE %u\n' % flash_size)
|
||||
env_vars['BOARD_FLASH_SIZE'] = flash_size
|
||||
f.write('#define CRT1_AREAS_NUMBER 1\n')
|
||||
|
||||
flash_reserve_start = get_config(
|
||||
|
|
Loading…
Reference in New Issue