Bob Badour | 47dac8e | 2022-05-05 07:11:36 -0700 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 3 | } |
| 4 | |
Andrew Walbran | dd74b90 | 2022-04-14 16:12:50 +0000 | [diff] [blame] | 5 | rust_library_rlib { |
| 6 | name: "libvmbase", |
| 7 | host_supported: false, |
| 8 | crate_name: "vmbase", |
| 9 | srcs: ["src/lib.rs"], |
| 10 | edition: "2021", |
| 11 | rustlibs: [ |
David Brazdil | 8b55777 | 2022-07-05 12:22:20 +0100 | [diff] [blame] | 12 | "liblog_rust_nostd", |
Andrew Walbran | dd74b90 | 2022-04-14 16:12:50 +0000 | [diff] [blame] | 13 | "libpsci", |
| 14 | "libspin_nostd", |
| 15 | ], |
| 16 | enabled: false, |
| 17 | target: { |
| 18 | android_arm64: { |
| 19 | enabled: true, |
| 20 | }, |
| 21 | }, |
| 22 | apex_available: ["com.android.virt"], |
| 23 | } |
Andrew Walbran | f71e6ee | 2022-04-22 14:04:27 +0000 | [diff] [blame] | 24 | |
| 25 | cc_library_static { |
| 26 | name: "libvmbase_entry", |
| 27 | srcs: [ |
| 28 | "entry.S", |
| 29 | "exceptions.S", |
| 30 | ], |
| 31 | nocrt: true, |
| 32 | no_libcrt: true, |
| 33 | system_shared_libs: [], |
| 34 | stl: "none", |
| 35 | enabled: false, |
| 36 | target: { |
| 37 | android_arm64: { |
| 38 | enabled: true, |
| 39 | }, |
| 40 | }, |
| 41 | apex_available: ["com.android.virt"], |
| 42 | } |
Andrew Walbran | a5b7af5 | 2022-07-06 15:06:20 +0000 | [diff] [blame] | 43 | |
| 44 | filegroup { |
| 45 | name: "vmbase_sections", |
| 46 | srcs: ["sections.ld"], |
| 47 | } |