blob: 51995adad7b8d92385c5a1cc9fa703ec4c319237 [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",
Andrew Walbrana5b7af52022-07-06 15:06:20 +000041 linker_scripts: [
42 "image.ld",
43 ":vmbase_sections",
44 ],
Andrew Walbrandabcfd42022-04-25 15:25:02 +000045 installable: false,
Andrew Walbran15068b02022-03-22 15:57:34 +000046 enabled: false,
47 target: {
48 android_arm64: {
49 enabled: true,
50 },
51 },
52 apex_available: ["com.android.virt"],
53}
David Brazdil05d4e072022-04-25 14:47:06 +010054
55raw_binary {
56 name: "pvmfw",
57 src: ":pvmfw_elf",
David Brazdil05d4e072022-04-25 14:47:06 +010058 enabled: false,
59 target: {
60 android_arm64: {
61 enabled: true,
62 },
63 },
64}