Merge "Add public.libraries.txt and linker.config.pb"

This commit is contained in:
Jooyung Han 2021-04-15 08:49:25 +00:00 committed by Gerrit Code Review
commit 18425beb51
2 changed files with 44 additions and 0 deletions

View File

@ -57,6 +57,8 @@ android_filesystem {
"servicemanager", "servicemanager",
"tombstoned", "tombstoned",
"cgroups.json", "cgroups.json",
"public.libraries.android.txt",
"microdroid_linker_config",
"plat_sepolicy_and_mapping.sha256", "plat_sepolicy_and_mapping.sha256",
] + microdroid_shell_and_utilities, ] + microdroid_shell_and_utilities,
@ -377,3 +379,28 @@ prebuilt_etc {
name: "microdroid_cdisk_env.json", name: "microdroid_cdisk_env.json",
src: "microdroid_cdisk_env.json", src: "microdroid_cdisk_env.json",
} }
// TODO(b/185391776) generate at build time
linker_config {
name: "microdroid_system_provide",
src: "linker.config.json",
installable: false,
}
genrule {
name: "microdroid_linker_config_gen",
tools: ["conv_linker_config"],
srcs: [
":system_linker_config",
":microdroid_system_provide",
],
out: ["linker.config.pb"],
cmd: "$(location conv_linker_config) merge -o $(out) -i $(location :system_linker_config) -i $(location :microdroid_system_provide)",
}
prebuilt_etc {
name: "microdroid_linker_config",
src: ":microdroid_linker_config_gen",
filename: "linker.config.pb",
installable: false,
}

View File

@ -0,0 +1,17 @@
{
// TODO(b/185391776): Automate the list for microdroid
"provideLibs": [
"libadbd_auth.so",
"libadbd_fs.so",
"libc.so",
"libcgrouprc.so",
"libdl.so",
"libdl_android.so",
"liblog.so",
"libm.so",
"libselinux.so",
"libstdc++.so",
"libvndksupport.so",
"libz.so"
]
}