ANDROID: Kleaf: use globs to express sources
The updated kernel_build macro requires the usage of glob() to express the sources involved. Bug: 189451175 Signed-off-by: Matthias Maennich <maennich@google.com> Change-Id: Ib5953fe4ed2c4a219f2296c1991daa317032f64e
This commit is contained in:
parent
f0c48487a5
commit
3b77e032e0
28
BUILD.bazel
28
BUILD.bazel
@ -14,24 +14,6 @@
|
||||
|
||||
load("//build/kleaf:kernel.bzl", "kernel_build")
|
||||
|
||||
filegroup(
|
||||
name = "build_configs",
|
||||
srcs = glob(["build.config.*"]),
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "sources",
|
||||
srcs = glob(
|
||||
["**"],
|
||||
exclude = [
|
||||
"build.config.*",
|
||||
"android/*",
|
||||
"BUILD.bazel",
|
||||
"**/*.bzl",
|
||||
],
|
||||
),
|
||||
)
|
||||
|
||||
common_outs = [
|
||||
"System.map",
|
||||
"modules.builtin",
|
||||
@ -53,8 +35,14 @@ x86_64_outs = common_outs + ["bzImage"]
|
||||
name = name,
|
||||
outs = outs,
|
||||
build_config = config,
|
||||
build_configs = "//common:build_configs",
|
||||
sources = "//common:sources",
|
||||
sources = glob(
|
||||
["**"],
|
||||
exclude = [
|
||||
"android/*",
|
||||
"BUILD.bazel",
|
||||
"**/*.bzl",
|
||||
],
|
||||
),
|
||||
) for name, config, outs in [
|
||||
(
|
||||
"kernel_aarch64",
|
||||
|
Loading…
Reference in New Issue
Block a user