blob: cd0957943d8631a9c823b40737fcc28d9bc62f33 [file] [log] [blame]
Bob Badoure8af2842022-04-07 10:44:22 -07001package {
2 default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
Andrew Walbran68a8c162022-03-07 15:38:42 +00005rust_ffi_static {
6 name: "libpvmfw",
7 crate_name: "pvmfw",
David Brazdil30a7f082022-07-07 15:30:14 +01008 defaults: ["vmbase_ffi_defaults"],
Andrew Walbran68a8c162022-03-07 15:38:42 +00009 srcs: ["src/main.rs"],
Pierre-Clément Tosie8726e42022-10-17 13:35:27 +010010 features: [
11 "legacy",
12 ],
Andrew Walbranf2594882022-03-15 17:32:53 +000013 rustlibs: [
Pierre-Clément Tosia8a4a202022-11-03 14:16:46 +000014 "libaarch64_paging",
Alice Wang947f3f72023-09-29 09:04:07 +000015 "libbssl_avf_nostd",
Shikha Panwar8f7fc1a2024-04-10 10:41:34 +000016 "libcbor_util_nostd",
Alan Stokesd1ee63e2023-04-24 16:17:39 +010017 "libciborium_nostd",
18 "libciborium_io_nostd",
Alice Wang6823ffc2024-10-29 15:54:34 +000019 "libcoset_nostd",
Pierre-Clément Tosi1bf532b2023-11-13 11:06:20 +000020 "libcstr",
Alice Wangcb9d2f92023-02-06 10:29:00 +000021 "libdiced_open_dice_nostd",
Per Larsen7ec45d32024-11-02 00:56:46 +000022 "libhypervisor_backends",
Pierre-Clément Tosi992c2bb2024-10-02 10:37:42 +010023 "liblibfdt_nostd",
Pierre-Clément Tosi37105a62022-10-18 12:21:48 +010024 "liblog_rust_nostd",
Pierre-Clément Tosi2d652982023-01-09 19:30:17 +000025 "libpvmfw_avb_nostd",
Pierre-Clément Tosi4ef75222022-10-26 17:40:50 +010026 "libpvmfw_embedded_key",
Jiyong Park216793e2023-02-25 02:15:44 +090027 "libpvmfw_fdt_template",
Alice Wang12e4c862023-12-11 13:52:27 +000028 "libservice_vm_version",
Andrew Walbranf44f1602023-05-30 14:59:19 +000029 "libsmccc",
Pierre-Clément Tosi1cc5eb72023-02-02 11:09:18 +000030 "libstatic_assertions",
Pierre-Clément Tosi328dfb62022-11-25 18:20:42 +000031 "libtinyvec_nostd",
Pierre-Clément Tosi1cc5eb72023-02-02 11:09:18 +000032 "libuuid_nostd",
Andrew Walbrand1d03182022-12-09 18:20:01 +000033 "libvirtio_drivers",
Andrew Walbrandd74b902022-04-14 16:12:50 +000034 "libvmbase",
Alan Stokesa0e42962023-04-14 17:59:50 +010035 "libzerocopy_nostd",
Pierre-Clément Tosi8383c542022-11-01 14:07:29 +000036 "libzeroize_nostd",
Andrew Walbranf2594882022-03-15 17:32:53 +000037 ],
Andrew Walbran68a8c162022-03-07 15:38:42 +000038}
Andrew Walbran15068b02022-03-22 15:57:34 +000039
Alice Wang1c7e0eb2023-04-11 17:03:42 +000040// Generates an empty file.
41genrule {
42 name: "empty_file",
43 out: ["empty_file"],
44 cmd: "touch $(out)",
45}
46
Alan Stokesddb988c2023-11-27 11:13:06 +000047rust_defaults {
48 name: "libpvmfw.test.defaults",
Nikita Ioffeda1b2732023-09-04 13:46:56 +010049 defaults: ["avf_build_flags_rust"],
Jiyong Parkc5d2ef22023-04-11 01:23:46 +090050 test_suites: ["general-tests"],
51 test_options: {
52 unit_test: true,
53 },
Alan Stokesddb988c2023-11-27 11:13:06 +000054 prefer_rlib: true,
Jiyong Parkc5d2ef22023-04-11 01:23:46 +090055 rustlibs: [
Pierre-Clément Tosi1bf532b2023-11-13 11:06:20 +000056 "libcstr",
Alan Stokesddb988c2023-11-27 11:13:06 +000057 ],
58}
59
60rust_test {
61 name: "libpvmfw.bootargs.test",
62 host_supported: true,
63 // For now, only bootargs.rs is written to be conditionally compiled with std.
64 srcs: ["src/bootargs.rs"],
65 defaults: ["libpvmfw.test.defaults"],
66 rustlibs: [
Jiyong Parkc5d2ef22023-04-11 01:23:46 +090067 "libzeroize",
68 ],
69}
70
Alan Stokesddb988c2023-11-27 11:13:06 +000071rust_test {
72 name: "libpvmfw.device_assignment.test",
73 srcs: ["src/device_assignment.rs"],
74 defaults: ["libpvmfw.test.defaults"],
75 rustlibs: [
Jaewan Kim8f6f4662023-12-12 17:38:47 +090076 "libdts",
Alan Stokesddb988c2023-11-27 11:13:06 +000077 "liblibfdt",
78 "liblog_rust",
79 "libpvmfw_fdt_template",
Jaewan Kim8f6f4662023-12-12 17:38:47 +090080 "libzerocopy",
Alan Stokesddb988c2023-11-27 11:13:06 +000081 ],
82 data: [
83 ":test_pvmfw_devices_vm_dtbo",
84 ":test_pvmfw_devices_vm_dtbo_without_symbols",
Jaewan Kim19b984f2023-12-04 15:16:50 +090085 ":test_pvmfw_devices_vm_dtbo_with_duplicated_iommus",
Pierre-Clément Tosi49e26ce2024-03-12 16:31:50 +000086 ":test_pvmfw_devices_overlapping_pvmfw",
Jaewan Kim8f6f4662023-12-12 17:38:47 +090087 ":test_pvmfw_devices_vm_dtbo_with_dependencies",
Alan Stokesddb988c2023-11-27 11:13:06 +000088 ":test_pvmfw_devices_with_rng",
Alan Stokesddb988c2023-11-27 11:13:06 +000089 ":test_pvmfw_devices_with_multiple_devices_iommus",
90 ":test_pvmfw_devices_with_iommu_sharing",
91 ":test_pvmfw_devices_with_iommu_id_conflict",
Jaewan Kim52477ae2023-11-21 21:20:52 +090092 ":test_pvmfw_devices_without_device",
Jaewan Kima67e36a2023-11-29 16:50:23 +090093 ":test_pvmfw_devices_without_iommus",
Jaewan Kim19b984f2023-12-04 15:16:50 +090094 ":test_pvmfw_devices_with_duplicated_pviommus",
95 ":test_pvmfw_devices_with_multiple_reg_iommus",
Jaewan Kim8f6f4662023-12-12 17:38:47 +090096 ":test_pvmfw_devices_with_dependency",
97 ":test_pvmfw_devices_with_dependency_loop",
98 ":test_pvmfw_devices_with_multiple_dependencies",
99 ":test_pvmfw_devices_expected_dt",
Alan Stokesddb988c2023-11-27 11:13:06 +0000100 ],
Jaewan Kim8f6f4662023-12-12 17:38:47 +0900101 data_bins: ["dtc_static"],
102 compile_multilib: "first",
Alan Stokesddb988c2023-11-27 11:13:06 +0000103 // To use libpvmfw_fdt_template for testing
104 enabled: false,
105 target: {
106 android_arm64: {
107 enabled: true,
108 },
109 },
110}
111
112rust_test {
113 name: "libpvmfw.dice.test",
114 srcs: ["src/dice.rs"],
115 defaults: ["libpvmfw.test.defaults"],
116 rustlibs: [
117 "libcbor_util",
118 "libciborium",
Alice Wangb4c3e532024-11-18 08:24:08 +0000119 "libdiced_open_dice_nostd",
Alan Stokesddb988c2023-11-27 11:13:06 +0000120 "libpvmfw_avb_nostd",
Alan Stokesa17cfba2024-02-14 17:34:51 +0000121 "libzerocopy_nostd",
Shikha Panwarf3acfd12024-05-28 15:48:13 +0000122 "libhex",
Alan Stokesddb988c2023-11-27 11:13:06 +0000123 ],
Pierre-Clément Tosie5fffd82024-11-18 13:19:55 +0000124 static_libs: ["libopen_dice_clear_memory"],
Alan Stokesddb988c2023-11-27 11:13:06 +0000125}
126
Jaewan Kimc6e023b2023-10-12 15:11:05 +0900127genrule {
128 name: "test_pvmfw_devices_vm_dtbo",
129 defaults: ["dts_to_dtb"],
130 srcs: ["testdata/test_pvmfw_devices_vm_dtbo.dts"],
131 out: ["test_pvmfw_devices_vm_dtbo.dtbo"],
132}
133
134genrule {
135 name: "test_pvmfw_devices_vm_dtbo_without_symbols",
136 defaults: ["dts_to_dtb"],
137 srcs: ["testdata/test_pvmfw_devices_vm_dtbo_without_symbols.dts"],
138 out: ["test_pvmfw_devices_vm_dtbo_without_symbols.dtbo"],
139}
140
Jaewan Kim19b984f2023-12-04 15:16:50 +0900141genrule {
142 name: "test_pvmfw_devices_vm_dtbo_with_duplicated_iommus",
143 defaults: ["dts_to_dtb"],
144 srcs: ["testdata/test_pvmfw_devices_vm_dtbo_with_duplicated_iommus.dts"],
145 out: ["test_pvmfw_devices_vm_dtbo_with_duplicated_iommus.dtbo"],
146}
147
Jaewan Kim8f6f4662023-12-12 17:38:47 +0900148genrule {
149 name: "test_pvmfw_devices_vm_dtbo_with_dependencies",
150 tools: ["dtc"],
151 cmd: "$(location dtc) -@ -I dts -O dtb $(in) -o $(out)",
152 srcs: ["testdata/test_pvmfw_devices_vm_dtbo_with_dependencies.dts"],
153 out: ["test_pvmfw_devices_vm_dtbo_with_dependencies.dtbo"],
154}
155
Jaewan Kimcb0d45d2023-11-30 15:40:12 +0900156genrule_defaults {
157 name: "test_device_assignment_dts_to_dtb",
158 defaults: ["dts_to_dtb"],
159 srcs: ["testdata/test_crosvm_dt_base.dtsi"],
160}
161
Jaewan Kimc6e023b2023-10-12 15:11:05 +0900162genrule {
Pierre-Clément Tosi49e26ce2024-03-12 16:31:50 +0000163 name: "test_pvmfw_devices_overlapping_pvmfw",
164 defaults: ["test_device_assignment_dts_to_dtb"],
165 srcs: ["testdata/test_pvmfw_devices_overlapping_pvmfw.dts"],
166 out: ["test_pvmfw_devices_overlapping_pvmfw.dtb"],
167}
168
169genrule {
Jaewan Kimc6e023b2023-10-12 15:11:05 +0900170 name: "test_pvmfw_devices_with_rng",
Jaewan Kimcb0d45d2023-11-30 15:40:12 +0900171 defaults: ["test_device_assignment_dts_to_dtb"],
Jaewan Kimc6e023b2023-10-12 15:11:05 +0900172 srcs: ["testdata/test_pvmfw_devices_with_rng.dts"],
173 out: ["test_pvmfw_devices_with_rng.dtb"],
174}
175
Jaewan Kim51ccfed2023-11-08 13:51:58 +0900176genrule {
Jaewan Kima67e36a2023-11-29 16:50:23 +0900177 name: "test_pvmfw_devices_without_iommus",
Jaewan Kimcb0d45d2023-11-30 15:40:12 +0900178 defaults: ["test_device_assignment_dts_to_dtb"],
Jaewan Kima67e36a2023-11-29 16:50:23 +0900179 srcs: ["testdata/test_pvmfw_devices_without_iommus.dts"],
180 out: ["test_pvmfw_devices_without_iommus.dtb"],
Jaewan Kim51ccfed2023-11-08 13:51:58 +0900181}
182
183genrule {
Jaewan Kim52477ae2023-11-21 21:20:52 +0900184 name: "test_pvmfw_devices_without_device",
185 defaults: ["test_device_assignment_dts_to_dtb"],
186 srcs: ["testdata/test_pvmfw_devices_without_device.dts"],
187 out: ["test_pvmfw_devices_without_device.dtb"],
188}
189
190genrule {
Jaewan Kim51ccfed2023-11-08 13:51:58 +0900191 name: "test_pvmfw_devices_with_multiple_devices_iommus",
Jaewan Kimcb0d45d2023-11-30 15:40:12 +0900192 defaults: ["test_device_assignment_dts_to_dtb"],
Jaewan Kim51ccfed2023-11-08 13:51:58 +0900193 srcs: ["testdata/test_pvmfw_devices_with_multiple_devices_iommus.dts"],
194 out: ["test_pvmfw_devices_with_multiple_devices_iommus.dtb"],
195}
196
197genrule {
198 name: "test_pvmfw_devices_with_iommu_sharing",
Jaewan Kimcb0d45d2023-11-30 15:40:12 +0900199 defaults: ["test_device_assignment_dts_to_dtb"],
Jaewan Kim51ccfed2023-11-08 13:51:58 +0900200 srcs: ["testdata/test_pvmfw_devices_with_iommu_sharing.dts"],
201 out: ["test_pvmfw_devices_with_iommu_sharing.dtb"],
202}
203
204genrule {
205 name: "test_pvmfw_devices_with_iommu_id_conflict",
Jaewan Kimcb0d45d2023-11-30 15:40:12 +0900206 defaults: ["test_device_assignment_dts_to_dtb"],
Jaewan Kim51ccfed2023-11-08 13:51:58 +0900207 srcs: ["testdata/test_pvmfw_devices_with_iommu_id_conflict.dts"],
208 out: ["test_pvmfw_devices_with_iommu_id_conflict.dtb"],
209}
210
Jaewan Kim19b984f2023-12-04 15:16:50 +0900211genrule {
212 name: "test_pvmfw_devices_with_duplicated_pviommus",
213 defaults: ["test_device_assignment_dts_to_dtb"],
214 srcs: ["testdata/test_pvmfw_devices_with_duplicated_pviommus.dts"],
215 out: ["test_pvmfw_devices_with_duplicated_pviommus.dtb"],
216}
217
218genrule {
219 name: "test_pvmfw_devices_with_multiple_reg_iommus",
220 defaults: ["test_device_assignment_dts_to_dtb"],
221 srcs: ["testdata/test_pvmfw_devices_with_multiple_reg_iommus.dts"],
222 out: ["test_pvmfw_devices_with_multiple_reg_iommus.dtb"],
223}
224
Jaewan Kim8f6f4662023-12-12 17:38:47 +0900225genrule {
226 name: "test_pvmfw_devices_with_dependency",
227 defaults: ["test_device_assignment_dts_to_dtb"],
228 srcs: ["testdata/test_pvmfw_devices_with_dependency.dts"],
229 out: ["test_pvmfw_devices_with_dependency.dtb"],
230}
231
232genrule {
233 name: "test_pvmfw_devices_with_multiple_dependencies",
234 defaults: ["test_device_assignment_dts_to_dtb"],
235 srcs: ["testdata/test_pvmfw_devices_with_multiple_dependencies.dts"],
236 out: ["test_pvmfw_devices_with_multiple_dependencies.dtb"],
237}
238
239genrule {
240 name: "test_pvmfw_devices_with_dependency_loop",
241 defaults: ["test_device_assignment_dts_to_dtb"],
242 srcs: ["testdata/test_pvmfw_devices_with_dependency_loop.dts"],
243 out: ["test_pvmfw_devices_with_dependency_loop.dtb"],
244}
245
246// We can't use genrule because preprocessed platform DT is built with cc_object.
247// cc_genrule doesn't support default, so we'll build all expected DTs in
248// a single build rule.
249cc_genrule {
250 name: "test_pvmfw_devices_expected_dt",
251 srcs: [
252 ":pvmfw_platform.dts.preprocessed",
253 "testdata/expected_dt_with_dependency.dts",
254 "testdata/expected_dt_with_multiple_dependencies.dts",
255 "testdata/expected_dt_with_dependency_loop.dts",
256 ],
257 out: [
258 "expected_dt_with_dependency.dtb",
259 "expected_dt_with_multiple_dependencies.dtb",
260 "expected_dt_with_dependency_loop.dtb",
261 ],
262 tools: ["dtc"],
263 cmd: "FILES=($(in));" +
264 "cp $${FILES[0]} $(genDir)/platform_preprocessed.dts;" +
265 "for DTS in $${FILES[@]:1}; do" +
266 " DTB=$$(basename -s .dts $${DTS}).dtb;" +
267 " $(location dtc) -@ -i $(genDir) -I dts -O dtb $${DTS} -o $(genDir)/$${DTB};" +
268 "done",
269 visibility: ["//visibility:private"],
270}
271
Andrew Walbran15068b02022-03-22 15:57:34 +0000272cc_binary {
Pierre-Clément Tosib1300352022-09-09 11:01:06 +0100273 name: "pvmfw",
David Brazdil30a7f082022-07-07 15:30:14 +0100274 defaults: ["vmbase_elf_defaults"],
Andrew Walbran15068b02022-03-22 15:57:34 +0000275 srcs: [
Andrew Walbran267f6c12022-03-24 11:26:36 +0000276 "idmap.S",
Andrew Walbran15068b02022-03-22 15:57:34 +0000277 ],
278 static_libs: [
279 "libpvmfw",
280 ],
Andrew Walbrana5b7af52022-07-06 15:06:20 +0000281 linker_scripts: [
282 "image.ld",
283 ":vmbase_sections",
284 ],
Jiyong Park17b8d752022-12-16 14:36:24 +0900285 // `installable: false` is inherited from vmbase_elf_defaults, and that
286 // hides this module from Make, which makes it impossible for the Make world
287 // to place the unstripped binary to the symbols directory. Marking back as
288 // installable exposes this module to the Make world again. Note that this
289 // module (pvmfw) still is NOT installed to any of the filesystem images. It
290 // is fed into pvmfw_bin and then into pvmfw_img to become a standalone
291 // partition image. This is just to package the unstripped file into the
292 // symbols zip file for debugging purpose.
293 installable: true,
Andrew Walbran15068b02022-03-22 15:57:34 +0000294}
David Brazdil05d4e072022-04-25 14:47:06 +0100295
296raw_binary {
Pierre-Clément Tosib1300352022-09-09 11:01:06 +0100297 name: "pvmfw_bin",
298 stem: "pvmfw.bin",
299 src: ":pvmfw",
David Brazdil05d4e072022-04-25 14:47:06 +0100300 enabled: false,
301 target: {
302 android_arm64: {
303 enabled: true,
304 },
305 },
306}
David Brazdilac216b52022-04-25 15:07:22 +0100307
Jaewan Kim2cf6f392023-02-10 01:35:47 +0900308// Provide pvmfw.bin binary regardless of the architecture for building test.
309// Note that skipping tests on unsupported device is easy
310// while configuring server configuration to make such tests to run on working
311// devices.
312prebuilt_etc {
313 name: "pvmfw_test",
314 filename: "pvmfw_test.bin",
315 target: {
316 android_arm64: {
317 src: ":pvmfw_bin",
318 },
319 },
Alice Wang1c7e0eb2023-04-11 17:03:42 +0000320 src: ":empty_file",
Jaewan Kim2cf6f392023-02-10 01:35:47 +0900321 installable: false,
322}
323
Pierre-Clément Tosi8b5533d2024-05-24 10:47:59 +0100324filegroup {
Pierre-Clément Tosi6ec2ae22022-10-26 15:14:45 +0100325 name: "pvmfw_embedded_key",
Pierre-Clément Tosi8b5533d2024-05-24 10:47:59 +0100326 srcs: [":avb_testkey_rsa4096"],
327}
328
329genrule {
330 name: "pvmfw_embedded_key_pub_bin",
331 tools: ["avbtool"],
332 srcs: [":pvmfw_embedded_key"],
333 out: ["pvmfw_embedded_key_pub.bin"],
334 cmd: "$(location avbtool) extract_public_key --key $(in) --output $(out)",
Pierre-Clément Tosi6ec2ae22022-10-26 15:14:45 +0100335}
336
Pierre-Clément Tosi4ef75222022-10-26 17:40:50 +0100337genrule {
338 name: "pvmfw_embedded_key_rs",
Pierre-Clément Tosi8b5533d2024-05-24 10:47:59 +0100339 srcs: [":pvmfw_embedded_key_pub_bin"],
Pierre-Clément Tosi4ef75222022-10-26 17:40:50 +0100340 out: ["lib.rs"],
341 cmd: "(" +
342 " echo '#![no_std]';" +
343 " echo '#![allow(missing_docs)]';" +
344 " echo 'pub const PUBLIC_KEY: &[u8] = &[';" +
345 " xxd -i < $(in);" +
346 " echo '];';" +
347 ") > $(out)",
348}
349
350rust_library_rlib {
351 name: "libpvmfw_embedded_key",
Pierre-Clément Tosi4894b432023-06-27 14:02:26 +0000352 defaults: ["vmbase_rlib_defaults"],
Pierre-Clément Tosi4ef75222022-10-26 17:40:50 +0100353 srcs: [":pvmfw_embedded_key_rs"],
354 crate_name: "pvmfw_embedded_key",
Pierre-Clément Tosi4ef75222022-10-26 17:40:50 +0100355}
356
Pierre-Clément Tosi6ec2ae22022-10-26 15:14:45 +0100357prebuilt_etc {
Pierre-Clément Tosib5771c02022-09-06 16:01:35 +0100358 name: "pvmfw_sign_key",
359 src: ":avb_testkey_rsa4096",
360 installable: false,
361}
362
Jiyong Park9c1c8182023-05-25 15:40:11 +0900363// We need to rename *.dts into *.cpp as cc_object doesn't accept *.dts as an
364// input
Jiyong Park216793e2023-02-25 02:15:44 +0900365genrule {
Jiyong Park9c1c8182023-05-25 15:40:11 +0900366 name: "pvmfw_platform.dts.renamed",
367 srcs: ["platform.dts"],
368 out: ["out.cpp"],
369 cmd: "cp $(in) $(out)",
370 visibility: ["//visibility:private"],
371}
372
373// Then run the macro processor to replace symbols like GIC_SPI into actual
374// numbers defined in the ARM DT binding headers
375cc_object {
376 name: "pvmfw_platform.dts.preprocessed",
Nikita Ioffe38b9e712024-02-08 15:55:07 +0000377 defaults: ["avf_build_flags_cc"],
Jiyong Park9c1c8182023-05-25 15:40:11 +0900378 header_libs: ["arm_dt_bindings_headers"],
379 host_supported: true,
380 srcs: [":pvmfw_platform.dts.renamed"],
381 cflags: [
382 "-E",
383 "-P",
384 "-xassembler-with-cpp", // allow C preprocessor directives
Jiyong Park216793e2023-02-25 02:15:44 +0900385 ],
Jiyong Park9c1c8182023-05-25 15:40:11 +0900386 visibility: ["//visibility:private"],
387}
388
389// Compile the preprocessed dts into binary and create a rust library source
390// having the binary.
391cc_genrule {
392 name: "pvmfw_fdt_template_rs",
393 srcs: [":pvmfw_platform.dts.preprocessed"],
Jiyong Park216793e2023-02-25 02:15:44 +0900394 out: ["lib.rs"],
395 tools: ["dtc"],
Jaewan Kim96411e92023-11-13 15:54:02 +0900396 cmd: "$(location dtc) -@ -I dts -O dtb -o $(genDir)/compiled.dtbo $(in) && " +
Jiyong Park216793e2023-02-25 02:15:44 +0900397 "(" +
398 " echo '#![no_std]';" +
399 " echo '#![allow(missing_docs)]';" +
400 " echo 'pub const RAW: &[u8] = &[';" +
401 " xxd -i < $(genDir)/compiled.dtbo;" +
402 " echo '];';" +
403 ") > $(out)",
Jiyong Park9c1c8182023-05-25 15:40:11 +0900404 visibility: ["//visibility:private"],
Jiyong Park216793e2023-02-25 02:15:44 +0900405}
406
407rust_library_rlib {
408 name: "libpvmfw_fdt_template",
Pierre-Clément Tosi4894b432023-06-27 14:02:26 +0000409 defaults: ["vmbase_rlib_defaults"],
Jiyong Park216793e2023-02-25 02:15:44 +0900410 srcs: [":pvmfw_fdt_template_rs"],
411 crate_name: "pvmfw_fdt_template",
412}
413
David Brazdilac216b52022-04-25 15:07:22 +0100414bootimg {
415 name: "pvmfw_img",
416 stem: "pvmfw.img",
417 kernel_prebuilt: ":pvmfw_bin",
418 header_version: "3",
419 partition_name: "pvmfw",
420 enabled: false,
421 target: {
422 android_arm64: {
423 enabled: true,
424 },
425 },
Pierre-Clément Tosib5771c02022-09-06 16:01:35 +0100426 use_avb: true,
427 avb_private_key: ":pvmfw_sign_key",
David Brazdilac216b52022-04-25 15:07:22 +0100428}