aboutsummaryrefslogtreecommitdiff
path: root/rules/apex/BUILD
diff options
context:
space:
mode:
authorCole Faust <colefaust@google.com>2022-05-31 16:10:01 -0700
committerCole Faust <colefaust@google.com>2022-05-31 17:36:17 -0700
commita3c93719897b092c6d49e558999c73ceb76e1e3d (patch)
tree5102794cee0d3ecbeacacfed8a4f8abd7bf0c667 /rules/apex/BUILD
parentcc14b369b6913a344766c5d50c81186e6776bb8d (diff)
downloadbazel-a3c93719897b092c6d49e558999c73ceb76e1e3d.tar.gz
Use bazel-built apexer tools instead of make_injection ones
These tools can now be built via bp2build/bazel. Bug: 204244290 Test: ./build/baze/ci/bp2build.sh Change-Id: Ie015e00bf79efcca91561b18f5eda67d3de4a697
Diffstat (limited to 'rules/apex/BUILD')
-rw-r--r--rules/apex/BUILD16
1 files changed, 8 insertions, 8 deletions
diff --git a/rules/apex/BUILD b/rules/apex/BUILD
index 72cb24e6..b5b2ed35 100644
--- a/rules/apex/BUILD
+++ b/rules/apex/BUILD
@@ -35,7 +35,7 @@ bool_flag(
toolchain_type(name = "apex_toolchain_type")
apex_toolchain(
- name = "prebuilt_apex_toolchain",
+ name = "apex_toolchain",
aapt2 = "//prebuilts/sdk/tools:linux/bin/aapt2",
avbtool = "//external/avb:avbtool",
apexer = "@make_injection//:host/linux-x86/bin/apexer",
@@ -43,14 +43,14 @@ apex_toolchain(
resize2fs = "//external/e2fsprogs/resize:resize2fs",
e2fsdroid = "//external/e2fsprogs/contrib/android:e2fsdroid",
sefcontext_compile = "//external/selinux/libselinux:sefcontext_compile",
- conv_apex_manifest = "@make_injection//:host/linux-x86/bin/conv_apex_manifest",
+ conv_apex_manifest = "//system/apex/apexer:conv_apex_manifest",
android_jar = "//prebuilts/sdk/current:public/android.jar",
- apex_compression_tool = "@make_injection//:host/linux-x86/bin/apex_compression_tool",
+ apex_compression_tool = "//system/apex/tools:apex_compression_tool",
soong_zip = "//prebuilts/build-tools:linux-x86/bin/soong_zip",
)
toolchain(
- name = "prebuilt_apex_toolchain_def",
+ name = "apex_toolchain_def",
exec_compatible_with = [
"//build/bazel/platforms/arch:x86_64",
"//build/bazel/platforms/os:linux",
@@ -58,7 +58,7 @@ toolchain(
target_compatible_with = [
"//build/bazel/platforms/os:android",
],
- toolchain = ":prebuilt_apex_toolchain",
+ toolchain = ":apex_toolchain",
toolchain_type = "//build/bazel/rules/apex:apex_toolchain_type",
)
@@ -84,10 +84,10 @@ sh_test(
"//prebuilts/build-tools:linux-x86/bin/soong_zip",
"//prebuilts/sdk/current:public/android.jar",
"//prebuilts/sdk/tools:linux/bin/aapt2",
- "@make_injection//:host/linux-x86/bin/apex_compression_tool",
+ "//system/apex/apexer:conv_apex_manifest",
+ "//system/apex/tools:apex_compression_tool",
+ "//system/apex/tools:deapexer",
"@make_injection//:host/linux-x86/bin/apexer",
- "@make_injection//:host/linux-x86/bin/conv_apex_manifest",
- "@make_injection//:host/linux-x86/bin/deapexer",
],
# This is a host test.
target_compatible_with = select({