blob: 3b5df7fd9bdfee53fbfcc9bc6f0f8635d9f00242 [file] [log] [blame]
Bob Badoure8af2842022-04-07 10:44:22 -07001package {
2 default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
Andrew Walbran68a8c162022-03-07 15:38:42 +00005rust_ffi_static {
6 name: "libpvmfw",
7 crate_name: "pvmfw",
8 srcs: ["src/main.rs"],
9 edition: "2021",
10 no_stdlibs: true,
11 stdlibs: [
12 "libcompiler_builtins.rust_sysroot",
13 "libcore.rust_sysroot",
14 ],
Andrew Walbranf2594882022-03-15 17:32:53 +000015 rustlibs: [
Andrew Walbrandd74b902022-04-14 16:12:50 +000016 "libvmbase",
Andrew Walbranf2594882022-03-15 17:32:53 +000017 ],
Andrew Walbran68a8c162022-03-07 15:38:42 +000018 enabled: false,
19 target: {
20 android_arm64: {
21 enabled: true,
22 },
23 },
24 apex_available: ["com.android.virt"],
25}
Andrew Walbran15068b02022-03-22 15:57:34 +000026
27cc_binary {
28 name: "pvmfw",
29 srcs: [
30 "entry.S",
Andrew Walbrandfb73372022-04-21 10:52:27 +000031 "exceptions.S",
Andrew Walbran267f6c12022-03-24 11:26:36 +000032 "idmap.S",
Andrew Walbran15068b02022-03-22 15:57:34 +000033 ],
34 static_libs: [
35 "libpvmfw",
36 ],
37 static_executable: true,
Andrew Walbran15068b02022-03-22 15:57:34 +000038 nocrt: true,
Andrew Walbrane1823862022-04-20 16:28:49 +000039 system_shared_libs: ["libc"],
40 stl: "none",
David Brazdil5ece6f72022-04-22 16:15:54 +010041 linker_scripts: ["image.ld"],
Andrew Walbran15068b02022-03-22 15:57:34 +000042 enabled: false,
43 target: {
44 android_arm64: {
45 enabled: true,
46 },
47 },
48 apex_available: ["com.android.virt"],
49}