mirror of https://github.com/ArduPilot/ardupilot
HAL_ChibiOS: fixed adding bootloader to ROMFS
This commit is contained in:
parent
e332bece0f
commit
3a5b3b4b1b
|
@ -954,14 +954,16 @@ def bootloader_path():
|
||||||
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def write_ROMFS(outdir):
|
def add_bootloader():
|
||||||
'''create ROMFS embedded header'''
|
'''added bootloader to ROMFS'''
|
||||||
from embed import create_embedded_h
|
|
||||||
|
|
||||||
bp = bootloader_path()
|
bp = bootloader_path()
|
||||||
if bp is not None:
|
if bp is not None:
|
||||||
romfs.append( ("bootloader.bin", bp) )
|
romfs.append( ("bootloader.bin", bp) )
|
||||||
|
|
||||||
|
def write_ROMFS(outdir):
|
||||||
|
'''create ROMFS embedded header'''
|
||||||
|
from embed import create_embedded_h
|
||||||
|
|
||||||
create_embedded_h(os.path.join(outdir, 'ap_romfs_embedded.h'), romfs)
|
create_embedded_h(os.path.join(outdir, 'ap_romfs_embedded.h'), romfs)
|
||||||
|
|
||||||
def write_prototype_file():
|
def write_prototype_file():
|
||||||
|
@ -1041,6 +1043,8 @@ def write_hwdef_header(outfilename):
|
||||||
else:
|
else:
|
||||||
write_UART_config_bootloader(f)
|
write_UART_config_bootloader(f)
|
||||||
|
|
||||||
|
add_bootloader()
|
||||||
|
|
||||||
if len(romfs) > 0:
|
if len(romfs) > 0:
|
||||||
f.write('#define HAL_HAVE_AP_ROMFS_EMBEDDED_H 1\n')
|
f.write('#define HAL_HAVE_AP_ROMFS_EMBEDDED_H 1\n')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue