工具链放到当前目录下,减少对外部的依赖

This commit is contained in:
zhangzheng
2022-12-09 23:38:24 +08:00
parent 709db147d0
commit 9100d04b51
2 changed files with 4 additions and 3 deletions

View File

@@ -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)

View File

@@ -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/*