Merge "Make libc genrules and its tool dep bp2build_available"
This commit is contained in:
commit
47b5c5d752
4 changed files with 21 additions and 50 deletions
|
@ -1288,7 +1288,10 @@ genrule {
|
|||
srcs: ["SYSCALLS.TXT"],
|
||||
tool_files: [":bionic-gensyscalls"],
|
||||
cmd: "$(location :bionic-gensyscalls) arm $(in) > $(out)",
|
||||
bazel_module: { label: "//bionic/libc:syscalls-arm" }
|
||||
bazel_module: {
|
||||
bp2build_available: true,
|
||||
label: "//bionic/libc:syscalls-arm.S"
|
||||
}
|
||||
}
|
||||
|
||||
genrule {
|
||||
|
@ -1297,7 +1300,10 @@ genrule {
|
|||
srcs: ["SYSCALLS.TXT"],
|
||||
tool_files: [":bionic-gensyscalls"],
|
||||
cmd: "$(location :bionic-gensyscalls) arm64 $(in) > $(out)",
|
||||
bazel_module: { label: "//bionic/libc:syscalls-arm64" },
|
||||
bazel_module: {
|
||||
bp2build_available: true,
|
||||
label: "//bionic/libc:syscalls-arm64.S"
|
||||
},
|
||||
}
|
||||
|
||||
genrule {
|
||||
|
@ -1306,7 +1312,10 @@ genrule {
|
|||
srcs: ["SYSCALLS.TXT"],
|
||||
tool_files: [":bionic-gensyscalls"],
|
||||
cmd: "$(location :bionic-gensyscalls) x86 $(in) > $(out)",
|
||||
bazel_module: { label: "//bionic/libc:syscalls-x86" },
|
||||
bazel_module: {
|
||||
bp2build_available: true,
|
||||
label: "//bionic/libc:syscalls-x86.S"
|
||||
},
|
||||
}
|
||||
|
||||
genrule {
|
||||
|
@ -1315,7 +1324,10 @@ genrule {
|
|||
srcs: ["SYSCALLS.TXT"],
|
||||
tool_files: [":bionic-gensyscalls"],
|
||||
cmd: "$(location :bionic-gensyscalls) x86_64 $(in) > $(out)",
|
||||
bazel_module: { label: "//bionic/libc:syscalls-x86_64" },
|
||||
bazel_module: {
|
||||
bp2build_available: true,
|
||||
label: "//bionic/libc:syscalls-x86_64.S"
|
||||
},
|
||||
}
|
||||
|
||||
cc_library_static {
|
||||
|
@ -2105,7 +2117,9 @@ cc_object {
|
|||
|
||||
defaults: ["crt_so_defaults"],
|
||||
|
||||
bazel_module: { bp2build_available: true },
|
||||
bazel_module: {
|
||||
bp2build_available: true,
|
||||
},
|
||||
}
|
||||
|
||||
cc_object {
|
||||
|
|
|
@ -1,36 +0,0 @@
|
|||
# This file added for experimental interoperability with Bazel.
|
||||
package(
|
||||
default_visibility = ["@//:__pkg__"],
|
||||
)
|
||||
|
||||
genrule(
|
||||
name = "syscalls-arm",
|
||||
outs = ["syscalls-arm.S"],
|
||||
srcs = ["SYSCALLS.TXT"],
|
||||
tools = ["//bionic/libc/tools:bionic-gensyscalls"],
|
||||
cmd = "$(location //bionic/libc/tools:bionic-gensyscalls) arm $< > $@",
|
||||
)
|
||||
|
||||
genrule(
|
||||
name = "syscalls-arm64",
|
||||
outs = ["syscalls-arm64.S"],
|
||||
srcs = ["SYSCALLS.TXT"],
|
||||
tools = ["//bionic/libc/tools:bionic-gensyscalls"],
|
||||
cmd = "$(location //bionic/libc/tools:bionic-gensyscalls) arm64 $< > $@",
|
||||
)
|
||||
|
||||
genrule(
|
||||
name = "syscalls-x86",
|
||||
outs = ["syscalls-x86.S"],
|
||||
srcs = ["SYSCALLS.TXT"],
|
||||
tools = ["//bionic/libc/tools:bionic-gensyscalls"],
|
||||
cmd = "$(location //bionic/libc/tools:bionic-gensyscalls) x86 $< > $@",
|
||||
)
|
||||
|
||||
genrule(
|
||||
name = "syscalls-x86_64",
|
||||
outs = ["syscalls-x86_64.S"],
|
||||
srcs = ["SYSCALLS.TXT"],
|
||||
tools = ["//bionic/libc/tools:bionic-gensyscalls"],
|
||||
cmd = "$(location //bionic/libc/tools:bionic-gensyscalls) x86_64 $< > $@",
|
||||
)
|
|
@ -10,7 +10,8 @@ package {
|
|||
|
||||
filegroup {
|
||||
name: "bionic-gensyscalls",
|
||||
srcs: ["gensyscalls.py"]
|
||||
srcs: ["gensyscalls.py"],
|
||||
bazel_module: { bp2build_available: true },
|
||||
}
|
||||
|
||||
// Generate the C++ policy sources for app and system seccomp-bpf filters.
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
# This file added for experimental interoperability with Bazel.
|
||||
package(default_visibility = ["//visibility:private"])
|
||||
|
||||
filegroup(
|
||||
name = "bionic-gensyscalls",
|
||||
srcs = ["gensyscalls.py"],
|
||||
visibility = ["//bionic/libc:__pkg__"],
|
||||
)
|
Loading…
Reference in a new issue