You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

94 lines
2.2 KiB

// Syntax: Blueprint
board_config {
name: "acme_board_config",
platform: "msmnile",
target_arch: "arm64",
target_arch_variant: "armv8-a",
target_cpu_abi: "arm64-v8a",
target_cpu_abi2 :=",
target_cpu_variant: "generic",
target_cpu_variant_runtime: "cortex-a76",
target_2nd_arch: "arm",
target_2nd_arch_variant: "armv8-a",
target_2nd_cpu_abi: "armeabi-v7a",
target_2nd_cpu_abi2: "armeabi",
target_2nd_cpu_variant: "generic",
target_2nd_cpu_variant_runtime: "cortex-a76",
}
// boot.img but also kernel and dtbo configs, recovery
bootimg_config {
name: "acme_bootimg_config",
kernel_base: "0x00000000",
kernel_page_size: "4096",
kernel_cmdline: [
"androidboot.memcg=1",
"cgroup.memory=nokmem",
],
// TODO: Use prebuilt_ module class for this?
prebuilt_dtbo_image: "//device/acme/coyote-kernel/dtbo.img",
dtbo_image_partition_size: "10000",
include_dtb_in_bootimg: true,
mkbootimg_args: [
"--header_version 2",
],
recovery_as_boot: true,
no_kernel: false,
}
filesystem_config {
name: "acme_filesystem_config",
uses_metadata_partition: true,
fs_config_gen: "config.fs",
recovery_wipe: "recovery.wipe",
// This should match the name of the prebuilt_etc module
// for fstab.hardware:
fstab: "fstab.hardware",
ab_ota: true,
ab_ota_partitions: [
"boot",
"system",
"vbmeta",
"dtbo",
],
// Dynamic partitions?
}
avb_config: {
// AVB/vbmeta and dm-verity stuff
name: "acme_avb_vbmeta_system",
system: true, // default
partitions: [
"system",
"system_ext",
],
product_variables: {
platform_security_patch: {
rollback_index_system: "%s",
},
},
algorithm: "SHA256_RSA2048",
// Matches module avb_key(?) in external/avb/test/data
keys: ["avb_system_testkey_rsa2048.pem"],
}
// Makes more sense to move this into
// device/acme/roadrunner-sepolicy/Android.bp
sepolicy_config {
// Match current DeviceConfig.VendorSepolicyDirs()?
vendor_sepolicy_dirs: [
"sepolicy/acme/vendor",
"sepolicy/thirdparty/vendor",
],
product_sepolicy_dirs: [
"sepolicy/thirdparty/product",
],
}