blob: 130973a22f2d6a5c37d9aff59aa44bd14bece4d6 [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 {
David Brazdil05d4e072022-04-25 14:47:06 +010028 name: "pvmfw_elf",
29 stem: "pvmfw",
Andrew Walbran15068b02022-03-22 15:57:34 +000030 srcs: [
31 "entry.S",
Andrew Walbrandfb73372022-04-21 10:52:27 +000032 "exceptions.S",
Andrew Walbran267f6c12022-03-24 11:26:36 +000033 "idmap.S",
Andrew Walbran15068b02022-03-22 15:57:34 +000034 ],
35 static_libs: [
36 "libpvmfw",
37 ],
38 static_executable: true,
Andrew Walbran15068b02022-03-22 15:57:34 +000039 nocrt: true,
Andrew Walbrane1823862022-04-20 16:28:49 +000040 system_shared_libs: ["libc"],
41 stl: "none",
David Brazdil5ece6f72022-04-22 16:15:54 +010042 linker_scripts: ["image.ld"],
Andrew Walbran15068b02022-03-22 15:57:34 +000043 enabled: false,
44 target: {
45 android_arm64: {
46 enabled: true,
47 },
48 },
49 apex_available: ["com.android.virt"],
50}
David Brazdil05d4e072022-04-25 14:47:06 +010051
52raw_binary {
53 name: "pvmfw",
54 src: ":pvmfw_elf",
55 stem: "pvmfw.bin",
56 enabled: false,
57 target: {
58 android_arm64: {
59 enabled: true,
60 },
61 },
62}