2021-02-04 02:36:27 +00:00
|
|
|
package {
|
|
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
|
|
}
|
|
|
|
|
2020-12-07 06:58:23 +00:00
|
|
|
apex {
|
|
|
|
name: "com.android.virt",
|
|
|
|
|
|
|
|
// TODO(jiyong): make it updatable
|
2021-02-16 14:43:40 +00:00
|
|
|
updatable: false,
|
2020-12-07 06:58:23 +00:00
|
|
|
|
|
|
|
manifest: "manifest.json",
|
|
|
|
|
|
|
|
key: "com.android.virt.key",
|
|
|
|
certificate: ":com.android.virt.certificate",
|
|
|
|
|
2021-01-05 14:14:46 +00:00
|
|
|
// crosvm is enabled for only 64-bit targets on device
|
2020-12-07 06:58:47 +00:00
|
|
|
arch: {
|
|
|
|
arm64: {
|
|
|
|
binaries: [
|
2021-03-11 22:19:18 +00:00
|
|
|
"authfs", // TODO(victorhsieh): move to microdroid once we can run the test in VM.
|
2021-01-05 14:14:46 +00:00
|
|
|
"crosvm",
|
|
|
|
],
|
2021-04-12 05:48:42 +00:00
|
|
|
filesystems: [
|
|
|
|
"microdroid_super",
|
|
|
|
"microdroid_boot-5.10",
|
|
|
|
"microdroid_vendor_boot-5.10",
|
|
|
|
"microdroid_vbmeta",
|
|
|
|
"microdroid_vbmeta_system",
|
|
|
|
],
|
2021-01-05 14:14:46 +00:00
|
|
|
},
|
|
|
|
x86_64: {
|
|
|
|
binaries: [
|
2021-03-11 22:19:18 +00:00
|
|
|
"authfs", // TODO(victorhsieh): move to microdroid once we can run the test in VM.
|
2020-12-07 06:58:47 +00:00
|
|
|
"crosvm",
|
|
|
|
],
|
2021-04-12 05:48:42 +00:00
|
|
|
filesystems: [
|
|
|
|
"microdroid_super",
|
|
|
|
"microdroid_boot-5.10",
|
|
|
|
"microdroid_vendor_boot-5.10",
|
|
|
|
"microdroid_vbmeta",
|
|
|
|
"microdroid_vbmeta_system",
|
|
|
|
],
|
2020-12-07 06:58:47 +00:00
|
|
|
},
|
|
|
|
},
|
2021-02-16 04:23:00 +00:00
|
|
|
binaries: [
|
2021-03-11 22:19:18 +00:00
|
|
|
"fd_server",
|
2021-05-21 12:41:13 +00:00
|
|
|
"virtualizationservice",
|
2021-03-04 16:11:12 +00:00
|
|
|
"vm",
|
2021-04-19 18:57:19 +00:00
|
|
|
|
|
|
|
// tools to create composite images
|
|
|
|
"mk_cdisk",
|
|
|
|
"mk_payload",
|
2021-02-16 04:23:00 +00:00
|
|
|
],
|
2021-05-17 12:57:24 +00:00
|
|
|
apps: [
|
2021-05-27 13:27:30 +00:00
|
|
|
// TODO(jiyong): remove this when microdroid_payload.json is created by
|
|
|
|
// VirtualizationService.
|
2021-05-17 12:57:24 +00:00
|
|
|
"MicrodroidTestApp",
|
|
|
|
],
|
2021-04-12 05:48:42 +00:00
|
|
|
prebuilts: [
|
|
|
|
"com.android.virt.init.rc",
|
|
|
|
"microdroid_cdisk.json",
|
2021-04-13 08:43:10 +00:00
|
|
|
"microdroid_cdisk_env.json",
|
2021-04-23 05:47:44 +00:00
|
|
|
"microdroid_cdisk_userdata.json",
|
2021-04-19 18:57:19 +00:00
|
|
|
"microdroid_payload.json",
|
2021-04-12 05:48:42 +00:00
|
|
|
"microdroid_uboot_env",
|
|
|
|
"microdroid_bootloader",
|
|
|
|
],
|
2021-03-25 21:18:53 +00:00
|
|
|
file_contexts: ":com.android.virt-file_contexts",
|
2020-12-07 06:58:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
apex_key {
|
|
|
|
name: "com.android.virt.key",
|
|
|
|
public_key: "com.android.virt.avbpubkey",
|
|
|
|
private_key: "com.android.virt.pem",
|
|
|
|
}
|
|
|
|
|
|
|
|
android_app_certificate {
|
|
|
|
name: "com.android.virt.certificate",
|
|
|
|
certificate: "com.android.virt",
|
|
|
|
}
|
2021-03-25 21:18:53 +00:00
|
|
|
|
|
|
|
prebuilt_etc {
|
|
|
|
name: "com.android.virt.init.rc",
|
2021-05-21 12:41:13 +00:00
|
|
|
src: "virtualizationservice.rc",
|
2021-03-25 21:18:53 +00:00
|
|
|
filename: "init.rc",
|
|
|
|
}
|