blob: da056d6679c2f61cb722e077dc1eff6f1aec25e2 [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",
Alice Wangcb9d2f92023-02-06 10:29:00 +000020 "libdiced_open_dice_nostd",
Per Larsen7ec45d32024-11-02 00:56:46 +000021 "libhypervisor_backends",
Pierre-Clément Tosi992c2bb2024-10-02 10:37:42 +010022 "liblibfdt_nostd",
Pierre-Clément Tosi37105a62022-10-18 12:21:48 +010023 "liblog_rust_nostd",
Pierre-Clément Tosi2d652982023-01-09 19:30:17 +000024 "libpvmfw_avb_nostd",
Pierre-Clément Tosi4ef75222022-10-26 17:40:50 +010025 "libpvmfw_embedded_key",
Jiyong Park216793e2023-02-25 02:15:44 +090026 "libpvmfw_fdt_template",
Alice Wang12e4c862023-12-11 13:52:27 +000027 "libservice_vm_version",
Andrew Walbranf44f1602023-05-30 14:59:19 +000028 "libsmccc",
Pierre-Clément Tosi1cc5eb72023-02-02 11:09:18 +000029 "libstatic_assertions",
Pierre-Clément Tosi328dfb62022-11-25 18:20:42 +000030 "libtinyvec_nostd",
Pierre-Clément Tosi1cc5eb72023-02-02 11:09:18 +000031 "libuuid_nostd",
Andrew Walbrand1d03182022-12-09 18:20:01 +000032 "libvirtio_drivers",
Andrew Walbrandd74b902022-04-14 16:12:50 +000033 "libvmbase",
Andrew Walbran47d316e2024-11-28 18:41:09 +000034 "libzerocopy_nostd",
Pierre-Clément Tosi8383c542022-11-01 14:07:29 +000035 "libzeroize_nostd",
Andrew Walbranf2594882022-03-15 17:32:53 +000036 ],
Andrew Walbran68a8c162022-03-07 15:38:42 +000037}
Andrew Walbran15068b02022-03-22 15:57:34 +000038
Alice Wang1c7e0eb2023-04-11 17:03:42 +000039// Generates an empty file.
40genrule {
41 name: "empty_file",
42 out: ["empty_file"],
43 cmd: "touch $(out)",
44}
45
Alan Stokesddb988c2023-11-27 11:13:06 +000046rust_defaults {
47 name: "libpvmfw.test.defaults",
Nikita Ioffeda1b2732023-09-04 13:46:56 +010048 defaults: ["avf_build_flags_rust"],
Jiyong Parkc5d2ef22023-04-11 01:23:46 +090049 test_suites: ["general-tests"],
50 test_options: {
51 unit_test: true,
52 },
Alan Stokesddb988c2023-11-27 11:13:06 +000053 prefer_rlib: true,
Alan Stokesddb988c2023-11-27 11:13:06 +000054}
55
56rust_test {
57 name: "libpvmfw.bootargs.test",
58 host_supported: true,
59 // For now, only bootargs.rs is written to be conditionally compiled with std.
60 srcs: ["src/bootargs.rs"],
61 defaults: ["libpvmfw.test.defaults"],
62 rustlibs: [
Jiyong Parkc5d2ef22023-04-11 01:23:46 +090063 "libzeroize",
64 ],
65}
66
Alan Stokesddb988c2023-11-27 11:13:06 +000067rust_test {
68 name: "libpvmfw.device_assignment.test",
69 srcs: ["src/device_assignment.rs"],
70 defaults: ["libpvmfw.test.defaults"],
71 rustlibs: [
Jaewan Kim8f6f4662023-12-12 17:38:47 +090072 "libdts",
Alan Stokesddb988c2023-11-27 11:13:06 +000073 "liblibfdt",
74 "liblog_rust",
75 "libpvmfw_fdt_template",
Andrew Walbran47d316e2024-11-28 18:41:09 +000076 "libzerocopy",
Alan Stokesddb988c2023-11-27 11:13:06 +000077 ],
78 data: [
79 ":test_pvmfw_devices_vm_dtbo",
80 ":test_pvmfw_devices_vm_dtbo_without_symbols",
Jaewan Kim19b984f2023-12-04 15:16:50 +090081 ":test_pvmfw_devices_vm_dtbo_with_duplicated_iommus",
Pierre-Clément Tosi49e26ce2024-03-12 16:31:50 +000082 ":test_pvmfw_devices_overlapping_pvmfw",
Jaewan Kim8f6f4662023-12-12 17:38:47 +090083 ":test_pvmfw_devices_vm_dtbo_with_dependencies",
Alan Stokesddb988c2023-11-27 11:13:06 +000084 ":test_pvmfw_devices_with_rng",
Alan Stokesddb988c2023-11-27 11:13:06 +000085 ":test_pvmfw_devices_with_multiple_devices_iommus",
86 ":test_pvmfw_devices_with_iommu_sharing",
87 ":test_pvmfw_devices_with_iommu_id_conflict",
Jaewan Kim52477ae2023-11-21 21:20:52 +090088 ":test_pvmfw_devices_without_device",
Jaewan Kima67e36a2023-11-29 16:50:23 +090089 ":test_pvmfw_devices_without_iommus",
Jaewan Kim19b984f2023-12-04 15:16:50 +090090 ":test_pvmfw_devices_with_duplicated_pviommus",
91 ":test_pvmfw_devices_with_multiple_reg_iommus",
Jaewan Kim8f6f4662023-12-12 17:38:47 +090092 ":test_pvmfw_devices_with_dependency",
93 ":test_pvmfw_devices_with_dependency_loop",
94 ":test_pvmfw_devices_with_multiple_dependencies",
95 ":test_pvmfw_devices_expected_dt",
Alan Stokesddb988c2023-11-27 11:13:06 +000096 ],
Jaewan Kim8f6f4662023-12-12 17:38:47 +090097 data_bins: ["dtc_static"],
98 compile_multilib: "first",
Alan Stokesddb988c2023-11-27 11:13:06 +000099 // To use libpvmfw_fdt_template for testing
100 enabled: false,
101 target: {
102 android_arm64: {
103 enabled: true,
104 },
105 },
106}
107
108rust_test {
109 name: "libpvmfw.dice.test",
110 srcs: ["src/dice.rs"],
111 defaults: ["libpvmfw.test.defaults"],
112 rustlibs: [
113 "libcbor_util",
114 "libciborium",
Alice Wangb4c3e532024-11-18 08:24:08 +0000115 "libdiced_open_dice_nostd",
Alan Stokesddb988c2023-11-27 11:13:06 +0000116 "libpvmfw_avb_nostd",
Alice Wang87fbc4b2024-11-05 13:09:58 +0000117 "libdiced_sample_inputs_nostd",
Andrew Walbran47d316e2024-11-28 18:41:09 +0000118 "libzerocopy_nostd",
Shikha Panwarf3acfd12024-05-28 15:48:13 +0000119 "libhex",
Alan Stokesddb988c2023-11-27 11:13:06 +0000120 ],
Pierre-Clément Tosie5fffd82024-11-18 13:19:55 +0000121 static_libs: ["libopen_dice_clear_memory"],
Alan Stokesddb988c2023-11-27 11:13:06 +0000122}
123
Jaewan Kimc6e023b2023-10-12 15:11:05 +0900124genrule {
125 name: "test_pvmfw_devices_vm_dtbo",
126 defaults: ["dts_to_dtb"],
127 srcs: ["testdata/test_pvmfw_devices_vm_dtbo.dts"],
128 out: ["test_pvmfw_devices_vm_dtbo.dtbo"],
129}
130
131genrule {
132 name: "test_pvmfw_devices_vm_dtbo_without_symbols",
133 defaults: ["dts_to_dtb"],
134 srcs: ["testdata/test_pvmfw_devices_vm_dtbo_without_symbols.dts"],
135 out: ["test_pvmfw_devices_vm_dtbo_without_symbols.dtbo"],
136}
137
Jaewan Kim19b984f2023-12-04 15:16:50 +0900138genrule {
139 name: "test_pvmfw_devices_vm_dtbo_with_duplicated_iommus",
140 defaults: ["dts_to_dtb"],
141 srcs: ["testdata/test_pvmfw_devices_vm_dtbo_with_duplicated_iommus.dts"],
142 out: ["test_pvmfw_devices_vm_dtbo_with_duplicated_iommus.dtbo"],
143}
144
Jaewan Kim8f6f4662023-12-12 17:38:47 +0900145genrule {
146 name: "test_pvmfw_devices_vm_dtbo_with_dependencies",
147 tools: ["dtc"],
148 cmd: "$(location dtc) -@ -I dts -O dtb $(in) -o $(out)",
149 srcs: ["testdata/test_pvmfw_devices_vm_dtbo_with_dependencies.dts"],
150 out: ["test_pvmfw_devices_vm_dtbo_with_dependencies.dtbo"],
151}
152
Jaewan Kimcb0d45d2023-11-30 15:40:12 +0900153genrule_defaults {
154 name: "test_device_assignment_dts_to_dtb",
155 defaults: ["dts_to_dtb"],
156 srcs: ["testdata/test_crosvm_dt_base.dtsi"],
157}
158
Jaewan Kimc6e023b2023-10-12 15:11:05 +0900159genrule {
Pierre-Clément Tosi49e26ce2024-03-12 16:31:50 +0000160 name: "test_pvmfw_devices_overlapping_pvmfw",
161 defaults: ["test_device_assignment_dts_to_dtb"],
162 srcs: ["testdata/test_pvmfw_devices_overlapping_pvmfw.dts"],
163 out: ["test_pvmfw_devices_overlapping_pvmfw.dtb"],
164}
165
166genrule {
Jaewan Kimc6e023b2023-10-12 15:11:05 +0900167 name: "test_pvmfw_devices_with_rng",
Jaewan Kimcb0d45d2023-11-30 15:40:12 +0900168 defaults: ["test_device_assignment_dts_to_dtb"],
Jaewan Kimc6e023b2023-10-12 15:11:05 +0900169 srcs: ["testdata/test_pvmfw_devices_with_rng.dts"],
170 out: ["test_pvmfw_devices_with_rng.dtb"],
171}
172
Jaewan Kim51ccfed2023-11-08 13:51:58 +0900173genrule {
Jaewan Kima67e36a2023-11-29 16:50:23 +0900174 name: "test_pvmfw_devices_without_iommus",
Jaewan Kimcb0d45d2023-11-30 15:40:12 +0900175 defaults: ["test_device_assignment_dts_to_dtb"],
Jaewan Kima67e36a2023-11-29 16:50:23 +0900176 srcs: ["testdata/test_pvmfw_devices_without_iommus.dts"],
177 out: ["test_pvmfw_devices_without_iommus.dtb"],
Jaewan Kim51ccfed2023-11-08 13:51:58 +0900178}
179
180genrule {
Jaewan Kim52477ae2023-11-21 21:20:52 +0900181 name: "test_pvmfw_devices_without_device",
182 defaults: ["test_device_assignment_dts_to_dtb"],
183 srcs: ["testdata/test_pvmfw_devices_without_device.dts"],
184 out: ["test_pvmfw_devices_without_device.dtb"],
185}
186
187genrule {
Jaewan Kim51ccfed2023-11-08 13:51:58 +0900188 name: "test_pvmfw_devices_with_multiple_devices_iommus",
Jaewan Kimcb0d45d2023-11-30 15:40:12 +0900189 defaults: ["test_device_assignment_dts_to_dtb"],
Jaewan Kim51ccfed2023-11-08 13:51:58 +0900190 srcs: ["testdata/test_pvmfw_devices_with_multiple_devices_iommus.dts"],
191 out: ["test_pvmfw_devices_with_multiple_devices_iommus.dtb"],
192}
193
194genrule {
195 name: "test_pvmfw_devices_with_iommu_sharing",
Jaewan Kimcb0d45d2023-11-30 15:40:12 +0900196 defaults: ["test_device_assignment_dts_to_dtb"],
Jaewan Kim51ccfed2023-11-08 13:51:58 +0900197 srcs: ["testdata/test_pvmfw_devices_with_iommu_sharing.dts"],
198 out: ["test_pvmfw_devices_with_iommu_sharing.dtb"],
199}
200
201genrule {
202 name: "test_pvmfw_devices_with_iommu_id_conflict",
Jaewan Kimcb0d45d2023-11-30 15:40:12 +0900203 defaults: ["test_device_assignment_dts_to_dtb"],
Jaewan Kim51ccfed2023-11-08 13:51:58 +0900204 srcs: ["testdata/test_pvmfw_devices_with_iommu_id_conflict.dts"],
205 out: ["test_pvmfw_devices_with_iommu_id_conflict.dtb"],
206}
207
Jaewan Kim19b984f2023-12-04 15:16:50 +0900208genrule {
209 name: "test_pvmfw_devices_with_duplicated_pviommus",
210 defaults: ["test_device_assignment_dts_to_dtb"],
211 srcs: ["testdata/test_pvmfw_devices_with_duplicated_pviommus.dts"],
212 out: ["test_pvmfw_devices_with_duplicated_pviommus.dtb"],
213}
214
215genrule {
216 name: "test_pvmfw_devices_with_multiple_reg_iommus",
217 defaults: ["test_device_assignment_dts_to_dtb"],
218 srcs: ["testdata/test_pvmfw_devices_with_multiple_reg_iommus.dts"],
219 out: ["test_pvmfw_devices_with_multiple_reg_iommus.dtb"],
220}
221
Jaewan Kim8f6f4662023-12-12 17:38:47 +0900222genrule {
223 name: "test_pvmfw_devices_with_dependency",
224 defaults: ["test_device_assignment_dts_to_dtb"],
225 srcs: ["testdata/test_pvmfw_devices_with_dependency.dts"],
226 out: ["test_pvmfw_devices_with_dependency.dtb"],
227}
228
229genrule {
230 name: "test_pvmfw_devices_with_multiple_dependencies",
231 defaults: ["test_device_assignment_dts_to_dtb"],
232 srcs: ["testdata/test_pvmfw_devices_with_multiple_dependencies.dts"],
233 out: ["test_pvmfw_devices_with_multiple_dependencies.dtb"],
234}
235
236genrule {
237 name: "test_pvmfw_devices_with_dependency_loop",
238 defaults: ["test_device_assignment_dts_to_dtb"],
239 srcs: ["testdata/test_pvmfw_devices_with_dependency_loop.dts"],
240 out: ["test_pvmfw_devices_with_dependency_loop.dtb"],
241}
242
243// We can't use genrule because preprocessed platform DT is built with cc_object.
244// cc_genrule doesn't support default, so we'll build all expected DTs in
245// a single build rule.
246cc_genrule {
247 name: "test_pvmfw_devices_expected_dt",
248 srcs: [
249 ":pvmfw_platform.dts.preprocessed",
250 "testdata/expected_dt_with_dependency.dts",
251 "testdata/expected_dt_with_multiple_dependencies.dts",
252 "testdata/expected_dt_with_dependency_loop.dts",
253 ],
254 out: [
255 "expected_dt_with_dependency.dtb",
256 "expected_dt_with_multiple_dependencies.dtb",
257 "expected_dt_with_dependency_loop.dtb",
258 ],
259 tools: ["dtc"],
260 cmd: "FILES=($(in));" +
261 "cp $${FILES[0]} $(genDir)/platform_preprocessed.dts;" +
262 "for DTS in $${FILES[@]:1}; do" +
263 " DTB=$$(basename -s .dts $${DTS}).dtb;" +
264 " $(location dtc) -@ -i $(genDir) -I dts -O dtb $${DTS} -o $(genDir)/$${DTB};" +
265 "done",
266 visibility: ["//visibility:private"],
267}
268
Andrew Walbran15068b02022-03-22 15:57:34 +0000269cc_binary {
Pierre-Clément Tosib1300352022-09-09 11:01:06 +0100270 name: "pvmfw",
David Brazdil30a7f082022-07-07 15:30:14 +0100271 defaults: ["vmbase_elf_defaults"],
Andrew Walbran15068b02022-03-22 15:57:34 +0000272 srcs: [
Andrew Walbran267f6c12022-03-24 11:26:36 +0000273 "idmap.S",
Andrew Walbran15068b02022-03-22 15:57:34 +0000274 ],
275 static_libs: [
276 "libpvmfw",
Pierre-Clément Tosi6203d672024-11-18 14:54:31 +0000277 "libvmbase_dice_clear_memory",
Andrew Walbran15068b02022-03-22 15:57:34 +0000278 ],
Andrew Walbrana5b7af52022-07-06 15:06:20 +0000279 linker_scripts: [
280 "image.ld",
281 ":vmbase_sections",
282 ],
Jiyong Park17b8d752022-12-16 14:36:24 +0900283 // `installable: false` is inherited from vmbase_elf_defaults, and that
284 // hides this module from Make, which makes it impossible for the Make world
285 // to place the unstripped binary to the symbols directory. Marking back as
286 // installable exposes this module to the Make world again. Note that this
287 // module (pvmfw) still is NOT installed to any of the filesystem images. It
288 // is fed into pvmfw_bin and then into pvmfw_img to become a standalone
289 // partition image. This is just to package the unstripped file into the
290 // symbols zip file for debugging purpose.
291 installable: true,
Andrew Walbran15068b02022-03-22 15:57:34 +0000292}
David Brazdil05d4e072022-04-25 14:47:06 +0100293
294raw_binary {
Pierre-Clément Tosib1300352022-09-09 11:01:06 +0100295 name: "pvmfw_bin",
296 stem: "pvmfw.bin",
297 src: ":pvmfw",
David Brazdil05d4e072022-04-25 14:47:06 +0100298 enabled: false,
299 target: {
300 android_arm64: {
301 enabled: true,
302 },
303 },
304}
David Brazdilac216b52022-04-25 15:07:22 +0100305
Jaewan Kim2cf6f392023-02-10 01:35:47 +0900306// Provide pvmfw.bin binary regardless of the architecture for building test.
307// Note that skipping tests on unsupported device is easy
308// while configuring server configuration to make such tests to run on working
309// devices.
310prebuilt_etc {
311 name: "pvmfw_test",
312 filename: "pvmfw_test.bin",
313 target: {
314 android_arm64: {
315 src: ":pvmfw_bin",
316 },
317 },
Alice Wang1c7e0eb2023-04-11 17:03:42 +0000318 src: ":empty_file",
Jaewan Kim2cf6f392023-02-10 01:35:47 +0900319 installable: false,
320}
321
Pierre-Clément Tosi8b5533d2024-05-24 10:47:59 +0100322filegroup {
Pierre-Clément Tosi6ec2ae22022-10-26 15:14:45 +0100323 name: "pvmfw_embedded_key",
Pierre-Clément Tosi8b5533d2024-05-24 10:47:59 +0100324 srcs: [":avb_testkey_rsa4096"],
325}
326
327genrule {
328 name: "pvmfw_embedded_key_pub_bin",
329 tools: ["avbtool"],
330 srcs: [":pvmfw_embedded_key"],
331 out: ["pvmfw_embedded_key_pub.bin"],
332 cmd: "$(location avbtool) extract_public_key --key $(in) --output $(out)",
Pierre-Clément Tosi6ec2ae22022-10-26 15:14:45 +0100333}
334
Pierre-Clément Tosi4ef75222022-10-26 17:40:50 +0100335genrule {
336 name: "pvmfw_embedded_key_rs",
Pierre-Clément Tosi8b5533d2024-05-24 10:47:59 +0100337 srcs: [":pvmfw_embedded_key_pub_bin"],
Pierre-Clément Tosi4ef75222022-10-26 17:40:50 +0100338 out: ["lib.rs"],
339 cmd: "(" +
340 " echo '#![no_std]';" +
341 " echo '#![allow(missing_docs)]';" +
342 " echo 'pub const PUBLIC_KEY: &[u8] = &[';" +
343 " xxd -i < $(in);" +
344 " echo '];';" +
345 ") > $(out)",
346}
347
348rust_library_rlib {
349 name: "libpvmfw_embedded_key",
Pierre-Clément Tosi4894b432023-06-27 14:02:26 +0000350 defaults: ["vmbase_rlib_defaults"],
Pierre-Clément Tosi4ef75222022-10-26 17:40:50 +0100351 srcs: [":pvmfw_embedded_key_rs"],
352 crate_name: "pvmfw_embedded_key",
Pierre-Clément Tosi4ef75222022-10-26 17:40:50 +0100353}
354
Pierre-Clément Tosi6ec2ae22022-10-26 15:14:45 +0100355prebuilt_etc {
Pierre-Clément Tosib5771c02022-09-06 16:01:35 +0100356 name: "pvmfw_sign_key",
357 src: ":avb_testkey_rsa4096",
358 installable: false,
359}
360
Jiyong Park9c1c8182023-05-25 15:40:11 +0900361// We need to rename *.dts into *.cpp as cc_object doesn't accept *.dts as an
362// input
Jiyong Park216793e2023-02-25 02:15:44 +0900363genrule {
Jiyong Park9c1c8182023-05-25 15:40:11 +0900364 name: "pvmfw_platform.dts.renamed",
365 srcs: ["platform.dts"],
366 out: ["out.cpp"],
367 cmd: "cp $(in) $(out)",
368 visibility: ["//visibility:private"],
369}
370
371// Then run the macro processor to replace symbols like GIC_SPI into actual
372// numbers defined in the ARM DT binding headers
373cc_object {
374 name: "pvmfw_platform.dts.preprocessed",
Nikita Ioffe38b9e712024-02-08 15:55:07 +0000375 defaults: ["avf_build_flags_cc"],
Jiyong Park9c1c8182023-05-25 15:40:11 +0900376 header_libs: ["arm_dt_bindings_headers"],
377 host_supported: true,
378 srcs: [":pvmfw_platform.dts.renamed"],
379 cflags: [
380 "-E",
381 "-P",
382 "-xassembler-with-cpp", // allow C preprocessor directives
Venkat Yadlapatiefcbf3a2024-12-22 13:06:42 +0530383 // Suppress an error about the unused -c that precedes -S.
384 "-Wno-unused-command-line-argument",
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}