diff options
author | Pierre-Clément Tosi <ptosi@google.com> | 2024-01-16 11:38:27 +0000 |
---|---|---|
committer | Android Build Cherrypicker Worker <android-build-cherrypicker-worker@google.com> | 2024-02-01 20:30:21 +0000 |
commit | ebc57ada793f9b5c10cdc034e2ccfdd50200296d (patch) | |
tree | 2b1dfab1dc13ea61dbfd943479667e1704e5f950 | |
parent | eddd0e2d9497c11c56af72cb59d8fb558aef35f2 (diff) | |
download | build-ebc57ada793f9b5c10cdc034e2ccfdd50200296d.tar.gz |
kleaf: common_kernels: Ignore cscope & tags
As the common_kernel_sources filegroup includes _any_ file in the tree,
with the exception of Git and Bazel files, the build system gets
confused if some files are present at the time where the glob is
evaluated but absent in following build commands. An example of this is
an IDE automatically updating the code index file when saving a source
file (e.g. tags.lock or tags.temp) as the kernel is getting built.
Given that cscope and tags files are officially supported by the Linux
Makefiles and as Bazel doesn't actually need them to build the kernel,
exclude them from the filegroup.
Test: build the kernel
(cherry picked from https://android-review.googlesource.com/q/commit:7a3b2fbab0d764d6f6acbcf36c7b45f02421cf55)
Merged-In: Id103c3f22dc286960fd703aac2c8e527cb718ff5
Change-Id: Id103c3f22dc286960fd703aac2c8e527cb718ff5
-rw-r--r-- | kleaf/common_kernels.bzl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/kleaf/common_kernels.bzl b/kleaf/common_kernels.bzl index 375a9446..f51eb8b7 100644 --- a/kleaf/common_kernels.bzl +++ b/kleaf/common_kernels.bzl @@ -536,6 +536,18 @@ def define_common_kernels( "BUILD.bazel", "**/*.bzl", ".git/**", + + # ctag files + "tags", + "TAGS", + + # temporary ctag files + "tags.temp", + "tags.lock", + + # cscope files + "cscope.*", + "ncscope.*", ], ), ) |