5 Star 6 Fork 4

Phytium嵌入式软件 / Phytium-optee

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build_all 1.35 KB
一键复制 编辑 原始数据 按行查看 历史
#! /bin/bash
#
#Contact author: email to dengqiang@phytium.com.cn
#
board_name=("e2000ddemo" "e2000qdemo" "phytiumpi" "end")
function help ()
{
echo "Usage:"
echo " "$0" [board] <option>"
echo " "$0" clean"
echo
echo "support boards:"
echo "e2000ddemo/e2000qdemo/phytiumpi"
echo
echo "Options:"
echo " d, Debug version"
echo " r, release version"
}
#main
# clean branch
if [ "$1" = "clean" ];then
cd optee_os
./build_optee_os clean
cd ..
cd optee_client
./build_optee_client clean
cd ..
cd app
./build_app clean
cd ..
rm -rf out
echo "clean all"
exit 0
fi
# check board name
for i in ${board_name[@]}
do
if [ "$i" = "$1" ];then
break
fi
if [ "$i" = "end" ];then
echo "Pls enter the correct board name"
help
exit 0;
fi
done
# op branch
if [ "$2" = "d" ];then
cd optee_os
./build_optee_os $1 d c f
cd ..
cd optee_client
./build_optee_client
cd ..
cd app
./build_app
cd ..
cd out
mv tee-phytium-$1.bin tee-$1-debug.bin
tar zcf data-$1-debug.tgz data/
cd ..
echo "build $1 debug version all"
exit 0
elif [ "$2" = "r" ];then
cd optee_os
./build_optee_os $1 c f
cd ..
cd optee_client
./build_optee_client
cd ..
cd app
./build_app
cd ..
cd out
mv tee-phytium-$1.bin tee-$1-rel.bin
tar zcf data-$1-rel.tgz data/
cd ..
echo "build $1 release version all"
exit 0
else
echo "Pls enter the correct mode"
help
exit 0
fi
1
https://gitee.com/phytium_embedded/phytium-optee.git
git@gitee.com:phytium_embedded/phytium-optee.git
phytium_embedded
phytium-optee
Phytium-optee
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891