aboutsummaryrefslogtreecommitdiff
path: root/rust/Android.bp
diff options
context:
space:
mode:
Diffstat (limited to 'rust/Android.bp')
-rw-r--r--rust/Android.bp13
1 files changed, 13 insertions, 0 deletions
diff --git a/rust/Android.bp b/rust/Android.bp
index 7ef3df3..cafc675 100644
--- a/rust/Android.bp
+++ b/rust/Android.bp
@@ -264,6 +264,7 @@ rust_defaults {
":avbrs_test_vbmeta",
":avbrs_test_vbmeta_2_parts",
":avbrs_test_vbmeta_persistent_digest",
+ ":avbrs_test_vbmeta_with_property",
],
rustlibs: ["libhex"],
test_suites: ["general-tests"],
@@ -364,6 +365,18 @@ genrule {
cmd: "$(location avbtool) make_vbmeta_image --key $(location :avb_testkey_rsa4096) --algorithm SHA512_RSA4096 --include_descriptors_from_image $(location :avbrs_test_image_descriptor_persistent_digest) --output $(out)",
}
+// Standalone vbmeta image with property descriptor "test_prop_key" = "test_prop_value".
+genrule {
+ name: "avbrs_test_vbmeta_with_property",
+ tools: ["avbtool"],
+ srcs: [
+ ":avbrs_test_image_descriptor",
+ ":avb_testkey_rsa4096",
+ ],
+ out: ["test_vbmeta_with_property.img"],
+ cmd: "$(location avbtool) make_vbmeta_image --prop test_prop_key:test_prop_value --key $(location :avb_testkey_rsa4096) --algorithm SHA512_RSA4096 --include_descriptors_from_image $(location :avbrs_test_image_descriptor) --output $(out)",
+}
+
// Combined test image + signed vbmeta footer for "test_part".
avb_add_hash_footer {
name: "avbrs_test_image_with_vbmeta_footer",