blob: 3f6cca4ddd80c36570b9cbce6ea7be4f86b37791 [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: [
16 "libspin_nostd",
17 ],
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,
38 no_libcrt: true,
39 nocrt: true,
40 system_shared_libs: [],
41 ldflags: [
42 "-Tpackages/modules/Virtualization/pvmfw/image.ld",
43 ],
44 enabled: false,
45 target: {
46 android_arm64: {
47 enabled: true,
48 },
49 },
50 apex_available: ["com.android.virt"],
51}