aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiyong Park <jiyong@google.com>2020-12-15 19:12:09 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-12-15 19:12:09 +0000
commitc6f8e2a771bff3dd127605bb6d96c4068a9a3599 (patch)
tree06a3bc5007ae3de4b9c3aed727bd62173e1ddcd2
parent352fd96f18debbb0eef6faea8a0c4c3d22c59d18 (diff)
parent309bf1e24852645dbe752b7b52ecb7e3126baedf (diff)
downloadbytes-c6f8e2a771bff3dd127605bb6d96c4068a9a3599.tar.gz
add crosvm to com.android.virt am: 2b95745e70 am: 309bf1e248
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/bytes/+/1526762 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I10280169a130bcd98707b1a72e5022d1d786987f
-rw-r--r--Android.bp6
-rw-r--r--patches/Android.bp.patch13
2 files changed, 18 insertions, 1 deletions
diff --git a/Android.bp b/Android.bp
index 16c63a4..dd9dd4b 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,4 +1,4 @@
-// This file is generated by cargo2android.py --run --dependencies --device.
+// This file is generated by cargo2android.py --run --dependencies --device --patch=patches/Android.bp.patch.
rust_library {
name: "libbytes",
@@ -10,4 +10,8 @@ rust_library {
"default",
"std",
],
+ apex_available: [
+ "//apex_available:platform",
+ "com.android.virt",
+ ],
}
diff --git a/patches/Android.bp.patch b/patches/Android.bp.patch
new file mode 100644
index 0000000..2290fe4
--- /dev/null
+++ b/patches/Android.bp.patch
@@ -0,0 +1,13 @@
+diff --git a/Android.bp b/Android.bp
+index 16c63a4..75d6b62 100644
+--- a/Android.bp
++++ b/Android.bp
+@@ -10,4 +10,8 @@ rust_library {
+ "default",
+ "std",
+ ],
++ apex_available: [
++ "//apex_available:platform",
++ "com.android.virt",
++ ],
+ }