Browse Source

HAL_ChibiOS: embed hwdef.dat in ROMFS for all boards

zr-v5.1
Andrew Tridgell 5 years ago
parent
commit
2c26807736
  1. 3
      libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py

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

@ -1640,8 +1640,7 @@ def write_all_lines(hwdat): @@ -1640,8 +1640,7 @@ def write_all_lines(hwdat):
f = open(hwdat, 'w')
f.write('\n'.join(all_lines))
f.close()
flash_size = get_config('FLASH_SIZE_KB', type=int)
if flash_size > 1024:
if not 'AP_PERIPH' in env_vars:
romfs["hwdef.dat"] = hwdat
def write_hwdef_header(outfilename):

Loading…
Cancel
Save