aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Walbran <qwandor@google.com>2023-11-17 12:28:37 +0000
committerAndrew Walbran <qwandor@google.com>2023-11-17 12:28:37 +0000
commit7595d00f7e8ceb49322db8b7d35cb22c80db442a (patch)
treee1e2ae4bd72f62535c8154cd50081ebf4b47030b
parentc0bacf18e312d2ab4c3f02a73ce29ea76e0d6c7b (diff)
downloadx509-cert-7595d00f7e8ceb49322db8b7d35cb22c80db442a.tar.gz
Migrate to cargo_embargo.
Bug: 293289578 Test: Ran cargo_embargo, compared Android.bp Change-Id: I9f4e54c3de2c698e20fc476a0eeb70150bdd58bb
-rw-r--r--Android.bp8
-rw-r--r--cargo2android.json27
-rw-r--r--cargo_embargo.json36
3 files changed, 40 insertions, 31 deletions
diff --git a/Android.bp b/Android.bp
index fe377df..26efc7d 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,4 +1,4 @@
-// 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.
package {
@@ -74,7 +74,7 @@ rust_library_rlib {
product_available: true,
vendor_available: true,
visibility: [
- "//system/keymint:__subpackages__",
- ]
- ,
+ "//system/keymint:__subpackages__",
+ ],
+
}
diff --git a/cargo2android.json b/cargo2android.json
deleted file mode 100644
index 76c47df..0000000
--- a/cargo2android.json
+++ /dev/null
@@ -1,27 +0,0 @@
-{
- "apex-available": [
- "//apex_available:platform",
- "com.android.virt"
- ],
- "run": true,
- "vendor-available": true,
- "features": "alloc",
- "variants": [
- {
- },
- {
- "device": true,
- "no-host": true,
- "add-module-block": "cargo2android_viz.bp",
- "dep-suffixes": {
- "const_oid": "_nostd",
- "der": "_nostd",
- "flagset": "_nostd",
- "spki": "_nostd"
- },
- "force-rlib": true,
- "suffix": "_nostd",
- "no-std": true
- }
- ]
-}
diff --git a/cargo_embargo.json b/cargo_embargo.json
new file mode 100644
index 0000000..9351aed
--- /dev/null
+++ b/cargo_embargo.json
@@ -0,0 +1,36 @@
+{
+ "apex_available": [
+ "//apex_available:platform",
+ "com.android.virt"
+ ],
+ "features": [
+ "alloc"
+ ],
+ "run_cargo": false,
+ "variants": [
+ {
+ "package": {
+ "x509-cert": {
+ "device_supported": false
+ }
+ }
+ },
+ {
+ "module_name_overrides": {
+ "libconst_oid": "libconst_oid_nostd",
+ "libder": "libder_nostd",
+ "libflagset": "libflagset_nostd",
+ "libspki": "libspki_nostd",
+ "libx509_cert": "libx509_cert_nostd"
+ },
+ "package": {
+ "x509-cert": {
+ "add_module_block": "cargo2android_viz.bp",
+ "force_rlib": true,
+ "host_supported": false,
+ "no_std": true
+ }
+ }
+ }
+ ]
+}