Skip to content

Commit

Permalink
ANDROID: Kleaf: use globs to express sources
Browse files Browse the repository at this point in the history
The updated kernel_build macro requires the usage of glob() to express
the sources involved.

Bug: 189451175
Signed-off-by: Matthias Maennich <[email protected]>
Change-Id: Ib5953fe4ed2c4a219f2296c1991daa317032f64e
  • Loading branch information
metti committed Jun 29, 2021
1 parent f0c4848 commit 3b77e03
Showing 1 changed file with 8 additions and 20 deletions.
28 changes: 8 additions & 20 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit 3b77e03

Please sign in to comment.