1 Star 0 Fork 23

itopen/openIPC

forked from endless/open_ipc 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.sh 711 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
set -e
BASE_PATH=$(dirname $(readlink -f $0))
BUILD_PATH="$BASE_PATH/build"
function usage() {
echo "usage: ./build.sh platform"
echo "example: ./build.sh m64x86"
echo "platform: m64x86 3403v100 t31 3516cv500 mt7628"
}
build_spec_platform() {
PLATFORM=$1
rm -rf "$BUILD_PATH/$PLATFORM"
mkdir -pv "$BUILD_PATH/$PLATFORM"
cd "$BUILD_PATH"/"$PLATFORM"
cmake $BASE_PATH -B$BUILD_PATH/$PLATFORM -DPLATFORM=$PLATFORM
make -j8
}
main() {
if [[ ! $# -ge 1 ]]; then
usage
exit 0
fi
BUILD_PLAT=$1
echo "$BUILD_PLAT"
case $BUILD_PLAT in
m64x86 | 3403v100 | 3516cv500 | mt7628)
build_spec_platform "$BUILD_PLAT"
;;
*)
usage
;;
esac
}
main "$@"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/itopen/openIPC.git
[email protected]:itopen/openIPC.git
itopen
openIPC
openIPC
master

搜索帮助