HAL_ChibiOS: embed hwdef.dat in ROMFS for all boards

This commit is contained in:
Andrew Tridgell 2020-03-30 12:22:00 +11:00
parent bd07e8516f
commit 2c26807736
1 changed files with 1 additions and 2 deletions

View File

@ -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):