代码拉取完成,页面将自动刷新
#!/bin/bash
export PATH=$PATH:$PWD/core/gcc-arm-none-eabi-6-2017-q2-update/bin
if [ $# == 0 ]; then
if [ -d _builds/Release ]; then
echo "You are keepping to compile at last time!"
else
echo "Hello friends, my name is DoST, Welcome to enjoy to debug of ST ^_^"
echo "As firt compile project, you need to tell me ID about ST product"
echo "Example: STM32F407ZGT6"
read -p "Input ST's product ID: (Enter, STM32F407ZGT6 is a default select)" ST_ID
if [ -z $ST_ID ]; then
echo "You need to input ST's product identification, we have detect that you type Enter,so, STM32F407ZGT6 wil be choice"
ST_ID=STM32F407ZGT6
fi
cmake -C.dost.conf/dost_system_config.cmake -H. -B_builds/Release -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DSTM32_CHIP=$ST_ID -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DSHOW_CORE_MESSAGE=TRUE
fi
elif [ $# == 1 ]; then
if [ $1 == "-r" ]; then
rm -rf _builds/Release
echo "Hello friends, my name is DoST, Welcome to enjoy to compile of ST ^_^"
echo "As firt compile project, you need to tell me ID about ST product"
echo "Example: STM32F407ZGT6"
read -p "Input ST's product ID: (Enter, STM32F407ZGT6 is a default select)" ST_ID
if [ -z $ST_ID ]; then
echo "You need to input ST's product identification, we have detect that you type Enter,so, STM32F407ZGT6 wil be choice"
ST_ID=STM32F407ZGT6
fi
cmake -C.dost.conf/dost_system_config.cmake -H. -B_builds/Release -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DSTM32_CHIP=$ST_ID -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DSHOW_CORE_MESSAGE=TRUE
rc -J $PWD/_builds/Release/compile_commands.json
else
echo "invalid param" && exit 0
fi
else
echo "illegal parament list!" && exit 0
fi
make -C _builds/Release
make -C _builds/Release $ST_ID.bin
make -C _builds/Release $ST_ID.hex
exit 0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。