1 Star 0 Fork 4.7K

jiyong/xts_acts_hitrace

forked from OpenHarmony/xts_acts 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ci_build.sh 1.85 KB
一键复制 编辑 原始数据 按行查看 历史
糖宝儿 提交于 2023-11-16 10:27 . 精准编译适配编译脚本
#!/bin/bash
# Copyright (C) 2021 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
set -e
parse_target_subsystem()
{
XTS_HOME=$(dirname $(cd $(dirname $0); pwd))
BASE_HOME=${XTS_HOME}/../..
target_subsystem_config=${XTS_HOME}/tools/config/precise_compilation.json
xts_targets=""
repositorys=$1
match_status=true
repo_lst=($(echo $repositorys | tr "," "\n"))
for repo in "${repo_lst[@]}"
do
# 仓名映射target名
jq_cmd="cat $target_subsystem_config | jq -r '.[] | select( .name == \"${repo}\") | .buildTarget'"
xts_target=`eval $jq_cmd`
if [[ -z "${xts_target}" ]];then
match_status=false
fi
# precise_compilation.json匹配到的才添加,数组中不存在才添加(去重)
if [[ -n "${xts_target}" && !("$xts_targets" =~ "$xts_target") ]];then
xts_targets+="$xts_target,"
fi
done
# 去掉末尾,
xts_targets=$(echo "$xts_targets" | sed 's/,$//')
echo "xts_targets: $xts_targets"
}
do_make()
{
cd $BASE_HOME
if [[ ${match_status} == false || "$xts_targets" =~ "xts_acts" ]];then
./test/xts/acts/build.sh product_name=rk3568 system_size=standard
else
./test/xts/acts/build.sh product_name=rk3568 system_size=standard suite=${xts_targets}
fi
}
parse_target_subsystem $1
do_make
exit 0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/jiyong_sd/xts_acts_hitrace.git
[email protected]:jiyong_sd/xts_acts_hitrace.git
jiyong_sd
xts_acts_hitrace
xts_acts_hitrace
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385