aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiyong Park <jiyong@google.com>2020-12-07 15:49:47 +0900
committerJiyong Park <jiyong@google.com>2020-12-14 16:09:14 +0900
commit9f190431da743694557d54b0ba3721295a1106d2 (patch)
tree5cd77bd7d872fbf6d733b43e3f092cf56a2af07b
parent6018204806fc41faeccb98453ffee522f09f0fc9 (diff)
downloadpin-utils-9f190431da743694557d54b0ba3721295a1106d2.tar.gz
add crosvm to com.android.virt
To do so, crosvm and its dependencies have the apex_available property set to "//apex_available:platform", "com.android.virt" to explicitly acknowledge the joining. Bug: 174639241 Test: m com.android.virt Change-Id: Iaa7a24b16fbfc85b7faffd96e94f7a4daa3b1aec
-rw-r--r--Android.bp6
-rw-r--r--patches/Android.bp.patch15
2 files changed, 20 insertions, 1 deletions
diff --git a/Android.bp b/Android.bp
index 0a15bc2..e783dfe 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,4 +1,4 @@
-// This file is generated by cargo2android.py --run --device --tests --dependencies.
+// This file is generated by cargo2android.py --run --dependencies --device --tests --patch=patches/Android.bp.patch.
rust_library {
name: "libpin_utils",
@@ -6,6 +6,10 @@ rust_library {
crate_name: "pin_utils",
srcs: ["src/lib.rs"],
edition: "2018",
+ apex_available: [
+ "//apex_available:platform",
+ "com.android.virt",
+ ],
}
rust_defaults {
diff --git a/patches/Android.bp.patch b/patches/Android.bp.patch
new file mode 100644
index 0000000..e0a17ea
--- /dev/null
+++ b/patches/Android.bp.patch
@@ -0,0 +1,15 @@
+diff --git a/Android.bp b/Android.bp
+index 0a15bc2..65d2df4 100644
+--- a/Android.bp
++++ b/Android.bp
+@@ -6,6 +6,10 @@ rust_library {
+ crate_name: "pin_utils",
+ srcs: ["src/lib.rs"],
+ edition: "2018",
++ apex_available: [
++ "//apex_available:platform",
++ "com.android.virt",
++ ],
+ }
+
+ rust_defaults {