blob: cd32f8fe7be1bb4711dda3977b108497112ef721 [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: [
Alice Wang947f3f72023-09-29 09:04:07 +000014 "libbssl_avf_nostd",
Shikha Panwar8f7fc1a2024-04-10 10:41:34 +000015 "libcbor_util_nostd",
Alan Stokesd1ee63e2023-04-24 16:17:39 +010016 "libciborium_nostd",
17 "libciborium_io_nostd",
Alice Wang6823ffc2024-10-29 15:54:34 +000018 "libcoset_nostd",
Alice Wangcb9d2f92023-02-06 10:29:00 +000019 "libdiced_open_dice_nostd",
Per Larsen7ec45d32024-11-02 00:56:46 +000020 "libhypervisor_backends",
Pierre-Clément Tosi992c2bb2024-10-02 10:37:42 +010021 "liblibfdt_nostd",
Pierre-Clément Tosi37105a62022-10-18 12:21:48 +010022 "liblog_rust_nostd",
Pierre-Clément Tosi2d652982023-01-09 19:30:17 +000023 "libpvmfw_avb_nostd",
Pierre-Clément Tosi4ef75222022-10-26 17:40:50 +010024 "libpvmfw_embedded_key",
Jiyong Park216793e2023-02-25 02:15:44 +090025 "libpvmfw_fdt_template",
Pierre-Clément Tosi1cc5eb72023-02-02 11:09:18 +000026 "libstatic_assertions",
Pierre-Clément Tosi328dfb62022-11-25 18:20:42 +000027 "libtinyvec_nostd",
Pierre-Clément Tosi1cc5eb72023-02-02 11:09:18 +000028 "libuuid_nostd",
Andrew Walbrand1d03182022-12-09 18:20:01 +000029 "libvirtio_drivers",
Andrew Walbrandd74b902022-04-14 16:12:50 +000030 "libvmbase",
Andrew Walbran47d316e2024-11-28 18:41:09 +000031 "libzerocopy_nostd",
Pierre-Clément Tosi8383c542022-11-01 14:07:29 +000032 "libzeroize_nostd",
Andrew Walbranf2594882022-03-15 17:32:53 +000033 ],
Michał Mazurekac13af62024-11-28 14:21:46 +010034 target: {
35 android_arm64: {
36 rustlibs: [
37 "libaarch64_paging",
38 "libsmccc",
39 "libservice_vm_version",
40 ],
41 },
42 },
Andrew Walbran68a8c162022-03-07 15:38:42 +000043}
Andrew Walbran15068b02022-03-22 15:57:34 +000044
Alice Wang1c7e0eb2023-04-11 17:03:42 +000045// Generates an empty file.
46genrule {
47 name: "empty_file",
48 out: ["empty_file"],
49 cmd: "touch $(out)",
50}
51
Alan Stokesddb988c2023-11-27 11:13:06 +000052rust_defaults {
53 name: "libpvmfw.test.defaults",
Nikita Ioffeda1b2732023-09-04 13:46:56 +010054 defaults: ["avf_build_flags_rust"],
Jiyong Parkc5d2ef22023-04-11 01:23:46 +090055 test_suites: ["general-tests"],
56 test_options: {
57 unit_test: true,
58 },
Alan Stokesddb988c2023-11-27 11:13:06 +000059 prefer_rlib: true,
Alan Stokesddb988c2023-11-27 11:13:06 +000060}
61
62rust_test {
63 name: "libpvmfw.bootargs.test",
64 host_supported: true,
65 // For now, only bootargs.rs is written to be conditionally compiled with std.
66 srcs: ["src/bootargs.rs"],
67 defaults: ["libpvmfw.test.defaults"],
68 rustlibs: [
Jiyong Parkc5d2ef22023-04-11 01:23:46 +090069 "libzeroize",
70 ],
71}
72
Alan Stokesddb988c2023-11-27 11:13:06 +000073rust_test {
74 name: "libpvmfw.device_assignment.test",
75 srcs: ["src/device_assignment.rs"],
76 defaults: ["libpvmfw.test.defaults"],
77 rustlibs: [
Jaewan Kim8f6f4662023-12-12 17:38:47 +090078 "libdts",
Alan Stokesddb988c2023-11-27 11:13:06 +000079 "liblibfdt",
80 "liblog_rust",
81 "libpvmfw_fdt_template",
Andrew Walbran47d316e2024-11-28 18:41:09 +000082 "libzerocopy",
Alan Stokesddb988c2023-11-27 11:13:06 +000083 ],
84 data: [
85 ":test_pvmfw_devices_vm_dtbo",
86 ":test_pvmfw_devices_vm_dtbo_without_symbols",
Jaewan Kim19b984f2023-12-04 15:16:50 +090087 ":test_pvmfw_devices_vm_dtbo_with_duplicated_iommus",
Pierre-Clément Tosi49e26ce2024-03-12 16:31:50 +000088 ":test_pvmfw_devices_overlapping_pvmfw",
Jaewan Kim8f6f4662023-12-12 17:38:47 +090089 ":test_pvmfw_devices_vm_dtbo_with_dependencies",
Alan Stokesddb988c2023-11-27 11:13:06 +000090 ":test_pvmfw_devices_with_rng",
Alan Stokesddb988c2023-11-27 11:13:06 +000091 ":test_pvmfw_devices_with_multiple_devices_iommus",
92 ":test_pvmfw_devices_with_iommu_sharing",
93 ":test_pvmfw_devices_with_iommu_id_conflict",
Jaewan Kim52477ae2023-11-21 21:20:52 +090094 ":test_pvmfw_devices_without_device",
Jaewan Kima67e36a2023-11-29 16:50:23 +090095 ":test_pvmfw_devices_without_iommus",
Jaewan Kim19b984f2023-12-04 15:16:50 +090096 ":test_pvmfw_devices_with_duplicated_pviommus",
97 ":test_pvmfw_devices_with_multiple_reg_iommus",
Jaewan Kim8f6f4662023-12-12 17:38:47 +090098 ":test_pvmfw_devices_with_dependency",
99 ":test_pvmfw_devices_with_dependency_loop",
100 ":test_pvmfw_devices_with_multiple_dependencies",
101 ":test_pvmfw_devices_expected_dt",
Alan Stokesddb988c2023-11-27 11:13:06 +0000102 ],
Jaewan Kim8f6f4662023-12-12 17:38:47 +0900103 data_bins: ["dtc_static"],
104 compile_multilib: "first",
Alan Stokesddb988c2023-11-27 11:13:06 +0000105 // To use libpvmfw_fdt_template for testing
106 enabled: false,
107 target: {
108 android_arm64: {
109 enabled: true,
110 },
111 },
112}
113
114rust_test {
115 name: "libpvmfw.dice.test",
Pierre-Clément Tosif5d34852025-03-03 11:44:43 -0800116 srcs: ["src/dice/mod.rs"],
Alan Stokesddb988c2023-11-27 11:13:06 +0000117 defaults: ["libpvmfw.test.defaults"],
118 rustlibs: [
119 "libcbor_util",
120 "libciborium",
Pierre-Clément Tosif5d34852025-03-03 11:44:43 -0800121 "libcoset_nostd",
Alice Wangb4c3e532024-11-18 08:24:08 +0000122 "libdiced_open_dice_nostd",
Alice Wang4dc62912024-12-11 08:27:15 +0000123 "libhwtrust",
Pierre-Clément Tosif5d34852025-03-03 11:44:43 -0800124 "liblog_rust",
Alan Stokesddb988c2023-11-27 11:13:06 +0000125 "libpvmfw_avb_nostd",
Alice Wang87fbc4b2024-11-05 13:09:58 +0000126 "libdiced_sample_inputs_nostd",
Andrew Walbran47d316e2024-11-28 18:41:09 +0000127 "libzerocopy_nostd",
Shikha Panwarf3acfd12024-05-28 15:48:13 +0000128 "libhex",
Alan Stokesddb988c2023-11-27 11:13:06 +0000129 ],
Pierre-Clément Tosie5fffd82024-11-18 13:19:55 +0000130 static_libs: ["libopen_dice_clear_memory"],
Alan Stokesddb988c2023-11-27 11:13:06 +0000131}
132
Jaewan Kimc6e023b2023-10-12 15:11:05 +0900133genrule {
134 name: "test_pvmfw_devices_vm_dtbo",
135 defaults: ["dts_to_dtb"],
136 srcs: ["testdata/test_pvmfw_devices_vm_dtbo.dts"],
137 out: ["test_pvmfw_devices_vm_dtbo.dtbo"],
138}
139
140genrule {
141 name: "test_pvmfw_devices_vm_dtbo_without_symbols",
142 defaults: ["dts_to_dtb"],
143 srcs: ["testdata/test_pvmfw_devices_vm_dtbo_without_symbols.dts"],
144 out: ["test_pvmfw_devices_vm_dtbo_without_symbols.dtbo"],
145}
146
Jaewan Kim19b984f2023-12-04 15:16:50 +0900147genrule {
148 name: "test_pvmfw_devices_vm_dtbo_with_duplicated_iommus",
149 defaults: ["dts_to_dtb"],
150 srcs: ["testdata/test_pvmfw_devices_vm_dtbo_with_duplicated_iommus.dts"],
151 out: ["test_pvmfw_devices_vm_dtbo_with_duplicated_iommus.dtbo"],
152}
153
Jaewan Kim8f6f4662023-12-12 17:38:47 +0900154genrule {
155 name: "test_pvmfw_devices_vm_dtbo_with_dependencies",
156 tools: ["dtc"],
157 cmd: "$(location dtc) -@ -I dts -O dtb $(in) -o $(out)",
158 srcs: ["testdata/test_pvmfw_devices_vm_dtbo_with_dependencies.dts"],
159 out: ["test_pvmfw_devices_vm_dtbo_with_dependencies.dtbo"],
160}
161
Jaewan Kimcb0d45d2023-11-30 15:40:12 +0900162genrule_defaults {
163 name: "test_device_assignment_dts_to_dtb",
164 defaults: ["dts_to_dtb"],
165 srcs: ["testdata/test_crosvm_dt_base.dtsi"],
166}
167
Jaewan Kimc6e023b2023-10-12 15:11:05 +0900168genrule {
Pierre-Clément Tosi49e26ce2024-03-12 16:31:50 +0000169 name: "test_pvmfw_devices_overlapping_pvmfw",
170 defaults: ["test_device_assignment_dts_to_dtb"],
171 srcs: ["testdata/test_pvmfw_devices_overlapping_pvmfw.dts"],
172 out: ["test_pvmfw_devices_overlapping_pvmfw.dtb"],
173}
174
175genrule {
Jaewan Kimc6e023b2023-10-12 15:11:05 +0900176 name: "test_pvmfw_devices_with_rng",
Jaewan Kimcb0d45d2023-11-30 15:40:12 +0900177 defaults: ["test_device_assignment_dts_to_dtb"],
Jaewan Kimc6e023b2023-10-12 15:11:05 +0900178 srcs: ["testdata/test_pvmfw_devices_with_rng.dts"],
179 out: ["test_pvmfw_devices_with_rng.dtb"],
180}
181
Jaewan Kim51ccfed2023-11-08 13:51:58 +0900182genrule {
Jaewan Kima67e36a2023-11-29 16:50:23 +0900183 name: "test_pvmfw_devices_without_iommus",
Jaewan Kimcb0d45d2023-11-30 15:40:12 +0900184 defaults: ["test_device_assignment_dts_to_dtb"],
Jaewan Kima67e36a2023-11-29 16:50:23 +0900185 srcs: ["testdata/test_pvmfw_devices_without_iommus.dts"],
186 out: ["test_pvmfw_devices_without_iommus.dtb"],
Jaewan Kim51ccfed2023-11-08 13:51:58 +0900187}
188
189genrule {
Jaewan Kim52477ae2023-11-21 21:20:52 +0900190 name: "test_pvmfw_devices_without_device",
191 defaults: ["test_device_assignment_dts_to_dtb"],
192 srcs: ["testdata/test_pvmfw_devices_without_device.dts"],
193 out: ["test_pvmfw_devices_without_device.dtb"],
194}
195
196genrule {
Jaewan Kim51ccfed2023-11-08 13:51:58 +0900197 name: "test_pvmfw_devices_with_multiple_devices_iommus",
Jaewan Kimcb0d45d2023-11-30 15:40:12 +0900198 defaults: ["test_device_assignment_dts_to_dtb"],
Jaewan Kim51ccfed2023-11-08 13:51:58 +0900199 srcs: ["testdata/test_pvmfw_devices_with_multiple_devices_iommus.dts"],
200 out: ["test_pvmfw_devices_with_multiple_devices_iommus.dtb"],
201}
202
203genrule {
204 name: "test_pvmfw_devices_with_iommu_sharing",
Jaewan Kimcb0d45d2023-11-30 15:40:12 +0900205 defaults: ["test_device_assignment_dts_to_dtb"],
Jaewan Kim51ccfed2023-11-08 13:51:58 +0900206 srcs: ["testdata/test_pvmfw_devices_with_iommu_sharing.dts"],
207 out: ["test_pvmfw_devices_with_iommu_sharing.dtb"],
208}
209
210genrule {
211 name: "test_pvmfw_devices_with_iommu_id_conflict",
Jaewan Kimcb0d45d2023-11-30 15:40:12 +0900212 defaults: ["test_device_assignment_dts_to_dtb"],
Jaewan Kim51ccfed2023-11-08 13:51:58 +0900213 srcs: ["testdata/test_pvmfw_devices_with_iommu_id_conflict.dts"],
214 out: ["test_pvmfw_devices_with_iommu_id_conflict.dtb"],
215}
216
Jaewan Kim19b984f2023-12-04 15:16:50 +0900217genrule {
218 name: "test_pvmfw_devices_with_duplicated_pviommus",
219 defaults: ["test_device_assignment_dts_to_dtb"],
220 srcs: ["testdata/test_pvmfw_devices_with_duplicated_pviommus.dts"],
221 out: ["test_pvmfw_devices_with_duplicated_pviommus.dtb"],
222}
223
224genrule {
225 name: "test_pvmfw_devices_with_multiple_reg_iommus",
226 defaults: ["test_device_assignment_dts_to_dtb"],
227 srcs: ["testdata/test_pvmfw_devices_with_multiple_reg_iommus.dts"],
228 out: ["test_pvmfw_devices_with_multiple_reg_iommus.dtb"],
229}
230
Jaewan Kim8f6f4662023-12-12 17:38:47 +0900231genrule {
232 name: "test_pvmfw_devices_with_dependency",
233 defaults: ["test_device_assignment_dts_to_dtb"],
234 srcs: ["testdata/test_pvmfw_devices_with_dependency.dts"],
235 out: ["test_pvmfw_devices_with_dependency.dtb"],
236}
237
238genrule {
239 name: "test_pvmfw_devices_with_multiple_dependencies",
240 defaults: ["test_device_assignment_dts_to_dtb"],
241 srcs: ["testdata/test_pvmfw_devices_with_multiple_dependencies.dts"],
242 out: ["test_pvmfw_devices_with_multiple_dependencies.dtb"],
243}
244
245genrule {
246 name: "test_pvmfw_devices_with_dependency_loop",
247 defaults: ["test_device_assignment_dts_to_dtb"],
248 srcs: ["testdata/test_pvmfw_devices_with_dependency_loop.dts"],
249 out: ["test_pvmfw_devices_with_dependency_loop.dtb"],
250}
251
252// We can't use genrule because preprocessed platform DT is built with cc_object.
253// cc_genrule doesn't support default, so we'll build all expected DTs in
254// a single build rule.
255cc_genrule {
256 name: "test_pvmfw_devices_expected_dt",
257 srcs: [
258 ":pvmfw_platform.dts.preprocessed",
259 "testdata/expected_dt_with_dependency.dts",
260 "testdata/expected_dt_with_multiple_dependencies.dts",
261 "testdata/expected_dt_with_dependency_loop.dts",
262 ],
263 out: [
264 "expected_dt_with_dependency.dtb",
265 "expected_dt_with_multiple_dependencies.dtb",
266 "expected_dt_with_dependency_loop.dtb",
267 ],
268 tools: ["dtc"],
269 cmd: "FILES=($(in));" +
270 "cp $${FILES[0]} $(genDir)/platform_preprocessed.dts;" +
271 "for DTS in $${FILES[@]:1}; do" +
272 " DTB=$$(basename -s .dts $${DTS}).dtb;" +
273 " $(location dtc) -@ -i $(genDir) -I dts -O dtb $${DTS} -o $(genDir)/$${DTB};" +
274 "done",
275 visibility: ["//visibility:private"],
276}
277
Andrew Walbran15068b02022-03-22 15:57:34 +0000278cc_binary {
Pierre-Clément Tosib1300352022-09-09 11:01:06 +0100279 name: "pvmfw",
David Brazdil30a7f082022-07-07 15:30:14 +0100280 defaults: ["vmbase_elf_defaults"],
Andrew Walbran15068b02022-03-22 15:57:34 +0000281 static_libs: [
282 "libpvmfw",
Pierre-Clément Tosi6203d672024-11-18 14:54:31 +0000283 "libvmbase_dice_clear_memory",
Andrew Walbran15068b02022-03-22 15:57:34 +0000284 ],
Michał Mazurekac13af62024-11-28 14:21:46 +0100285 target: {
286 android_arm64: {
287 srcs: [
288 "asm/aarch64/idmap.S",
289 ],
290 linker_scripts: [
291 "asm/aarch64/image.ld",
292 ":vmbase_sections",
293 ],
294 },
295 },
Jiyong Park17b8d752022-12-16 14:36:24 +0900296 // `installable: false` is inherited from vmbase_elf_defaults, and that
297 // hides this module from Make, which makes it impossible for the Make world
298 // to place the unstripped binary to the symbols directory. Marking back as
299 // installable exposes this module to the Make world again. Note that this
300 // module (pvmfw) still is NOT installed to any of the filesystem images. It
301 // is fed into pvmfw_bin and then into pvmfw_img to become a standalone
302 // partition image. This is just to package the unstripped file into the
303 // symbols zip file for debugging purpose.
304 installable: true,
Andrew Walbran15068b02022-03-22 15:57:34 +0000305}
David Brazdil05d4e072022-04-25 14:47:06 +0100306
307raw_binary {
Pierre-Clément Tosib1300352022-09-09 11:01:06 +0100308 name: "pvmfw_bin",
309 stem: "pvmfw.bin",
310 src: ":pvmfw",
David Brazdil05d4e072022-04-25 14:47:06 +0100311 enabled: false,
312 target: {
313 android_arm64: {
314 enabled: true,
315 },
316 },
317}
David Brazdilac216b52022-04-25 15:07:22 +0100318
Jaewan Kim2cf6f392023-02-10 01:35:47 +0900319// Provide pvmfw.bin binary regardless of the architecture for building test.
320// Note that skipping tests on unsupported device is easy
321// while configuring server configuration to make such tests to run on working
322// devices.
323prebuilt_etc {
324 name: "pvmfw_test",
325 filename: "pvmfw_test.bin",
326 target: {
327 android_arm64: {
328 src: ":pvmfw_bin",
329 },
330 },
Alice Wang1c7e0eb2023-04-11 17:03:42 +0000331 src: ":empty_file",
Jaewan Kim2cf6f392023-02-10 01:35:47 +0900332 installable: false,
333}
334
Pierre-Clément Tosi8b5533d2024-05-24 10:47:59 +0100335filegroup {
Pierre-Clément Tosi6ec2ae22022-10-26 15:14:45 +0100336 name: "pvmfw_embedded_key",
Pierre-Clément Tosi8b5533d2024-05-24 10:47:59 +0100337 srcs: [":avb_testkey_rsa4096"],
338}
339
340genrule {
341 name: "pvmfw_embedded_key_pub_bin",
342 tools: ["avbtool"],
343 srcs: [":pvmfw_embedded_key"],
344 out: ["pvmfw_embedded_key_pub.bin"],
345 cmd: "$(location avbtool) extract_public_key --key $(in) --output $(out)",
Pierre-Clément Tosi6ec2ae22022-10-26 15:14:45 +0100346}
347
Pierre-Clément Tosi4ef75222022-10-26 17:40:50 +0100348genrule {
349 name: "pvmfw_embedded_key_rs",
Pierre-Clément Tosi8b5533d2024-05-24 10:47:59 +0100350 srcs: [":pvmfw_embedded_key_pub_bin"],
Pierre-Clément Tosi4ef75222022-10-26 17:40:50 +0100351 out: ["lib.rs"],
352 cmd: "(" +
353 " echo '#![no_std]';" +
354 " echo '#![allow(missing_docs)]';" +
355 " echo 'pub const PUBLIC_KEY: &[u8] = &[';" +
356 " xxd -i < $(in);" +
357 " echo '];';" +
358 ") > $(out)",
359}
360
361rust_library_rlib {
362 name: "libpvmfw_embedded_key",
Pierre-Clément Tosi4894b432023-06-27 14:02:26 +0000363 defaults: ["vmbase_rlib_defaults"],
Pierre-Clément Tosi4ef75222022-10-26 17:40:50 +0100364 srcs: [":pvmfw_embedded_key_rs"],
365 crate_name: "pvmfw_embedded_key",
Pierre-Clément Tosi4ef75222022-10-26 17:40:50 +0100366}
367
Pierre-Clément Tosi6ec2ae22022-10-26 15:14:45 +0100368prebuilt_etc {
Pierre-Clément Tosib5771c02022-09-06 16:01:35 +0100369 name: "pvmfw_sign_key",
370 src: ":avb_testkey_rsa4096",
371 installable: false,
372}
373
Jiyong Park9c1c8182023-05-25 15:40:11 +0900374// We need to rename *.dts into *.cpp as cc_object doesn't accept *.dts as an
375// input
Jiyong Park216793e2023-02-25 02:15:44 +0900376genrule {
Jiyong Park9c1c8182023-05-25 15:40:11 +0900377 name: "pvmfw_platform.dts.renamed",
378 srcs: ["platform.dts"],
379 out: ["out.cpp"],
380 cmd: "cp $(in) $(out)",
381 visibility: ["//visibility:private"],
382}
383
384// Then run the macro processor to replace symbols like GIC_SPI into actual
385// numbers defined in the ARM DT binding headers
386cc_object {
387 name: "pvmfw_platform.dts.preprocessed",
Nikita Ioffe38b9e712024-02-08 15:55:07 +0000388 defaults: ["avf_build_flags_cc"],
Jiyong Park9c1c8182023-05-25 15:40:11 +0900389 header_libs: ["arm_dt_bindings_headers"],
390 host_supported: true,
391 srcs: [":pvmfw_platform.dts.renamed"],
392 cflags: [
393 "-E",
394 "-P",
395 "-xassembler-with-cpp", // allow C preprocessor directives
Venkat Yadlapatiefcbf3a2024-12-22 13:06:42 +0530396 // Suppress an error about the unused -c that precedes -S.
397 "-Wno-unused-command-line-argument",
Jiyong Park216793e2023-02-25 02:15:44 +0900398 ],
Jiyong Park9c1c8182023-05-25 15:40:11 +0900399 visibility: ["//visibility:private"],
400}
401
402// Compile the preprocessed dts into binary and create a rust library source
403// having the binary.
404cc_genrule {
405 name: "pvmfw_fdt_template_rs",
406 srcs: [":pvmfw_platform.dts.preprocessed"],
Jiyong Park216793e2023-02-25 02:15:44 +0900407 out: ["lib.rs"],
408 tools: ["dtc"],
Jaewan Kim96411e92023-11-13 15:54:02 +0900409 cmd: "$(location dtc) -@ -I dts -O dtb -o $(genDir)/compiled.dtbo $(in) && " +
Jiyong Park216793e2023-02-25 02:15:44 +0900410 "(" +
411 " echo '#![no_std]';" +
412 " echo '#![allow(missing_docs)]';" +
413 " echo 'pub const RAW: &[u8] = &[';" +
414 " xxd -i < $(genDir)/compiled.dtbo;" +
415 " echo '];';" +
416 ") > $(out)",
Jiyong Park9c1c8182023-05-25 15:40:11 +0900417 visibility: ["//visibility:private"],
Jiyong Park216793e2023-02-25 02:15:44 +0900418}
419
420rust_library_rlib {
421 name: "libpvmfw_fdt_template",
Pierre-Clément Tosi4894b432023-06-27 14:02:26 +0000422 defaults: ["vmbase_rlib_defaults"],
Jiyong Park216793e2023-02-25 02:15:44 +0900423 srcs: [":pvmfw_fdt_template_rs"],
424 crate_name: "pvmfw_fdt_template",
425}
426
David Brazdilac216b52022-04-25 15:07:22 +0100427bootimg {
428 name: "pvmfw_img",
429 stem: "pvmfw.img",
430 kernel_prebuilt: ":pvmfw_bin",
431 header_version: "3",
432 partition_name: "pvmfw",
433 enabled: false,
434 target: {
435 android_arm64: {
436 enabled: true,
437 },
438 },
Pierre-Clément Tosib5771c02022-09-06 16:01:35 +0100439 use_avb: true,
440 avb_private_key: ":pvmfw_sign_key",
David Brazdilac216b52022-04-25 15:07:22 +0100441}