aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-11-15 00:14:43 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-11-15 00:14:43 +0000
commit1f328f69d0740ca7c61e65262a21f1b9827a32ba (patch)
tree3315405c216c4173af9f5e918430b4da07bbeb0f
parent1a7b93335ab39852e1ae2fd0561544d1ead22fc7 (diff)
parent2cbb10c1a177e5723db74a163dcab1b2a24cbf42 (diff)
downloadvhost-android14-qpr2-s2-release.tar.gz
Change-Id: I819cc43fd307c5e90eea5a433b9477bc6da7aacc
-rw-r--r--Android.bp4
-rw-r--r--cargo2android.json9
-rw-r--r--cargo_embargo.json18
3 files changed, 19 insertions, 12 deletions
diff --git a/Android.bp b/Android.bp
index d5c963e..6060217 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,8 +1,6 @@
-// This file is generated by cargo2android.py --config cargo2android.json.
+// This file is generated by cargo_embargo.
// Do not modify this file as changes will be overridden on upgrade.
-
-
rust_library_host {
name: "libvhost_android",
crate_name: "vhost",
diff --git a/cargo2android.json b/cargo2android.json
deleted file mode 100644
index f3781ef..0000000
--- a/cargo2android.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "run": true,
- "name-suffix": "_android",
- "features": "default,vhost-user,vhost-user-slave",
- "dep-suffixes": {
- "bitflags": "-1.3.2",
- "vm_memory": "_android"
- }
-}
diff --git a/cargo_embargo.json b/cargo_embargo.json
new file mode 100644
index 0000000..3f73d27
--- /dev/null
+++ b/cargo_embargo.json
@@ -0,0 +1,18 @@
+{
+ "features": [
+ "default",
+ "vhost-user",
+ "vhost-user-slave"
+ ],
+ "module_name_overrides": {
+ "libbitflags": "libbitflags-1.3.2",
+ "libvhost": "libvhost_android",
+ "libvm_memory": "libvm_memory_android"
+ },
+ "package": {
+ "vhost": {
+ "device_supported": false
+ }
+ },
+ "run_cargo": false
+}