AP_HAL_ChibiOS: add env option to omit hwdef.dat from romfs

This commit is contained in:
Peter Barker 2024-08-01 14:29:59 +10:00 committed by Peter Barker
parent d3ab49205b
commit ba2bec07fa
1 changed files with 1 additions and 1 deletions

View File

@ -2574,7 +2574,7 @@ Please run: Tools/scripts/build_bootloaders.py %s
f = open(hwdat, 'w')
f.write('\n'.join(self.all_lines))
f.close()
if not self.is_periph_fw():
if not self.is_periph_fw() and not os.getenv("NO_ROMFS_HWDEF", False):
self.romfs["hwdef.dat"] = hwdat
def write_defaulting_define(self, f, name, value):