2021-02-04 02:36:27 +00:00
|
|
|
package {
|
|
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
|
|
}
|
|
|
|
|
2021-02-09 12:23:36 +00:00
|
|
|
microdroid_rootdirs = [
|
|
|
|
"dev",
|
|
|
|
"proc",
|
|
|
|
"sys",
|
|
|
|
|
|
|
|
// TODO(b/180267599): clean up unnecessary partition mount points
|
|
|
|
"system",
|
|
|
|
"system_ext",
|
|
|
|
"vendor",
|
|
|
|
"vendor_dlkm",
|
|
|
|
"product",
|
|
|
|
"odm",
|
|
|
|
"odm_dlkm",
|
|
|
|
"debug_ramdisk",
|
|
|
|
"mnt",
|
|
|
|
|
|
|
|
"apex",
|
|
|
|
"linkerconfig",
|
|
|
|
"second_stage_resources",
|
|
|
|
"postinstall",
|
|
|
|
]
|
|
|
|
|
|
|
|
microdroid_symlinks = [
|
|
|
|
{
|
|
|
|
target: "/sys/kernel/debug",
|
|
|
|
name: "d",
|
|
|
|
},
|
|
|
|
]
|
|
|
|
|
2021-01-25 10:12:47 +00:00
|
|
|
android_filesystem {
|
|
|
|
name: "microdroid",
|
|
|
|
use_avb: true,
|
|
|
|
avb_private_key: "microdroid.pem",
|
|
|
|
avb_algorithm: "SHA256_RSA4096",
|
|
|
|
deps: [
|
|
|
|
"init_second_stage",
|
|
|
|
],
|
2021-02-15 08:04:39 +00:00
|
|
|
base_dir: "system",
|
2021-02-09 12:23:36 +00:00
|
|
|
dirs: microdroid_rootdirs,
|
|
|
|
symlinks: microdroid_symlinks,
|
2021-02-03 05:50:28 +00:00
|
|
|
file_contexts: "microdroid_file_contexts",
|
2021-01-25 10:12:47 +00:00
|
|
|
}
|
2021-02-03 23:54:31 +00:00
|
|
|
|
|
|
|
bootimg {
|
|
|
|
name: "microdroid_vendor_boot-5.10",
|
|
|
|
ramdisk_module: "microdroid_ramdisk-5.10",
|
|
|
|
dtb_prebuilt: "dummy_dtb.img",
|
|
|
|
header_version: "3",
|
|
|
|
vendor_boot: true,
|
|
|
|
partition_name: "vendor_boot",
|
|
|
|
}
|
|
|
|
|
|
|
|
android_filesystem {
|
|
|
|
name: "microdroid_ramdisk-5.10",
|
|
|
|
arch: {
|
|
|
|
arm64: {
|
|
|
|
deps: ["virt_device_prebuilts_kernel_modules-5.10-arm64"],
|
|
|
|
},
|
|
|
|
x86_64: {
|
|
|
|
deps: ["virt_device_prebuilts_kernel_modules-5.10-x86_64"],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
type: "compressed_cpio",
|
|
|
|
}
|