chore: output liteos binaries to target_out_dir

liteos binaries no need pack to rootfs.

Signed-off-by: Caoruihong <crh.cao@huawei.com>
Change-Id: Iba650c9d09302902c108760163eca55b4ec40221
This commit is contained in:
Caoruihong
2021-07-22 18:52:24 +08:00
parent 77270dd783
commit 3b5268f02a
5 changed files with 45 additions and 16 deletions

View File

@@ -48,6 +48,6 @@ config("public") {
copy("copy_ohos_vdso") {
deps = [ "usr:OHOS-vdso" ]
sources = [ "$root_out_dir/libOHOS-vdso.so" ]
sources = [ get_path_info("usr/", "out_dir") + "/libOHOS-vdso.so" ]
outputs = [ "$root_out_dir/OHOS-vdso.so" ]
}

View File

@@ -40,15 +40,23 @@ shared_library("OHOS-vdso") {
]
cflags = [
"-nostdlib",
"-fPIC",
"-fno-common",
"-fno-strict-aliasing",
]
configs = []
configs += [ "$LITEOSTOPDIR:los_common" ]
configs += [ "$LITEOSTOPDIR:los_nostdlib" ]
configs += [ "$LITEOSTOPDIR:arch_config" ]
defines = [ "_XOPEN_SOURCE=700" ]
ldflags = [
"-s",
"-Bsymbolic",
"-Tlos_vdso.ld",
"-Wl,-s",
"-Wl,-Bsymbolic",
"-Wl,-T" + rebase_path("los_vdso.ld", root_build_dir),
]
output_dir = target_out_dir
}