diff options
author | David Drysdale <drysdale@google.com> | 2023-12-02 18:48:17 +0000 |
---|---|---|
committer | David Drysdale <drysdale@google.com> | 2023-12-03 08:26:59 +0000 |
commit | a336bbd8e64f5b7707dc52a3b80a971ccab96266 (patch) | |
tree | 848538156c803170f9204455d76ac1cbd2aba0d7 | |
parent | 62b7e4bb7451154045a2fc67a6be2ab8843e7d48 (diff) | |
download | sec1-a336bbd8e64f5b7707dc52a3b80a971ccab96266.tar.gz |
Shift host-only to visibility restriction
Bug: 314513765
Test: cargo_embargo generate, build
Change-Id: I67fe1335881959f8cd846bf71e40788b5539c215
-rw-r--r-- | Android.bp | 14 | ||||
-rw-r--r-- | cargo_embargo.json | 2 |
2 files changed, 14 insertions, 2 deletions
@@ -31,8 +31,9 @@ license { ], } -rust_library_host { +rust_library { name: "libsec1", + host_supported: true, crate_name: "sec1", cargo_env_compat: true, cargo_pkg_version: "0.3.0", @@ -49,6 +50,17 @@ rust_library_host { "libpkcs8", "libzeroize", ], + apex_available: [ + "//apex_available:platform", + "com.android.virt", + ], + product_available: true, + vendor_available: true, + visibility: [ + "//packages/modules/Virtualization:__subpackages__", + "//system/keymint:__subpackages__", + ], + } rust_library_rlib { diff --git a/cargo_embargo.json b/cargo_embargo.json index fae434d..0d9e163 100644 --- a/cargo_embargo.json +++ b/cargo_embargo.json @@ -13,7 +13,7 @@ { "package": { "sec1": { - "device_supported": false + "add_module_block": "cargo2android_viz.bp" } } }, |