From 36b5ce80fbd6d4e713034ed71ea0f7707cd7b464 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 21 Sep 2026 14:30:28 +1000 Subject: [PATCH] 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. --- Tools/ardupilotwaf/boards.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Tools/ardupilotwaf/boards.py b/Tools/ardupilotwaf/boards.py index 270286b166b..28f3383ca5e 100644 --- a/Tools/ardupilotwaf/boards.py +++ b/Tools/ardupilotwaf/boards.py @@ -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']