From 9100d04b51d75e526c2c8da2a5d03cb8ea28b70a Mon Sep 17 00:00:00 2001 From: zhangzheng <1358745329@qq.com> Date: Fri, 9 Dec 2022 23:38:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=85=B7=E9=93=BE=E6=94=BE=E5=88=B0?= =?UTF-8?q?=E5=BD=93=E5=89=8D=E7=9B=AE=E5=BD=95=E4=B8=8B=EF=BC=8C=E5=87=8F?= =?UTF-8?q?=E5=B0=91=E5=AF=B9=E5=A4=96=E9=83=A8=E7=9A=84=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setting.cmake | 2 +- stm32f205rft6_build.sh | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/setting.cmake b/setting.cmake index 642cf369d..07acc4ae4 100644 --- a/setting.cmake +++ b/setting.cmake @@ -1,4 +1,4 @@ -set(CMAKE_TOOLCHAIN_PATH "/home/zhangzheng/gcc-arm-none-eabi-4_9-2015q3/bin/" CACHE STRING " " FORCE) +set(CMAKE_TOOLCHAIN_PATH "${CMAKE_SOURCE_DIR}/toolchains/gcc-arm-none-eabi-5_4-2016q3/bin/" CACHE STRING " " FORCE) set(CROSS_COMPILE ${CMAKE_TOOLCHAIN_PATH}arm-none-eabi- CACHE PATH "" FORCE) set(CMAKE_INSTALL_PATH "${CMAKE_BINARY_DIR}deploy" CACHE PATH "" FORCE) diff --git a/stm32f205rft6_build.sh b/stm32f205rft6_build.sh index c81f57216..d7409b045 100755 --- a/stm32f205rft6_build.sh +++ b/stm32f205rft6_build.sh @@ -1,8 +1,9 @@ #!/bin/bash +export MYDIR=$PWD export APP=mkrtos -export CMAKE_SIZE=/home/zhangzheng/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-size -export CMAKE_OBJCOPY=/home/zhangzheng/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-objcopy +export CMAKE_SIZE=$MYDIR/toolchains/gcc-arm-none-eabi-5_4-2016q3/bin/arm-none-eabi-size +export CMAKE_OBJCOPY=$MYDIR/toolchains/gcc-arm-none-eabi-5_4-2016q3/bin/arm-none-eabi-objcopy set -e sudo rm -f build/bin/*