[images] Build sparse FVM without a minfs partition.
We will need an FVM without minfs to test programs related to PKG-442 since
we will not be able to write a zxcrypt partition at runtime.
Issue: PKG-684
Change-Id: I2daa6615784edece7962a68a1742e656993b106f
diff --git a/build/images/BUILD.gn b/build/images/BUILD.gn
index 4294ea9..2309c58 100644
--- a/build/images/BUILD.gn
+++ b/build/images/BUILD.gn
@@ -940,6 +940,36 @@
},
]
+# fvm.blob.sparse.blk creates a sprase FVM partition image containing the blob
+# partition produced by blob.blk.
+generate_fvm("fvm.blob.sparse.blk") {
+ testonly = true
+ output_name = "$target_out_dir/$target_name"
+ deps = [
+ ":blob.blk",
+ ]
+ args = fvm_sparse_args
+ partitions = [
+ {
+ type = "blob"
+ dep = ":blob.blk"
+ minimum_inodes = blobfs_minimum_inodes
+ minimum_data_bytes = blobfs_minimum_data_bytes
+ maximum_bytes = blobfs_maximum_bytes
+ },
+ ]
+}
+images += [
+ {
+ deps = [
+ ":fvm.blob.sparse.blk",
+ ]
+ public = [
+ "IMAGE_FVM_BLOB_SPARSE",
+ ]
+ },
+]
+
# This rolls the primary ZBI together with a compressed RAMDISK image of
# fvm.blk into a fat ZBI that boots the full system without using any real
# storage. The system decompresses the fvm.blk image into memory and then