diff --git a/libc/Android.bp b/libc/Android.bp index 3ee7c0a88..a157b3ff2 100644 --- a/libc/Android.bp +++ b/libc/Android.bp @@ -1307,8 +1307,8 @@ genrule { name: "syscalls-arm.S", out: ["syscalls-arm.S"], srcs: ["SYSCALLS.TXT"], - tool_files: [":bionic-gensyscalls"], - cmd: "$(location :bionic-gensyscalls) arm $(in) > $(out)", + tools: ["gensyscalls"], + cmd: "$(location gensyscalls) arm $(in) > $(out)", bazel_module: { bp2build_available: true, } @@ -1318,8 +1318,8 @@ genrule { name: "syscalls-arm64.S", out: ["syscalls-arm64.S"], srcs: ["SYSCALLS.TXT"], - tool_files: [":bionic-gensyscalls"], - cmd: "$(location :bionic-gensyscalls) arm64 $(in) > $(out)", + tools: ["gensyscalls"], + cmd: "$(location gensyscalls) arm64 $(in) > $(out)", bazel_module: { bp2build_available: true, }, @@ -1329,8 +1329,8 @@ genrule { name: "syscalls-x86.S", out: ["syscalls-x86.S"], srcs: ["SYSCALLS.TXT"], - tool_files: [":bionic-gensyscalls"], - cmd: "$(location :bionic-gensyscalls) x86 $(in) > $(out)", + tools: ["gensyscalls"], + cmd: "$(location gensyscalls) x86 $(in) > $(out)", bazel_module: { bp2build_available: true, }, @@ -1340,8 +1340,8 @@ genrule { name: "syscalls-x86_64.S", out: ["syscalls-x86_64.S"], srcs: ["SYSCALLS.TXT"], - tool_files: [":bionic-gensyscalls"], - cmd: "$(location :bionic-gensyscalls) x86_64 $(in) > $(out)", + tools: ["gensyscalls"], + cmd: "$(location gensyscalls) x86_64 $(in) > $(out)", bazel_module: { bp2build_available: true, }, @@ -1811,8 +1811,8 @@ genrule { name: "libc.arm.map", out: ["libc.arm.map"], srcs: ["libc.map.txt"], - tool_files: [":bionic-generate-version-script"], - cmd: "$(location :bionic-generate-version-script) arm $(in) $(out)", + tools: ["generate-version-script"], + cmd: "$(location generate-version-script) arm $(in) $(out)", bazel_module: { bp2build_available: true }, } @@ -1820,8 +1820,8 @@ genrule { name: "libc.arm64.map", out: ["libc.arm64.map"], srcs: ["libc.map.txt"], - tool_files: [":bionic-generate-version-script"], - cmd: "$(location :bionic-generate-version-script) arm64 $(in) $(out)", + tools: ["generate-version-script"], + cmd: "$(location generate-version-script) arm64 $(in) $(out)", bazel_module: { bp2build_available: true }, } @@ -1829,8 +1829,8 @@ genrule { name: "libc.x86.map", out: ["libc.x86.map"], srcs: ["libc.map.txt"], - tool_files: [":bionic-generate-version-script"], - cmd: "$(location :bionic-generate-version-script) x86 $(in) $(out)", + tools: ["generate-version-script"], + cmd: "$(location generate-version-script) x86 $(in) $(out)", bazel_module: { bp2build_available: true }, } @@ -1838,8 +1838,8 @@ genrule { name: "libc.x86_64.map", out: ["libc.x86_64.map"], srcs: ["libc.map.txt"], - tool_files: [":bionic-generate-version-script"], - cmd: "$(location :bionic-generate-version-script) x86_64 $(in) $(out)", + tools: ["generate-version-script"], + cmd: "$(location generate-version-script) x86_64 $(in) $(out)", bazel_module: { bp2build_available: true }, } @@ -2040,32 +2040,32 @@ genrule { name: "libstdc++.arm.map", out: ["libstdc++.arm.map"], srcs: ["libstdc++.map.txt"], - tool_files: [":bionic-generate-version-script"], - cmd: "$(location :bionic-generate-version-script) arm $(in) $(out)", + tools: ["generate-version-script"], + cmd: "$(location generate-version-script) arm $(in) $(out)", } genrule { name: "libstdc++.arm64.map", out: ["libstdc++.arm64.map"], srcs: ["libstdc++.map.txt"], - tool_files: [":bionic-generate-version-script"], - cmd: "$(location :bionic-generate-version-script) arm64 $(in) $(out)", + tools: ["generate-version-script"], + cmd: "$(location generate-version-script) arm64 $(in) $(out)", } genrule { name: "libstdc++.x86.map", out: ["libstdc++.x86.map"], srcs: ["libstdc++.map.txt"], - tool_files: [":bionic-generate-version-script"], - cmd: "$(location :bionic-generate-version-script) x86 $(in) $(out)", + tools: ["generate-version-script"], + cmd: "$(location generate-version-script) x86 $(in) $(out)", } genrule { name: "libstdc++.x86_64.map", out: ["libstdc++.x86_64.map"], srcs: ["libstdc++.map.txt"], - tool_files: [":bionic-generate-version-script"], - cmd: "$(location :bionic-generate-version-script) x86_64 $(in) $(out)", + tools: ["generate-version-script"], + cmd: "$(location generate-version-script) x86_64 $(in) $(out)", } // ======================================================== diff --git a/libc/tools/Android.bp b/libc/tools/Android.bp index 116b853d5..c7fce647f 100644 --- a/libc/tools/Android.bp +++ b/libc/tools/Android.bp @@ -8,8 +8,8 @@ package { default_applicable_licenses: ["bionic_libc_license"], } -filegroup { - name: "bionic-gensyscalls", +python_binary_host { + name: "gensyscalls", srcs: ["gensyscalls.py"], } diff --git a/libdl/Android.bp b/libdl/Android.bp index 750a6e26f..9714af572 100644 --- a/libdl/Android.bp +++ b/libdl/Android.bp @@ -241,30 +241,30 @@ genrule { name: "libdl.arm.map", out: ["libdl.arm.map"], srcs: ["libdl.map.txt"], - tool_files: [":bionic-generate-version-script"], - cmd: "$(location :bionic-generate-version-script) arm $(in) $(out)", + tools: ["generate-version-script"], + cmd: "$(location generate-version-script) arm $(in) $(out)", } genrule { name: "libdl.arm64.map", out: ["libdl.arm64.map"], srcs: ["libdl.map.txt"], - tool_files: [":bionic-generate-version-script"], - cmd: "$(location :bionic-generate-version-script) arm64 $(in) $(out)", + tools: ["generate-version-script"], + cmd: "$(location generate-version-script) arm64 $(in) $(out)", } genrule { name: "libdl.x86.map", out: ["libdl.x86.map"], srcs: ["libdl.map.txt"], - tool_files: [":bionic-generate-version-script"], - cmd: "$(location :bionic-generate-version-script) x86 $(in) $(out)", + tools: ["generate-version-script"], + cmd: "$(location generate-version-script) x86 $(in) $(out)", } genrule { name: "libdl.x86_64.map", out: ["libdl.x86_64.map"], srcs: ["libdl.map.txt"], - tool_files: [":bionic-generate-version-script"], - cmd: "$(location :bionic-generate-version-script) x86_64 $(in) $(out)", + tools: ["generate-version-script"], + cmd: "$(location generate-version-script) x86_64 $(in) $(out)", } diff --git a/libm/Android.bp b/libm/Android.bp index 7469cde0a..641956c4c 100644 --- a/libm/Android.bp +++ b/libm/Android.bp @@ -560,30 +560,30 @@ genrule { name: "libm.arm.map", out: ["libm.arm.map"], srcs: ["libm.map.txt"], - tool_files: [":bionic-generate-version-script"], - cmd: "$(location :bionic-generate-version-script) arm $(in) $(out)", + tools: ["generate-version-script"], + cmd: "$(location generate-version-script) arm $(in) $(out)", } genrule { name: "libm.arm64.map", out: ["libm.arm64.map"], srcs: ["libm.map.txt"], - tool_files: [":bionic-generate-version-script"], - cmd: "$(location :bionic-generate-version-script) arm64 $(in) $(out)", + tools: ["generate-version-script"], + cmd: "$(location generate-version-script) arm64 $(in) $(out)", } genrule { name: "libm.x86.map", out: ["libm.x86.map"], srcs: ["libm.map.txt"], - tool_files: [":bionic-generate-version-script"], - cmd: "$(location :bionic-generate-version-script) x86 $(in) $(out)", + tools: ["generate-version-script"], + cmd: "$(location generate-version-script) x86 $(in) $(out)", } genrule { name: "libm.x86_64.map", out: ["libm.x86_64.map"], srcs: ["libm.map.txt"], - tool_files: [":bionic-generate-version-script"], - cmd: "$(location :bionic-generate-version-script) x86_64 $(in) $(out)", + tools: ["generate-version-script"], + cmd: "$(location generate-version-script) x86_64 $(in) $(out)", } diff --git a/tools/Android.bp b/tools/Android.bp index dcd2a7d84..d3ca28a5c 100644 --- a/tools/Android.bp +++ b/tools/Android.bp @@ -15,7 +15,7 @@ license { subdirs = ["*"] -filegroup { - name: "bionic-generate-version-script", +python_binary_host { + name: "generate-version-script", srcs: ["generate-version-script.py"], }