提交 513c35e4 编写于 作者: O openharmony_ci 提交者: Gitee

!122 musl实现增量编译

Merge pull request !122 from 陈健文/master
......@@ -97,6 +97,23 @@ action("create_porting_src") {
args = [ "-i" ] + rebase_path(sources)
args += [ "-o" ] + rebase_path(outdir)
args += [ "-p" ] + [ "${musl_target_os}" ]
foreach(i, src_files) {
foreach(s, musl_src_porting_file) {
if (i == s) {
src_files -= [ "${s}" ]
}
}
}
inputs = []
foreach(s, src_files) {
inputs += [ "${musl_dir}/${s}" ]
}
foreach(s, musl_src_porting_file) {
inputs += [ "${musl_porting_dir}/${s}" ]
}
}
action("create_alltypes_h") {
......
......@@ -33,6 +33,8 @@ declare_args() {
musl_ported_dir = "intermidiates/${musl_target_os}/musl_src_ported"
musl_inc_out_dir = "usr/include/${musl_target_triple}"
uapi_dir = "//kernel/linux/patches/linux-5.10/prebuilts/usr/include"
musl_dir = "//third_party/musl"
musl_porting_dir = "//third_party/musl/porting/linux/user"
# if (is_asan) {
# musl_linker_asan_name =
......
......@@ -1820,3 +1820,22 @@ musl_inc_root_files = [
"include/wctype.h",
"include/wordexp.h",
]
musl_src_porting_file = [
"arch/arm/bits/fenv.h",
"arch/generic/bits/shm.h",
"include/ctype.h",
"include/pthread.h",
"include/sys/capability.h",
"include/sys/socket.h",
"include/sys/sysinfo.h",
"include/unistd.h",
"src/internal/pthread_impl.h",
"src/internal/syscall.h",
"src/legacy/ulimit.c",
"src/linux/gettid.c",
"src/malloc/malloc.c",
"src/multibyte/wcsnrtombs.c",
"src/network/inet_legacy.c",
"src/passwd/getspnam_r.c",
]
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册