blob: 7123da4c013d1f48bd265ab8e1d3475fa2719730 [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 ],
11 enabled: false,
12 target: {
13 android_arm64: {
14 enabled: true,
15 },
16 },
17 apex_available: ["com.android.virt"],
18}
Andrew Walbran15068b02022-03-22 15:57:34 +000019
20cc_binary {
21 name: "pvmfw",
22 srcs: [
23 "entry.S",
Andrew Walbran267f6c12022-03-24 11:26:36 +000024 "idmap.S",
Andrew Walbran15068b02022-03-22 15:57:34 +000025 ],
26 static_libs: [
27 "libpvmfw",
28 ],
29 static_executable: true,
30 no_libcrt: true,
31 nocrt: true,
32 system_shared_libs: [],
33 ldflags: [
34 "-Tpackages/modules/Virtualization/pvmfw/image.ld",
35 ],
36 enabled: false,
37 target: {
38 android_arm64: {
39 enabled: true,
40 },
41 },
42 apex_available: ["com.android.virt"],
43}