AP_HAL_ChibiOS: Make BOARD_FLASH_SIZE available at configure time

This commit is contained in:
Michael du Breuil 2019-06-17 15:24:58 -07:00 committed by WickedShell
parent 0a7cf77de4
commit a34ac14ec5
1 changed files with 1 additions and 0 deletions

View File

@ -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(