android_packages_modules_Vi.../pvmfw/Android.bp

67 lines
1.2 KiB
Plaintext

package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
rust_ffi_static {
name: "libpvmfw",
crate_name: "pvmfw",
defaults: ["vmbase_ffi_defaults"],
srcs: ["src/main.rs"],
edition: "2021",
rustlibs: [
"libvmbase",
],
apex_available: ["com.android.virt"],
}
cc_binary {
name: "pvmfw",
defaults: ["vmbase_elf_defaults"],
srcs: [
"idmap.S",
"payload.S",
],
static_libs: [
"libpvmfw",
],
linker_scripts: [
"image.ld",
":vmbase_sections",
],
apex_available: ["com.android.virt"],
}
raw_binary {
name: "pvmfw_bin",
stem: "pvmfw.bin",
src: ":pvmfw",
enabled: false,
target: {
android_arm64: {
enabled: true,
},
},
}
prebuilt_etc {
name: "pvmfw_sign_key",
src: ":avb_testkey_rsa4096",
installable: false,
}
bootimg {
name: "pvmfw_img",
stem: "pvmfw.img",
kernel_prebuilt: ":pvmfw_bin",
header_version: "3",
partition_name: "pvmfw",
enabled: false,
target: {
android_arm64: {
enabled: true,
},
},
use_avb: true,
avb_private_key: ":pvmfw_sign_key",
}