[Tizen] Exclude *.map file from test runner ISO (#29072)
diff --git a/src/test_driver/tizen/chip_tests/BUILD.gn b/src/test_driver/tizen/chip_tests/BUILD.gn
index 829371d..01b0e5e 100644
--- a/src/test_driver/tizen/chip_tests/BUILD.gn
+++ b/src/test_driver/tizen/chip_tests/BUILD.gn
@@ -30,6 +30,7 @@
# rebuild of the ISO image, so the test will be run with old
# binaries.
assets_non_tracked = [ rebase_path("${root_build_dir}/tests") ]
+ assets_non_tracked_exclude_globs = [ "*.map" ]
}
tizen_qemu_run("chip-tests") {
diff --git a/third_party/tizen/tizen_sdk.gni b/third_party/tizen/tizen_sdk.gni
index 3c8704a..ebbc8da 100644
--- a/third_party/tizen/tizen_sdk.gni
+++ b/third_party/tizen/tizen_sdk.gni
@@ -190,10 +190,26 @@
"-input-charset=default",
"-VCHIP", # Volume ID = CHIP
"-JRU", # Joliet + Rock Ridge with untranslated filenames
+ ]
+
+ # Exclude files from the ISO image which might otherwise be included
+ # by non-tracked assets in case of adding entire directory. This will
+ # not exclude files added explicitly.
+ if (defined(invoker.assets_non_tracked_exclude_globs)) {
+ foreach(glob, invoker.assets_non_tracked_exclude_globs) {
+ args += [
+ "-m",
+ glob,
+ ]
+ }
+ }
+
+ args += [
"-o",
rebase_path(image_file),
rebase_path(invoker.runner),
]
+
if (defined(invoker.assets)) {
args += invoker.assets
inputs += invoker.assets