blob: c90f2628df8913a0991b5825da271b8cfcefdf04 [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: [
Andrew Walbran267f6c12022-03-24 11:26:36 +000031 "idmap.S",
Andrew Walbran15068b02022-03-22 15:57:34 +000032 ],
33 static_libs: [
34 "libpvmfw",
Andrew Walbranf71e6ee2022-04-22 14:04:27 +000035 "libvmbase_entry",
Andrew Walbran15068b02022-03-22 15:57:34 +000036 ],
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 Walbrandabcfd42022-04-25 15:25:02 +000042 installable: false,
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}