1 Star 0 Fork 47

uncommon_ljl/ssd2xx-demo

forked from Flying/ssd2xx-demo 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build_all.sh 949 Bytes
一键复制 编辑 原始数据 按行查看 历史
Flying 提交于 2021-12-16 10:42 . 增加全编译脚本
#!/bin/sh
###
# @Author: Flying
# @Date: 2021-12-16 09:56:08
# @LastEditors: Flying
# @LastEditTime: 2021-12-16 10:40:32
# @Description: 新建文件
###
make_op=""
cmake_op="-D CMAKE_TOOLCHAIN_FILE=toolchain.cmake -D CHIP=ssd20x"
for param in "$@"
do
if [ "${param:0:1}" != "-" ]; then
echo "$param error"
exit 1
fi
if [ "${param:1:1}" == "j" ]; then
make_op=$param
fi
if [ "$param" == "-ssd2x2" ]; then
cmake_op="-D CMAKE_TOOLCHAIN_FILE=toolchain.cmake -D CHIP=ssd2x2"
elif [ "$param" == "-mp157" ]; then
cmake_op="-D CMAKE_TOOLCHAIN_FILE=toolchain_mp157.cmake -D CHIP=mp157"
fi
if [ "${param:0:2}" == "-h" ]; then
echo "eg: $0 -j4"
echo "eg: $0 -j8 -ssd2x2"
echo "eg: $0 -j8 -mp157"
exit 0;
fi
done
echo "make_op = $make_op "
echo "cmake_op = $cmake_op "
rm build -rf
mkdir build
cd build
cmake $cmake_op ..
make $make_op
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/uncommon_ljl_admin/ssd2xx-demo.git
git@gitee.com:uncommon_ljl_admin/ssd2xx-demo.git
uncommon_ljl_admin
ssd2xx-demo
ssd2xx-demo
master

搜索帮助