提交 55d398e6 编写于 作者: O openharmony_ci 提交者: Gitee

!65 跟随musl构建生成upai

Merge pull request !65 from zhuoli72/master
...@@ -39,6 +39,7 @@ group("musl_headers") { ...@@ -39,6 +39,7 @@ group("musl_headers") {
":musl_copy_inc_root", ":musl_copy_inc_root",
":musl_copy_inc_scsi", ":musl_copy_inc_scsi",
":musl_copy_inc_sys", ":musl_copy_inc_sys",
":copy_uapi",
] ]
} }
...@@ -138,6 +139,13 @@ action("create_syscall_h") { ...@@ -138,6 +139,13 @@ action("create_syscall_h") {
deps = [ ":create_porting_src" ] deps = [ ":create_porting_src" ]
} }
action("copy_uapi") {
outputs = [ "${target_out_dir}/${musl_inc_out_dir}/linux" ]
script = "scripts/copy_uapi.sh"
args = [ "-i" ] + [ rebase_path("${uapi_dir}") ]
args += [ "-o" ] + [ rebase_path("${target_out_dir}/${musl_inc_out_dir}") ]
}
copy("musl_copy_inc_bits") { copy("musl_copy_inc_bits") {
sources = [] sources = []
sources_orig = musl_inc_bits_files sources_orig = musl_inc_bits_files
......
...@@ -31,6 +31,7 @@ declare_args() { ...@@ -31,6 +31,7 @@ declare_args() {
user_custom_libc = true user_custom_libc = true
musl_ported_dir = "intermidiates/${musl_target_os}/musl_src_ported" musl_ported_dir = "intermidiates/${musl_target_os}/musl_src_ported"
musl_inc_out_dir = "usr/include/${musl_target_triple}" musl_inc_out_dir = "usr/include/${musl_target_triple}"
uapi_dir = "//kernel/linux/patches/linux-4.19/prebuilts/usr/include"
# if (is_asan) { # if (is_asan) {
# musl_linker_asan_name = # musl_linker_asan_name =
......
while getopts "o:i:h" arg
do
case "${arg}" in
"o")
OUT_DIR=${OPTARG}
;;
"i")
SOURCE_DIR=${OPTARG}
;;
"h")
echo "help"
;;
?)
echo "unkonw argument"
exit 1
;;
esac
done
if [ ! -d "${OUT_DIR}" ];then
mkdir -p ${OUT_DIR}
fi
cp -r ${SOURCE_DIR}/* ${OUT_DIR}
rm -rf ${OUT_DIR}/asm-arm
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册