diff options
author | Chris Parsons <cparsons@google.com> | 2021-02-23 15:27:58 -0500 |
---|---|---|
committer | Chris Parsons <cparsons@google.com> | 2021-02-24 14:32:16 -0500 |
commit | 98b92e00c80f27aab2c0937f55ced6073ffa32a8 (patch) | |
tree | b1bab1d9b22157335c65dfa0963bd5497688a3f6 /libc | |
parent | 14851abce9d6b46140760d9e73c43a8b045bc24e (diff) |
Make libc genrules and its tool dep bp2build_available
Test: lunch aosp_flame && USE_BAZEL_ANALYSIS=1 m libc
Test: lunch aosp_flame && USE_BAZEL_ANALYSIS=1 m crtbegin_so1
Change-Id: I12380ef9294f8b7c3b00ea700d804c1abde7ad04
Diffstat (limited to 'libc')
-rw-r--r-- | libc/Android.bp | 24 | ||||
-rw-r--r-- | libc/BUILD.bazel | 36 | ||||
-rw-r--r-- | libc/tools/Android.bp | 3 | ||||
-rw-r--r-- | libc/tools/BUILD.bazel | 8 |
4 files changed, 21 insertions, 50 deletions
diff --git a/libc/Android.bp b/libc/Android.bp index 8d0a24bba..7182e3f83 100644 --- a/libc/Android.bp +++ b/libc/Android.bp @@ -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 { @@ -2100,7 +2112,9 @@ cc_object { defaults: ["crt_so_defaults"], - bazel_module: { bp2build_available: true }, + bazel_module: { + bp2build_available: true, + }, } cc_object { diff --git a/libc/BUILD.bazel b/libc/BUILD.bazel deleted file mode 100644 index 2fda45f78..000000000 --- a/libc/BUILD.bazel +++ /dev/null @@ -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 $< > $@", -) diff --git a/libc/tools/Android.bp b/libc/tools/Android.bp index 0b0b24004..575a31a9a 100644 --- a/libc/tools/Android.bp +++ b/libc/tools/Android.bp @@ -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. diff --git a/libc/tools/BUILD.bazel b/libc/tools/BUILD.bazel deleted file mode 100644 index 469cfabb3..000000000 --- a/libc/tools/BUILD.bazel +++ /dev/null @@ -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__"], -) |