Merge "Switch to the more common idiom for scripts in genrules."

This commit is contained in:
Colin Cross 2022-07-01 02:57:12 +00:00 committed by Gerrit Code Review
commit cb8b43e1dd
5 changed files with 44 additions and 44 deletions

View File

@ -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)",
}
// ========================================================

View File

@ -8,8 +8,8 @@ package {
default_applicable_licenses: ["bionic_libc_license"],
}
filegroup {
name: "bionic-gensyscalls",
python_binary_host {
name: "gensyscalls",
srcs: ["gensyscalls.py"],
}

View File

@ -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)",
}

View File

@ -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)",
}

View File

@ -15,7 +15,7 @@ license {
subdirs = ["*"]
filegroup {
name: "bionic-generate-version-script",
python_binary_host {
name: "generate-version-script",
srcs: ["generate-version-script.py"],
}