diff options
author | Yifan Hong <elsk@google.com> | 2022-09-14 12:15:18 -0700 |
---|---|---|
committer | Yifan Hong <elsk@google.com> | 2022-09-14 19:18:47 +0000 |
commit | 67e88a473c41adb934edc961f54fe7b9932b4578 (patch) | |
tree | f59d300ce0979d14756a3a158b869c62ea8695ef | |
parent | 32ed2fd5bb81f9bb2a53d8c75028113fd30f3229 (diff) | |
download | build-67e88a473c41adb934edc961f54fe7b9932b4578.tar.gz |
kleaf: exclude backup files in glob expression
... where the result of the glob expression is used in
conditionals in Bazel macros and rules. The most
significant one is where we look for KMI symbol lists.
Also exclude backup files create by some editors to avoid
the ABI monitoring tools to add unexpected files
(e.g. android/abi_gki_aarch64.xml~).
Test: TH
Bug: 246344503
Change-Id: I26a757bbd6feaf5715b765186ce7dc02846fd666
-rw-r--r-- | kleaf/common_kernels.bzl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/kleaf/common_kernels.bzl b/kleaf/common_kernels.bzl index 719716d4..d373c716 100644 --- a/kleaf/common_kernels.bzl +++ b/kleaf/common_kernels.bzl @@ -105,7 +105,11 @@ def _default_target_configs(): aarch64_kmi_symbol_list = aarch64_kmi_symbol_list[0] if aarch64_kmi_symbol_list else None aarch64_additional_kmi_symbol_lists = native.glob( ["android/abi_gki_aarch64*"], - exclude = ["**/*.xml", "android/abi_gki_aarch64"], + exclude = [ + "**/*.xml", + "**/*~", + "android/abi_gki_aarch64", + ], ) aarch64_trim_and_check = bool(aarch64_kmi_symbol_list) or len(aarch64_additional_kmi_symbol_lists) > 0 aarch64_abi_definition = native.glob(["android/abi_gki_aarch64.xml"]) |