Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
77f9dc03
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
大约 1 年 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
77f9dc03
编写于
10月 11, 2022
作者:
J
jiyong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
适配musl
Signed-off-by:
N
jiyong
<
jiyong@huawei.com
>
上级
b4c35eec
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
10 addition
and
9 deletion
+10
-9
build.sh
build.sh
+10
-9
未找到文件。
build.sh
浏览文件 @
77f9dc03
...
...
@@ -20,13 +20,12 @@ usage()
echo
echo
"USAGE"
echo
" ./build.sh [suite=BUILD_TARGET] [target_os=TARGET_OS] [target_arch=TARGET_ARCH] [variant=BUILD_VARIANT] [target_subsystem=TARGET_SUBSYSTEM]"
echo
" target_platform : TARGET_PLATFORM the target platform, such as phone or ivi; Default to phone"
echo
" suite : BUILD_TARGET cts/hit/vts and so on, default value is hit"
echo
" target_arch : TARGET_ARCH arm64 or arm32, default value is arm64"
echo
" suite : BUILD_TARGET acts, hats, dcts"
echo
" target_arch : TARGET_ARCH arm64 or arm, default value is arm"
echo
" variant : BUILD_VARIANT release or debug, default value is debug"
echo
" target_subsystem : TARGET_SUBSYSTEM the target subsystem to build"
echo
" system_size : SYSTEM_SIZE standard
, large and son on, large is for L3-L5, standard is for L2 default value is large
"
echo
" product_name : PRODUCT_NAME the name of product. such as
hikey960,
Hi3516DV300, and so on."
echo
" system_size : SYSTEM_SIZE standard"
echo
" product_name : PRODUCT_NAME the name of product. such as Hi3516DV300, and so on."
echo
exit
1
}
...
...
@@ -41,13 +40,13 @@ parse_cmdline()
BUILD_SHELL
=
${
BASE_HOME
}
/build.sh
# build all parts for all products by default
BUILD_TARGET
=
""
TARGET_PLATFORM
=
all
GN_ARGS
=
"is_dbt_test=true include_all=false"
TARGET_ARCH
=
arm
BUILD_VARIANT
=
release
UPLOAD_API_INFO
=
False
SYSTEM_SIZE
=
large
SYSTEM_SIZE
=
standard
PRODUCT_NAME
=
""
USE_MUSL
=
false
export
PATH
=
${
BASE_HOME
}
/prebuilts/python/linux-x86/3.8.3/bin:
$PATH
while
[
-n
"
$1
"
]
...
...
@@ -65,7 +64,7 @@ parse_cmdline()
;;
variant
)
BUILD_VARIANT
=
"
$PARAM
"
;;
target_platform
)
TARGET_PLATFORM
=
"
$PARAM
"
use_musl
)
USE_MUSL
=
"
$PARAM
"
;;
target_subsystem
)
export
target_subsystem
=
${
PARAM
}
;;
...
...
@@ -100,8 +99,10 @@ do_make()
if
[
"
$SYSTEM_SIZE
"
=
"standard"
]
;
then
MUSL_ARGS
=
""
if
[
"
$PRODUCT_NAME
"
=
"m40"
]
;
then
if
[
"
$USE_MUSL
"
=
"false"
]
;
then
MUSL_ARGS
=
"--gn-args use_musl=false --gn-args use_custom_libcxx=true --gn-args use_custom_clang=true"
fi
fi
./build.sh
--product-name
$PRODUCT_NAME
--gn-args
build_xts
=
true
--build-target
$BUILD_TARGET
--build-target
"deploy_testtools"
--gn-args
is_standard_system
=
true
$MUSL_ARGS
--target-cpu
$TARGET_ARCH
else
if
[
"
$BUILD_TARGET
"
=
"acts acts_ivi acts_intellitv acts_wearable"
]
;
then
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录