aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiyong Park <jiyong@google.com>2020-12-07 15:40:22 +0900
committerJiyong Park <jiyong@google.com>2020-12-14 16:05:30 +0900
commit2b95745e709cfb52a81074e4882d0a2cbaaea2ed (patch)
tree06a3bc5007ae3de4b9c3aed727bd62173e1ddcd2
parentbc782db52fedefb4013603417b37e272f9a34a28 (diff)
downloadbytes-2b95745e709cfb52a81074e4882d0a2cbaaea2ed.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: Ib7374200b36b67511ff4ca03504dc19a1e39a68d
-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",
++ ],
+ }