aboutsummaryrefslogtreecommitdiff
path: root/nrf5x.cmake
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2017-01-15 15:04:02 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2017-01-15 15:04:02 +0100
commit2155ab2b72cc4f076dc0a25d0e3a5fdd4d218998 (patch)
tree8f89f8a86b949382456a2813d467518033995782 /nrf5x.cmake
parent7bd30b64fb5eaccb9c4a78b0bb4413d5a476089c (diff)
downloadmcu.cmake-2155ab2b72cc4f076dc0a25d0e3a5fdd4d218998.tar.gz
mcu.cmake-2155ab2b72cc4f076dc0a25d0e3a5fdd4d218998.tar.bz2
mcu.cmake-2155ab2b72cc4f076dc0a25d0e3a5fdd4d218998.tar.xz
mcu.cmake-2155ab2b72cc4f076dc0a25d0e3a5fdd4d218998.zip
o Adding a generic binutils part for creating the info files (.nm, disassembly, size, hex and bin files.)
o Adding initial support for STM32F103xx chips. Can easily be expanded to all at least the F1 series.
Diffstat (limited to 'nrf5x.cmake')
-rw-r--r--nrf5x.cmake12
1 files changed, 6 insertions, 6 deletions
diff --git a/nrf5x.cmake b/nrf5x.cmake
index ee3a814..fe76731 100644
--- a/nrf5x.cmake
+++ b/nrf5x.cmake
@@ -94,18 +94,18 @@ _mcu_find_toolchain()
find_program(MCU_ARM_CC arm-none-eabi-gcc ${MCU_TOOLCHAIN_DIR}/bin)
find_program(MCU_ARM_CXX arm-none-eabi-g++ ${MCU_TOOLCHAIN_DIR}/bin)
find_program(MCU_ARM_OBJCOPY arm-none-eabi-objcopy ${MCU_TOOLCHAIN_DIR}/bin)
-find_program(MCU_ARM_SIZE_TOOL arm-none-eabi-size ${MCU_TOOLCHAIN_DIR}/bin)
+find_program(MCU_ARM_SIZE arm-none-eabi-size ${MCU_TOOLCHAIN_DIR}/bin)
find_program(MCU_ARM_NM arm-none-eabi-nm ${MCU_TOOLCHAIN_DIR}/bin)
set(_CMAKE_TOOLCHAIN_PREFIX arm-none-eabi-)
include(CMakeFindBinUtils)
-#message("MCU_ARM_CC = ${MCU_ARM_CC}")
-#message("MCU_ARM_CXX = ${MCU_ARM_CXX}")
-#message("MCU_ARM_OBJCOPY = ${MCU_ARM_OBJCOPY}")
-#message("MCU_ARM_SIZE_TOOL = ${MCU_ARM_SIZE_TOOL}")
+#message("MCU_ARM_CC = ${MCU_ARM_CC}")
+#message("MCU_ARM_CXX = ${MCU_ARM_CXX}")
+#message("MCU_ARM_OBJCOPY = ${MCU_ARM_OBJCOPY}")
+#message("MCU_ARM_SIZE = ${MCU_ARM_SIZE}")
-if (NOT MCU_ARM_CC OR NOT MCU_ARM_CXX OR NOT MCU_ARM_OBJCOPY OR NOT MCU_ARM_SIZE_TOOL)
+if (NOT MCU_ARM_CC OR NOT MCU_ARM_CXX OR NOT MCU_ARM_OBJCOPY OR NOT MCU_ARM_SIZE)
message(FATAL_ERROR "Could not find required compiler tools.")
endif()