From 2155ab2b72cc4f076dc0a25d0e3a5fdd4d218998 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 15 Jan 2017 15:04:02 +0100 Subject: 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. --- nrf5x.cmake | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'nrf5x.cmake') 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() -- cgit v1.2.3