waf: embed ROMFS files named like the directory beside them

SITL's ROMFS gains files which sort just before a directory of the same
name, at the top level and below it, so MAVFTPListROMFS checks such a
directory is still listed.
This commit is contained in:
Peter Barker
2026-09-24 18:35:09 +10:00
committed by Peter Barker
parent bbb6c224aa
commit 36b5ce80fb
+5
View File
@@ -945,6 +945,11 @@ class SITLBoard(Board):
for name in ('f' * 300, 'd' * 300 + '/file'):
env.ROMFS_FILES += [('autotest_fixtures/long_names/' + name, 'Tools/autotest/default_params/copter-X.parm')]
# files named like the directory beside them, which sort just before
# it, at the top level and below, so autotest can check both listed
for name in ('autotest_fixtures.txt', 'autotest_fixtures/nested/sub.txt', 'autotest_fixtures/nested/sub/file'):
env.ROMFS_FILES += [(name, 'Tools/autotest/default_params/copter-X.parm')]
if cfg.options.sitl_rgbled:
env.CXXFLAGS += ['-DWITH_SITL_RGBLED']