2022-05-05 14:11:36 +00:00
|
|
|
package {
|
|
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
|
|
}
|
|
|
|
|
2022-07-07 14:30:14 +00:00
|
|
|
rust_defaults {
|
|
|
|
name: "vmbase_rust_defaults",
|
2022-08-31 12:41:28 +00:00
|
|
|
edition: "2021",
|
2022-07-07 14:30:14 +00:00
|
|
|
host_supported: false,
|
|
|
|
enabled: false,
|
|
|
|
target: {
|
|
|
|
android_arm64: {
|
|
|
|
enabled: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
rust_defaults {
|
|
|
|
name: "vmbase_ffi_defaults",
|
|
|
|
defaults: ["vmbase_rust_defaults"],
|
|
|
|
no_stdlibs: true,
|
|
|
|
stdlibs: [
|
|
|
|
"libcompiler_builtins.rust_sysroot",
|
|
|
|
"libcore.rust_sysroot",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
cc_defaults {
|
|
|
|
name: "vmbase_cc_defaults",
|
|
|
|
nocrt: true,
|
|
|
|
system_shared_libs: [],
|
|
|
|
stl: "none",
|
|
|
|
installable: false,
|
|
|
|
enabled: false,
|
|
|
|
target: {
|
|
|
|
android_arm64: {
|
|
|
|
enabled: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
sanitize: {
|
|
|
|
hwaddress: false,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
cc_defaults {
|
|
|
|
name: "vmbase_elf_defaults",
|
|
|
|
defaults: ["vmbase_cc_defaults"],
|
|
|
|
static_executable: true,
|
|
|
|
static_libs: [
|
|
|
|
"libvmbase_entry",
|
|
|
|
],
|
2022-09-09 11:02:02 +00:00
|
|
|
installable: false,
|
2022-09-09 09:51:18 +00:00
|
|
|
enabled: false,
|
|
|
|
target: {
|
|
|
|
android_arm64: {
|
|
|
|
enabled: true,
|
|
|
|
},
|
|
|
|
},
|
2022-07-07 14:30:14 +00:00
|
|
|
}
|
|
|
|
|
2022-04-14 16:12:50 +00:00
|
|
|
rust_library_rlib {
|
|
|
|
name: "libvmbase",
|
2022-07-07 14:30:14 +00:00
|
|
|
defaults: ["vmbase_rust_defaults"],
|
2022-04-14 16:12:50 +00:00
|
|
|
crate_name: "vmbase",
|
|
|
|
srcs: ["src/lib.rs"],
|
|
|
|
rustlibs: [
|
2022-07-05 11:22:20 +00:00
|
|
|
"liblog_rust_nostd",
|
2022-04-14 16:12:50 +00:00
|
|
|
"libpsci",
|
|
|
|
"libspin_nostd",
|
|
|
|
],
|
2022-12-09 17:57:37 +00:00
|
|
|
whole_static_libs: [
|
2022-12-09 19:13:29 +00:00
|
|
|
"librust_baremetal",
|
2022-12-09 17:57:37 +00:00
|
|
|
],
|
2022-04-14 16:12:50 +00:00
|
|
|
apex_available: ["com.android.virt"],
|
|
|
|
}
|
2022-04-22 14:04:27 +00:00
|
|
|
|
|
|
|
cc_library_static {
|
|
|
|
name: "libvmbase_entry",
|
2022-07-07 14:30:14 +00:00
|
|
|
defaults: ["vmbase_cc_defaults"],
|
2022-04-22 14:04:27 +00:00
|
|
|
srcs: [
|
|
|
|
"entry.S",
|
|
|
|
"exceptions.S",
|
2022-06-30 15:11:33 +00:00
|
|
|
"exceptions_panic.S",
|
2022-04-22 14:04:27 +00:00
|
|
|
],
|
|
|
|
no_libcrt: true,
|
|
|
|
apex_available: ["com.android.virt"],
|
|
|
|
}
|
2022-07-06 15:06:20 +00:00
|
|
|
|
|
|
|
filegroup {
|
|
|
|
name: "vmbase_sections",
|
|
|
|
srcs: ["sections.ld"],
|
|
|
|
}
|