提交 37c22f0b 编写于 作者: W weichaox

update musl build target

Signed-off-by: Nweichaox <wangweichao2@huawei.com>
Change-Id: Ie4d0365dda47a9f187d9e5022bec642445a4fd56
上级 6cef725e
import("musl_template.gni")
musl_abi_target = "soft"
group("musl_all") {
deps = [
":musl_headers",
":soft_libs",
":a7_hard_neon_libs",
":a7_soft_libs",
":a7_softfp_neon_libs",
":a7_hard_neon_libs",
":musl_headers",
":soft_libs",
]
}
group("musl_libs") {
deps = [
":${musl_abi_target}_libs",
":musl_headers",
]
}
musl_libs("soft") {
musl_libs("soft_libs") {
target_abi = "soft"
}
musl_libs("a7_soft") {
musl_libs("a7_soft_libs") {
target_abi = "a7_soft"
}
musl_libs("a7_softfp_neon") {
musl_libs("a7_softfp_neon_libs") {
target_abi = "a7_softfp_neon-vfpv4"
}
musl_libs("a7_hard_neon") {
musl_libs("a7_hard_neon_libs") {
target_abi = "a7_hard_neon-vfpv4"
}
group("musl_headers") {
deps = [
":copy_uapi",
":create_alltypes_h",
":create_syscall_h",
":create_version_h",
......@@ -39,16 +49,13 @@ group("musl_headers") {
":musl_copy_inc_root",
":musl_copy_inc_scsi",
":musl_copy_inc_sys",
":copy_uapi",
]
}
action("create_porting_src") {
script = "scripts/porting.sh"
sources = [
"//third_party/musl",
]
sources = [ "//third_party/musl" ]
outdir = [ "${target_out_dir}/${musl_ported_dir}" ]
......@@ -86,9 +93,9 @@ action("create_porting_src") {
foreach(s, src_files) {
outputs += [ "${target_out_dir}/${musl_ported_dir}/${s}" ]
}
args = [ "-i" ] + rebase_path(sources)
args += [ "-o" ] + rebase_path(outdir)
args += [ "-o" ] + rebase_path(outdir)
args += [ "-p" ] + [ "${musl_target_os}" ]
}
......@@ -97,8 +104,8 @@ action("create_alltypes_h") {
outputs = [ "${target_out_dir}/${musl_inc_out_dir}/bits/alltypes.h" ]
sources = [
"${target_out_dir}/${musl_ported_dir}/tools/mkalltypes.sed",
sources = [ "${target_out_dir}/${musl_ported_dir}/tools/mkalltypes.sed" ]
sources += [
"${target_out_dir}/${musl_ported_dir}/arch/${musl_arch}/bits/alltypes.h.in",
"${target_out_dir}/${musl_ported_dir}/include/alltypes.h.in",
]
......@@ -131,7 +138,9 @@ action("create_syscall_h") {
outputs = [ "${target_out_dir}/${musl_inc_out_dir}/bits/syscall.h" ]
sources = [ "${target_out_dir}/${musl_ported_dir}/arch/${musl_arch}/bits/syscall.h.in" ]
sources = [
"${target_out_dir}/${musl_ported_dir}/arch/${musl_arch}/bits/syscall.h.in",
]
args = rebase_path(sources, root_build_dir)
args += rebase_path(outputs, root_build_dir)
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册