1package {
2    default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
5apex {
6    name: "com.android.virt",
7
8    // TODO(jiyong): make it updatable
9    updatable: false,
10
11    manifest: "manifest.json",
12
13    key: "com.android.virt.key",
14    certificate: ":com.android.virt.certificate",
15
16    // crosvm is enabled for only 64-bit targets on device
17    arch: {
18        arm64: {
19            binaries: [
20                "authfs", // TODO(victorhsieh): move to microdroid once we can run the test in VM.
21                "crosvm",
22            ],
23            filesystems: [
24                "microdroid_super",
25                "microdroid_boot-5.10",
26                "microdroid_vendor_boot-5.10",
27                "microdroid_vbmeta",
28                "microdroid_vbmeta_system",
29            ],
30        },
31        x86_64: {
32            binaries: [
33                "authfs", // TODO(victorhsieh): move to microdroid once we can run the test in VM.
34                "crosvm",
35            ],
36            filesystems: [
37                "microdroid_super",
38                "microdroid_boot-5.10",
39                "microdroid_vendor_boot-5.10",
40                "microdroid_vbmeta",
41                "microdroid_vbmeta_system",
42            ],
43        },
44    },
45    binaries: [
46        "fd_server",
47        "virtmanager",
48        "vm",
49
50        // tools to create composite images
51        "mk_cdisk",
52        "mk_payload",
53    ],
54    prebuilts: [
55        "com.android.virt.init.rc",
56        "microdroid_cdisk.json",
57        "microdroid_cdisk_env.json",
58        "microdroid_cdisk_userdata.json",
59        "microdroid_payload.json",
60        "microdroid_uboot_env",
61        "microdroid_bootloader",
62    ],
63    file_contexts: ":com.android.virt-file_contexts",
64}
65
66apex_key {
67    name: "com.android.virt.key",
68    public_key: "com.android.virt.avbpubkey",
69    private_key: "com.android.virt.pem",
70}
71
72android_app_certificate {
73    name: "com.android.virt.certificate",
74    certificate: "com.android.virt",
75}
76
77prebuilt_etc {
78    name: "com.android.virt.init.rc",
79    src: "virtmanager.rc",
80    filename: "init.rc",
81}
82