Browse Source

AP_HAL_ChibiOS: allow embedded bootloader to be excluded

Co-authored-by: Peter Barker <pb-gh@barker.dropbear.id.au>
c415-sdk
bugobliterator 4 years ago committed by Peter Barker
parent
commit
7e8f11b749
  1. 6
      libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py

6
libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py

@ -1686,8 +1686,12 @@ def bootloader_path(): @@ -1686,8 +1686,12 @@ def bootloader_path():
def add_bootloader():
'''added bootloader to ROMFS'''
bp = bootloader_path()
if bp is not None:
if bp is not None and int(get_config('BOOTLOADER_EMBED', required=False, default='1')):
romfs["bootloader.bin"] = bp
env_vars['BOOTLOADER_EMBED'] = 1
else:
env_vars['BOOTLOADER_EMBED'] = 0
def write_ROMFS(outdir):

Loading…
Cancel
Save