Changes to bionic/libc to demonstrate mixed builds.
Test: source build/envsetup.sh && lunch 16 && source build/soong/bazel/bazelenv.sh && m, then verify ninja file was based on intermediates from bazel-out Change-Id: I89f320dd58083710012ea1f8e3902e723602ea37
This commit is contained in:
parent
f2c245c8de
commit
8b768d3f1a
|
@ -1266,6 +1266,7 @@ genrule {
|
|||
srcs: ["SYSCALLS.TXT"],
|
||||
tool_files: [":bionic-gensyscalls"],
|
||||
cmd: "$(location :bionic-gensyscalls) arm $(in) > $(out)",
|
||||
bazel_module: { label: "//bionic/libc:syscalls-arm" }
|
||||
}
|
||||
|
||||
genrule {
|
||||
|
@ -1274,6 +1275,7 @@ genrule {
|
|||
srcs: ["SYSCALLS.TXT"],
|
||||
tool_files: [":bionic-gensyscalls"],
|
||||
cmd: "$(location :bionic-gensyscalls) arm64 $(in) > $(out)",
|
||||
bazel_module: { label: "//bionic/libc:syscalls-arm64" },
|
||||
}
|
||||
|
||||
genrule {
|
||||
|
@ -1282,6 +1284,7 @@ genrule {
|
|||
srcs: ["SYSCALLS.TXT"],
|
||||
tool_files: [":bionic-gensyscalls"],
|
||||
cmd: "$(location :bionic-gensyscalls) x86 $(in) > $(out)",
|
||||
bazel_module: { label: "//bionic/libc:syscalls-x86" },
|
||||
}
|
||||
|
||||
genrule {
|
||||
|
@ -1290,6 +1293,7 @@ genrule {
|
|||
srcs: ["SYSCALLS.TXT"],
|
||||
tool_files: [":bionic-gensyscalls"],
|
||||
cmd: "$(location :bionic-gensyscalls) x86_64 $(in) > $(out)",
|
||||
bazel_module: { label: "//bionic/libc:syscalls-x86_64" },
|
||||
}
|
||||
|
||||
cc_library_static {
|
||||
|
|
|
@ -0,0 +1,36 @@
|
|||
# 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 $< > $@",
|
||||
)
|
|
@ -0,0 +1,8 @@
|
|||
# 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 New Issue