diff --git a/src/test_driver/tizen/chip_tests/BUILD.gn b/src/test_driver/tizen/chip_tests/BUILD.gn index 829371df7cc620..01b0e5e70246be 100644 --- a/src/test_driver/tizen/chip_tests/BUILD.gn +++ b/src/test_driver/tizen/chip_tests/BUILD.gn @@ -30,6 +30,7 @@ tizen_qemu_mkisofs("chip-tests-runner") { # 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 3c8704a8491a13..ebbc8dadd077d0 100644 --- a/third_party/tizen/tizen_sdk.gni +++ b/third_party/tizen/tizen_sdk.gni @@ -190,10 +190,26 @@ template("tizen_qemu_mkisofs") { "-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