Andrew Walbran | 68a8c16 | 2022-03-07 15:38:42 +0000 | [diff] [blame] | 1 | rust_ffi_static { |
| 2 | name: "libpvmfw", |
| 3 | crate_name: "pvmfw", |
| 4 | srcs: ["src/main.rs"], |
| 5 | edition: "2021", |
| 6 | no_stdlibs: true, |
| 7 | stdlibs: [ |
| 8 | "libcompiler_builtins.rust_sysroot", |
| 9 | "libcore.rust_sysroot", |
| 10 | ], |
| 11 | enabled: false, |
| 12 | target: { |
| 13 | android_arm64: { |
| 14 | enabled: true, |
| 15 | }, |
| 16 | }, |
| 17 | apex_available: ["com.android.virt"], |
| 18 | } |
Andrew Walbran | 15068b0 | 2022-03-22 15:57:34 +0000 | [diff] [blame^] | 19 | |
| 20 | cc_binary { |
| 21 | name: "pvmfw", |
| 22 | srcs: [ |
| 23 | "entry.S", |
| 24 | ], |
| 25 | static_libs: [ |
| 26 | "libpvmfw", |
| 27 | ], |
| 28 | static_executable: true, |
| 29 | no_libcrt: true, |
| 30 | nocrt: true, |
| 31 | system_shared_libs: [], |
| 32 | ldflags: [ |
| 33 | "-Tpackages/modules/Virtualization/pvmfw/image.ld", |
| 34 | ], |
| 35 | enabled: false, |
| 36 | target: { |
| 37 | android_arm64: { |
| 38 | enabled: true, |
| 39 | }, |
| 40 | }, |
| 41 | apex_available: ["com.android.virt"], |
| 42 | } |