mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
chibios_hwdef.py: allow re-use of bootloader from other boards
This commit is contained in:
parent
81f2e15f8b
commit
1862b5dc27
@ -2413,6 +2413,10 @@ INCLUDE common.ld
|
||||
this_dir = os.path.realpath(__file__)
|
||||
rootdir = os.path.relpath(os.path.join(this_dir, "../../../../.."))
|
||||
hwdef_dirname = os.path.basename(os.path.dirname(args.hwdef[0]))
|
||||
# allow re-using of bootloader from different build:
|
||||
use_bootloader_from_board = self.get_config('USE_BOOTLOADER_FROM_BOARD', default=None, required=False)
|
||||
if use_bootloader_from_board is not None:
|
||||
hwdef_dirname = use_bootloader_from_board
|
||||
bootloader_filename = "%s_bl.bin" % (hwdef_dirname,)
|
||||
bootloader_path = os.path.join(rootdir,
|
||||
"Tools",
|
||||
|
Loading…
Reference in New Issue
Block a user