Bob Badour | 2efc476 | 2021-02-03 18:36:27 -0800 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 3 | } |
| 4 | |
Victor Hsieh | 384bf6a | 2021-11-11 13:28:09 -0800 | [diff] [blame] | 5 | microdroid_filesystem_images = [ |
Andrew Scull | d6267ae | 2022-06-13 13:47:59 +0000 | [diff] [blame] | 6 | "microdroid_super", |
Victor Hsieh | 384bf6a | 2021-11-11 13:28:09 -0800 | [diff] [blame] | 7 | "microdroid_vbmeta", |
Victor Hsieh | 384bf6a | 2021-11-11 13:28:09 -0800 | [diff] [blame] | 8 | ] |
| 9 | |
Nikita Ioffe | 50e2ebe | 2022-10-24 17:16:25 +0100 | [diff] [blame] | 10 | soong_config_module_type { |
| 11 | name: "virt_apex", |
| 12 | module_type: "apex", |
| 13 | config_namespace: "ANDROID", |
Nikita Ioffe | adb3393 | 2023-06-07 14:33:56 +0100 | [diff] [blame] | 14 | bool_variables: [ |
| 15 | "avf_enabled", |
Nikita Ioffe | adb3393 | 2023-06-07 14:33:56 +0100 | [diff] [blame] | 16 | ], |
| 17 | properties: [ |
| 18 | "defaults", |
| 19 | "prebuilts", |
| 20 | ], |
Nikita Ioffe | 50e2ebe | 2022-10-24 17:16:25 +0100 | [diff] [blame] | 21 | } |
Jiyong Park | da119cb | 2020-12-07 15:58:23 +0900 | [diff] [blame] | 22 | |
Nikita Ioffe | 50e2ebe | 2022-10-24 17:16:25 +0100 | [diff] [blame] | 23 | virt_apex { |
| 24 | name: "com.android.virt", |
| 25 | soong_config_variables: { |
| 26 | avf_enabled: { |
| 27 | defaults: ["com.android.virt_avf_enabled"], |
| 28 | conditions_default: { |
| 29 | defaults: ["com.android.virt_avf_disabled"], |
| 30 | }, |
| 31 | }, |
| 32 | }, |
| 33 | } |
| 34 | |
Nikita Ioffe | ad4c719 | 2024-02-02 13:07:00 +0000 | [diff] [blame] | 35 | soong_config_module_type { |
| 36 | name: "avf_flag_aware_apex_defaults", |
| 37 | module_type: "apex_defaults", |
| 38 | config_namespace: "ANDROID", |
| 39 | bool_variables: [ |
| 40 | "release_avf_enable_device_assignment", |
| 41 | "release_avf_enable_llpvm_changes", |
| 42 | "release_avf_enable_remote_attestation", |
| 43 | "release_avf_enable_vendor_modules", |
David Dai | 351b9cf | 2024-02-14 18:42:09 -0800 | [diff] [blame] | 44 | "release_avf_enable_virt_cpufreq", |
Jeongik Cha | ca77302 | 2024-04-09 17:09:52 +0900 | [diff] [blame] | 45 | "release_avf_support_custom_vm_with_paravirtualized_devices", |
Nikita Ioffe | ad4c719 | 2024-02-02 13:07:00 +0000 | [diff] [blame] | 46 | ], |
| 47 | properties: [ |
| 48 | "androidManifest", |
| 49 | "arch", |
David Dai | 351b9cf | 2024-02-14 18:42:09 -0800 | [diff] [blame] | 50 | "canned_fs_config", |
Nikita Ioffe | ad4c719 | 2024-02-02 13:07:00 +0000 | [diff] [blame] | 51 | "prebuilts", |
| 52 | "systemserverclasspath_fragments", |
| 53 | "vintf_fragments", |
Jeongik Cha | ca77302 | 2024-04-09 17:09:52 +0900 | [diff] [blame] | 54 | "apps", |
Nikita Ioffe | ad4c719 | 2024-02-02 13:07:00 +0000 | [diff] [blame] | 55 | ], |
| 56 | } |
| 57 | |
| 58 | avf_flag_aware_apex_defaults { |
Nikita Ioffe | 50e2ebe | 2022-10-24 17:16:25 +0100 | [diff] [blame] | 59 | name: "com.android.virt_common", |
Jiyong Park | da119cb | 2020-12-07 15:58:23 +0900 | [diff] [blame] | 60 | // TODO(jiyong): make it updatable |
Mathew Inwood | 9af36dd | 2021-02-16 14:43:40 +0000 | [diff] [blame] | 61 | updatable: false, |
Nikita Ioffe | c0b0961 | 2023-01-27 01:49:39 +0000 | [diff] [blame] | 62 | future_updatable: false, |
Jiyong Park | b6c45e7 | 2021-06-22 20:24:56 +0900 | [diff] [blame] | 63 | platform_apis: true, |
Jiyong Park | da119cb | 2020-12-07 15:58:23 +0900 | [diff] [blame] | 64 | |
| 65 | manifest: "manifest.json", |
| 66 | |
| 67 | key: "com.android.virt.key", |
| 68 | certificate: ":com.android.virt.certificate", |
Nikita Ioffe | 50e2ebe | 2022-10-24 17:16:25 +0100 | [diff] [blame] | 69 | |
| 70 | apps: [ |
| 71 | "android.system.virtualmachine.res", |
| 72 | ], |
| 73 | |
| 74 | file_contexts: ":com.android.virt-file_contexts", |
Nikita Ioffe | f28eec2 | 2022-10-18 23:17:34 +0100 | [diff] [blame] | 75 | |
| 76 | bootclasspath_fragments: [ |
| 77 | "com.android.virt-bootclasspath-fragment", |
| 78 | ], |
Nikita Ioffe | b78c620 | 2022-11-18 17:01:36 +0000 | [diff] [blame] | 79 | jni_libs: [ |
David Brazdil | 7958839 | 2022-10-20 17:04:46 +0100 | [diff] [blame] | 80 | "libvirtualizationservice_jni", |
Nikita Ioffe | b78c620 | 2022-11-18 17:01:36 +0000 | [diff] [blame] | 81 | "libvirtualmachine_jni", |
| 82 | ], |
Jooyung Han | 3b980eb | 2023-11-03 14:48:00 +0900 | [diff] [blame] | 83 | // TODO(b/295593640) Unfortunately these are added to the apex even though they are unused. |
| 84 | // Once the build system is fixed, remove this. |
| 85 | unwanted_transitive_deps: [ |
Jooyung Han | 3b980eb | 2023-11-03 14:48:00 +0900 | [diff] [blame] | 86 | "libsso", |
| 87 | "libutils", |
| 88 | ], |
Nikita Ioffe | ad4c719 | 2024-02-02 13:07:00 +0000 | [diff] [blame] | 89 | soong_config_variables: { |
| 90 | release_avf_enable_llpvm_changes: { |
| 91 | systemserverclasspath_fragments: [ |
| 92 | "com.android.virt-systemserver-fragment", |
| 93 | ], |
| 94 | }, |
David Dai | 351b9cf | 2024-02-14 18:42:09 -0800 | [diff] [blame] | 95 | release_avf_enable_virt_cpufreq: { |
| 96 | canned_fs_config: "canned_fs_config_sys_nice", |
| 97 | conditions_default: { |
| 98 | canned_fs_config: "canned_fs_config", |
| 99 | }, |
| 100 | }, |
Jeongik Cha | ca77302 | 2024-04-09 17:09:52 +0900 | [diff] [blame] | 101 | release_avf_support_custom_vm_with_paravirtualized_devices: { |
| 102 | apps: [ |
| 103 | "VmLauncherApp", |
| 104 | ], |
| 105 | }, |
Nikita Ioffe | ad4c719 | 2024-02-02 13:07:00 +0000 | [diff] [blame] | 106 | }, |
Inseob Kim | 77c7f71 | 2023-11-06 17:01:02 +0900 | [diff] [blame] | 107 | } |
| 108 | |
| 109 | avf_flag_aware_apex_defaults { |
Nikita Ioffe | 50e2ebe | 2022-10-24 17:16:25 +0100 | [diff] [blame] | 110 | name: "com.android.virt_avf_enabled", |
| 111 | |
| 112 | defaults: ["com.android.virt_common"], |
| 113 | |
Jooyung Han | 05063d1 | 2021-10-27 01:50:51 +0900 | [diff] [blame] | 114 | custom_sign_tool: "sign_virt_apex", |
Jiyong Park | da119cb | 2020-12-07 15:58:23 +0900 | [diff] [blame] | 115 | |
Andrew Walbran | dfc953d | 2021-06-10 13:59:56 +0000 | [diff] [blame] | 116 | // crosvm and virtualizationservice are only enabled for 64-bit targets on device |
Jiyong Park | 2199f20 | 2020-12-07 15:58:47 +0900 | [diff] [blame] | 117 | arch: { |
| 118 | arm64: { |
| 119 | binaries: [ |
Jiyong Park | 69b3937 | 2021-01-05 23:14:46 +0900 | [diff] [blame] | 120 | "crosvm", |
David Brazdil | 1f53070 | 2022-10-03 12:18:10 +0100 | [diff] [blame] | 121 | "virtmgr", |
Andrew Walbran | dfc953d | 2021-06-10 13:59:56 +0000 | [diff] [blame] | 122 | "virtualizationservice", |
Jiyong Park | 69b3937 | 2021-01-05 23:14:46 +0900 | [diff] [blame] | 123 | ], |
Victor Hsieh | 384bf6a | 2021-11-11 13:28:09 -0800 | [diff] [blame] | 124 | filesystems: microdroid_filesystem_images, |
Alice Wang | be8330c | 2023-10-19 08:55:07 +0000 | [diff] [blame] | 125 | prebuilts: [ |
| 126 | "rialto_bin", |
| 127 | ], |
Jiyong Park | 69b3937 | 2021-01-05 23:14:46 +0900 | [diff] [blame] | 128 | }, |
| 129 | x86_64: { |
| 130 | binaries: [ |
Jiyong Park | 2199f20 | 2020-12-07 15:58:47 +0900 | [diff] [blame] | 131 | "crosvm", |
David Brazdil | 1f53070 | 2022-10-03 12:18:10 +0100 | [diff] [blame] | 132 | "virtmgr", |
Andrew Walbran | dfc953d | 2021-06-10 13:59:56 +0000 | [diff] [blame] | 133 | "virtualizationservice", |
Jiyong Park | 2199f20 | 2020-12-07 15:58:47 +0900 | [diff] [blame] | 134 | ], |
Victor Hsieh | 384bf6a | 2021-11-11 13:28:09 -0800 | [diff] [blame] | 135 | filesystems: microdroid_filesystem_images, |
Jiyong Park | 2199f20 | 2020-12-07 15:58:47 +0900 | [diff] [blame] | 136 | }, |
| 137 | }, |
Jiyong Park | 8d1eb7e | 2021-02-16 13:23:00 +0900 | [diff] [blame] | 138 | binaries: [ |
Victor Hsieh | 573c649 | 2021-03-11 14:19:18 -0800 | [diff] [blame] | 139 | "fd_server", |
Andrew Walbran | ea9fa48 | 2021-03-04 16:11:12 +0000 | [diff] [blame] | 140 | "vm", |
Jiyong Park | 8d1eb7e | 2021-02-16 13:23:00 +0900 | [diff] [blame] | 141 | ], |
Inseob Kim | 72f06a3 | 2021-04-12 14:48:42 +0900 | [diff] [blame] | 142 | prebuilts: [ |
Nikita Ioffe | ab1754c | 2022-10-13 20:28:54 +0100 | [diff] [blame] | 143 | "features_com.android.virt.xml", |
Seungjae Yoo | e85831e | 2022-12-12 09:34:58 +0900 | [diff] [blame] | 144 | "microdroid_initrd_debuggable", |
Shikha Panwar | f46f96b | 2022-08-22 14:11:14 +0000 | [diff] [blame] | 145 | "microdroid_initrd_normal", |
Jiyong Park | e9b74d0 | 2021-06-21 14:39:12 +0900 | [diff] [blame] | 146 | "microdroid.json", |
Shikha Panwar | ed8ace4 | 2022-09-28 12:52:16 +0000 | [diff] [blame] | 147 | "microdroid_kernel", |
Alan Stokes | 1d2d415 | 2024-02-21 10:49:55 +0000 | [diff] [blame] | 148 | "com.android.virt.init.rc", |
Inseob Kim | 72f06a3 | 2021-04-12 14:48:42 +0900 | [diff] [blame] | 149 | ], |
Jiyong Park | 17e3ed4 | 2022-08-29 17:27:00 +0900 | [diff] [blame] | 150 | host_required: [ |
| 151 | "vm_shell", |
| 152 | ], |
Nikita Ioffe | b0b6756 | 2022-11-22 15:48:06 +0000 | [diff] [blame] | 153 | apps: [ |
| 154 | "EmptyPayloadApp", |
| 155 | ], |
Inseob Kim | 77c7f71 | 2023-11-06 17:01:02 +0900 | [diff] [blame] | 156 | soong_config_variables: { |
Nikita Ioffe | 94a8a18 | 2023-11-16 16:37:48 +0000 | [diff] [blame] | 157 | release_avf_enable_device_assignment: { |
| 158 | prebuilts: [ |
| 159 | "com.android.virt.vfio_handler.rc", |
| 160 | ], |
| 161 | arch: { |
| 162 | arm64: { |
| 163 | binaries: ["vfio_handler"], |
| 164 | }, |
| 165 | x86_64: { |
| 166 | binaries: ["vfio_handler"], |
| 167 | }, |
| 168 | }, |
| 169 | }, |
Nikita Ioffe | ad4c719 | 2024-02-02 13:07:00 +0000 | [diff] [blame] | 170 | release_avf_enable_llpvm_changes: { |
| 171 | androidManifest: "AndroidManifest.xml", |
| 172 | }, |
Inseob Kim | 77c7f71 | 2023-11-06 17:01:02 +0900 | [diff] [blame] | 173 | release_avf_enable_vendor_modules: { |
| 174 | prebuilts: [ |
Nikita Ioffe | e7df57a | 2024-04-11 16:00:59 +0000 | [diff] [blame^] | 175 | "microdroid_gki-android14-6.1-pkvm_experimental_initrd_debuggable", |
| 176 | "microdroid_gki-android14-6.1-pkvm_experimental_initrd_normal", |
| 177 | "microdroid_gki-android14-6.1-pkvm_experimental_kernel", |
| 178 | "microdroid_gki-android14-6.1-pkvm_experimental.json", |
Inseob Kim | 77c7f71 | 2023-11-06 17:01:02 +0900 | [diff] [blame] | 179 | ], |
| 180 | }, |
Alice Wang | b5b9032 | 2023-11-14 07:38:18 +0000 | [diff] [blame] | 181 | release_avf_enable_remote_attestation: { |
Alice Wang | b5b9032 | 2023-11-14 07:38:18 +0000 | [diff] [blame] | 182 | vintf_fragments: [ |
| 183 | "virtualizationservice.xml", |
| 184 | ], |
Alice Wang | b5b9032 | 2023-11-14 07:38:18 +0000 | [diff] [blame] | 185 | }, |
Inseob Kim | 77c7f71 | 2023-11-06 17:01:02 +0900 | [diff] [blame] | 186 | }, |
Jiyong Park | da119cb | 2020-12-07 15:58:23 +0900 | [diff] [blame] | 187 | } |
| 188 | |
Nikita Ioffe | 50e2ebe | 2022-10-24 17:16:25 +0100 | [diff] [blame] | 189 | apex_defaults { |
| 190 | name: "com.android.virt_avf_disabled", |
| 191 | |
| 192 | defaults: ["com.android.virt_common"], |
| 193 | } |
| 194 | |
Jiyong Park | da119cb | 2020-12-07 15:58:23 +0900 | [diff] [blame] | 195 | apex_key { |
| 196 | name: "com.android.virt.key", |
| 197 | public_key: "com.android.virt.avbpubkey", |
| 198 | private_key: "com.android.virt.pem", |
| 199 | } |
| 200 | |
| 201 | android_app_certificate { |
| 202 | name: "com.android.virt.certificate", |
| 203 | certificate: "com.android.virt", |
| 204 | } |
Jeff Vander Stoep | 63ab238 | 2021-03-25 22:18:53 +0100 | [diff] [blame] | 205 | |
Alan Stokes | 1d2d415 | 2024-02-21 10:49:55 +0000 | [diff] [blame] | 206 | soong_config_module_type { |
| 207 | name: "avf_flag_aware_genrule", |
| 208 | module_type: "genrule", |
| 209 | config_namespace: "ANDROID", |
| 210 | bool_variables: [ |
| 211 | "release_avf_enable_llpvm_changes", |
| 212 | "release_avf_enable_remote_attestation", |
| 213 | ], |
| 214 | properties: ["srcs"], |
| 215 | } |
| 216 | |
| 217 | avf_flag_aware_genrule { |
| 218 | name: "virtualizationservice_rc_combined", |
| 219 | srcs: ["virtualizationservice.rc.base"], |
| 220 | soong_config_variables: { |
| 221 | release_avf_enable_llpvm_changes: { |
| 222 | srcs: ["virtualizationservice.rc.llpvm"], |
| 223 | }, |
| 224 | release_avf_enable_remote_attestation: { |
| 225 | srcs: ["virtualizationservice.rc.ra"], |
| 226 | }, |
| 227 | }, |
| 228 | out: ["virtualizationservice.rc"], |
| 229 | cmd: "cat $(in) > $(out)", |
Alice Wang | b5b9032 | 2023-11-14 07:38:18 +0000 | [diff] [blame] | 230 | } |
| 231 | |
| 232 | prebuilt_etc { |
Alan Stokes | 1d2d415 | 2024-02-21 10:49:55 +0000 | [diff] [blame] | 233 | name: "com.android.virt.init.rc", |
| 234 | src: ":virtualizationservice_rc_combined", |
Alice Wang | b5b9032 | 2023-11-14 07:38:18 +0000 | [diff] [blame] | 235 | filename: "virtualizationservice.rc", |
Alan Stokes | 3ef78d9 | 2021-09-08 11:51:06 +0100 | [diff] [blame] | 236 | installable: false, |
Jeff Vander Stoep | 63ab238 | 2021-03-25 22:18:53 +0100 | [diff] [blame] | 237 | } |
Jooyung Han | 504105f | 2021-10-26 15:54:50 +0900 | [diff] [blame] | 238 | |
Nikita Ioffe | 94a8a18 | 2023-11-16 16:37:48 +0000 | [diff] [blame] | 239 | prebuilt_etc { |
| 240 | name: "com.android.virt.vfio_handler.rc", |
| 241 | src: "vfio_handler.rc", |
| 242 | filename: "vfio_handler.rc", |
| 243 | installable: false, |
| 244 | } |
| 245 | |
Jooyung Han | 504105f | 2021-10-26 15:54:50 +0900 | [diff] [blame] | 246 | // Virt apex needs a custom signer for its payload |
| 247 | python_binary_host { |
| 248 | name: "sign_virt_apex", |
| 249 | srcs: [ |
| 250 | "sign_virt_apex.py", |
| 251 | ], |
| 252 | version: { |
Jooyung Han | 504105f | 2021-10-26 15:54:50 +0900 | [diff] [blame] | 253 | py3: { |
Jooyung Han | 504105f | 2021-10-26 15:54:50 +0900 | [diff] [blame] | 254 | embedded_launcher: true, |
| 255 | }, |
| 256 | }, |
Jooyung Han | 05063d1 | 2021-10-27 01:50:51 +0900 | [diff] [blame] | 257 | required: [ |
Shikha Panwar | a7605cf | 2023-01-12 09:29:39 +0000 | [diff] [blame] | 258 | // sign_virt_apex should be runnable from outside the source tree, |
| 259 | // therefore, any required tool should be listed in build/make/core/Makefile as well. |
Jooyung Han | 05063d1 | 2021-10-27 01:50:51 +0900 | [diff] [blame] | 260 | "img2simg", |
Shikha Panwar | a7605cf | 2023-01-12 09:29:39 +0000 | [diff] [blame] | 261 | "initrd_bootconfig", |
Jooyung Han | 05063d1 | 2021-10-27 01:50:51 +0900 | [diff] [blame] | 262 | "lpmake", |
| 263 | "lpunpack", |
Inseob Kim | 2e2f48a | 2024-02-21 22:56:08 +0900 | [diff] [blame] | 264 | "lz4", |
Jooyung Han | 05063d1 | 2021-10-27 01:50:51 +0900 | [diff] [blame] | 265 | "simg2img", |
| 266 | ], |
Jooyung Han | 504105f | 2021-10-26 15:54:50 +0900 | [diff] [blame] | 267 | } |
Jooyung Han | d35952e | 2021-11-08 17:53:47 +0900 | [diff] [blame] | 268 | |
Jooyung Han | 02dceed | 2021-11-08 17:50:22 +0900 | [diff] [blame] | 269 | sh_test_host { |
| 270 | name: "sign_virt_apex_test", |
| 271 | src: "sign_virt_apex_test.sh", |
| 272 | test_config: "sign_virt_apex_test.xml", |
| 273 | data_bins: [ |
| 274 | // deapexer |
| 275 | "deapexer", |
| 276 | "debugfs_static", |
Dennis Shen | 28c7944 | 2022-11-08 14:26:13 +0000 | [diff] [blame] | 277 | "fsck.erofs", |
Jooyung Han | 02dceed | 2021-11-08 17:50:22 +0900 | [diff] [blame] | 278 | |
| 279 | // sign_virt_apex |
| 280 | "avbtool", |
| 281 | "img2simg", |
Shikha Panwar | a7605cf | 2023-01-12 09:29:39 +0000 | [diff] [blame] | 282 | "initrd_bootconfig", |
Jooyung Han | 02dceed | 2021-11-08 17:50:22 +0900 | [diff] [blame] | 283 | "lpmake", |
| 284 | "lpunpack", |
Inseob Kim | 2e2f48a | 2024-02-21 22:56:08 +0900 | [diff] [blame] | 285 | "lz4", |
Jooyung Han | 02dceed | 2021-11-08 17:50:22 +0900 | [diff] [blame] | 286 | "sign_virt_apex", |
| 287 | "simg2img", |
| 288 | ], |
| 289 | data_libs: [ |
| 290 | "libbase", |
| 291 | "libc++", |
| 292 | "libcrypto_utils", |
| 293 | "libcrypto", |
| 294 | "libext4_utils", |
| 295 | "liblog", |
| 296 | "liblp", |
| 297 | "libsparse", |
| 298 | "libz", |
| 299 | ], |
| 300 | data: [ |
| 301 | ":com.android.virt", |
Jooyung Han | 6afd667 | 2022-02-22 05:22:23 +0900 | [diff] [blame] | 302 | ":test.com.android.virt.pem", |
Jooyung Han | 02dceed | 2021-11-08 17:50:22 +0900 | [diff] [blame] | 303 | ], |
| 304 | test_suites: ["general-tests"], |
| 305 | } |
| 306 | |
Jooyung Han | 6afd667 | 2022-02-22 05:22:23 +0900 | [diff] [blame] | 307 | filegroup { |
| 308 | name: "test.com.android.virt.pem", |
| 309 | srcs: ["test.com.android.virt.pem"], |
| 310 | } |
| 311 | |
Jooyung Han | 1c3d2fa | 2022-02-24 02:35:59 +0900 | [diff] [blame] | 312 | filegroup { |
| 313 | name: "test2.com.android.virt.pem", |
| 314 | srcs: ["test2.com.android.virt.pem"], |
| 315 | } |
| 316 | |
Jooyung Han | d35952e | 2021-11-08 17:53:47 +0900 | [diff] [blame] | 317 | // custom tool to replace bytes in a file |
| 318 | python_binary_host { |
| 319 | name: "replace_bytes", |
| 320 | srcs: [ |
| 321 | "replace_bytes.py", |
| 322 | ], |
| 323 | version: { |
Jooyung Han | d35952e | 2021-11-08 17:53:47 +0900 | [diff] [blame] | 324 | py3: { |
Jooyung Han | d35952e | 2021-11-08 17:53:47 +0900 | [diff] [blame] | 325 | embedded_launcher: true, |
| 326 | }, |
| 327 | }, |
| 328 | } |
Nikita Ioffe | f28eec2 | 2022-10-18 23:17:34 +0100 | [diff] [blame] | 329 | |
| 330 | // Encapsulate the contributions made by the com.android.virt to the bootclasspath. |
| 331 | bootclasspath_fragment { |
| 332 | name: "com.android.virt-bootclasspath-fragment", |
| 333 | contents: ["framework-virtualization"], |
| 334 | apex_available: ["com.android.virt"], |
| 335 | |
| 336 | // The bootclasspath_fragments that provide APIs on which this depends. |
| 337 | fragments: [ |
| 338 | { |
| 339 | apex: "com.android.art", |
| 340 | module: "art-bootclasspath-fragment", |
| 341 | }, |
| 342 | ], |
| 343 | |
| 344 | // Additional stubs libraries that this fragment's contents use which are |
| 345 | // not provided by another bootclasspath_fragment. |
| 346 | additional_stubs: [ |
| 347 | "android-non-updatable", |
| 348 | ], |
| 349 | |
| 350 | hidden_api: { |
| 351 | |
| 352 | // This module does not contain any split packages. |
| 353 | split_packages: [], |
| 354 | |
| 355 | // The following packages and all their subpackages currently only |
| 356 | // contain classes from this bootclasspath_fragment. Listing a package |
| 357 | // here won't prevent other bootclasspath modules from adding classes in |
| 358 | // any of those packages but it will prevent them from adding those |
| 359 | // classes into an API surface, e.g. public, system, etc.. Doing so will |
| 360 | // result in a build failure due to inconsistent flags. |
| 361 | package_prefixes: [ |
| 362 | "android.system.virtualmachine", |
| 363 | "android.system.virtualizationservice", |
| 364 | // android.sysprop.*, renamed by jarjar |
| 365 | "com.android.system.virtualmachine.sysprop", |
| 366 | ], |
| 367 | }, |
| 368 | } |
Nikita Ioffe | ad4c719 | 2024-02-02 13:07:00 +0000 | [diff] [blame] | 369 | |
| 370 | soong_config_module_type { |
| 371 | name: "avf_flag_aware_systemserverclasspath_fragment", |
| 372 | module_type: "systemserverclasspath_fragment", |
| 373 | config_namespace: "ANDROID", |
| 374 | bool_variables: [ |
| 375 | "release_avf_enable_llpvm_changes", |
| 376 | ], |
| 377 | properties: [ |
| 378 | "enabled", |
| 379 | ], |
| 380 | } |
| 381 | |
| 382 | avf_flag_aware_systemserverclasspath_fragment { |
| 383 | name: "com.android.virt-systemserver-fragment", |
| 384 | contents: [ |
| 385 | "service-virtualization", |
| 386 | ], |
| 387 | apex_available: ["com.android.virt"], |
| 388 | enabled: false, |
| 389 | soong_config_variables: { |
| 390 | release_avf_enable_llpvm_changes: { |
| 391 | enabled: true, |
| 392 | }, |
| 393 | }, |
| 394 | } |