blob: ce096b661e1c0bd806767a3254c46c5664b223ec [file] [log] [blame]
Andrew Walbran68a8c162022-03-07 15:38:42 +00001rust_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 ],
Andrew Walbranf2594882022-03-15 17:32:53 +000011 rustlibs: [
12 "libspin_nostd",
13 ],
Andrew Walbran68a8c162022-03-07 15:38:42 +000014 enabled: false,
15 target: {
16 android_arm64: {
17 enabled: true,
18 },
19 },
20 apex_available: ["com.android.virt"],
21}
Andrew Walbran15068b02022-03-22 15:57:34 +000022
23cc_binary {
24 name: "pvmfw",
25 srcs: [
26 "entry.S",
Andrew Walbran267f6c12022-03-24 11:26:36 +000027 "idmap.S",
Andrew Walbran15068b02022-03-22 15:57:34 +000028 ],
29 static_libs: [
30 "libpvmfw",
31 ],
32 static_executable: true,
33 no_libcrt: true,
34 nocrt: true,
35 system_shared_libs: [],
36 ldflags: [
37 "-Tpackages/modules/Virtualization/pvmfw/image.ld",
38 ],
39 enabled: false,
40 target: {
41 android_arm64: {
42 enabled: true,
43 },
44 },
45 apex_available: ["com.android.virt"],
46}