mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
AP_HAL_ChibiOS: allow embedded bootloader to be excluded
Co-authored-by: Peter Barker <pb-gh@barker.dropbear.id.au>
This commit is contained in:
parent
8667130db7
commit
086f184c36
@ -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…
Reference in New Issue
Block a user