mirror of https://github.com/ArduPilot/ardupilot
HAL_ChibiOS: embed hwdef.dat in ROMFS for all boards
This commit is contained in:
parent
bd07e8516f
commit
2c26807736
|
@ -1640,8 +1640,7 @@ def write_all_lines(hwdat):
|
||||||
f = open(hwdat, 'w')
|
f = open(hwdat, 'w')
|
||||||
f.write('\n'.join(all_lines))
|
f.write('\n'.join(all_lines))
|
||||||
f.close()
|
f.close()
|
||||||
flash_size = get_config('FLASH_SIZE_KB', type=int)
|
if not 'AP_PERIPH' in env_vars:
|
||||||
if flash_size > 1024:
|
|
||||||
romfs["hwdef.dat"] = hwdat
|
romfs["hwdef.dat"] = hwdat
|
||||||
|
|
||||||
def write_hwdef_header(outfilename):
|
def write_hwdef_header(outfilename):
|
||||||
|
|
Loading…
Reference in New Issue