diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2016-09-13 07:49:25 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2016-09-13 07:49:25 +0200 |
commit | 779987c9eddfe219d0775a03141be54f6822c89e (patch) | |
tree | db518d329d7ff718b03352af99cebfd6792b0f5a /nrf51.cmake | |
parent | 94797ba0604f52bfdbe6ade2cb29724a05c17c57 (diff) | |
download | mcu.cmake-779987c9eddfe219d0775a03141be54f6822c89e.tar.gz mcu.cmake-779987c9eddfe219d0775a03141be54f6822c89e.tar.bz2 mcu.cmake-779987c9eddfe219d0775a03141be54f6822c89e.tar.xz mcu.cmake-779987c9eddfe219d0775a03141be54f6822c89e.zip |
o Renaming everything from nRF51 to nRF5x to better match the SDK.
o Using the correct startup code based on chip family.
o Adding -flash and -softdevice-flash goals if nrfjprog is available.
Diffstat (limited to 'nrf51.cmake')
-rw-r--r-- | nrf51.cmake | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/nrf51.cmake b/nrf51.cmake deleted file mode 100644 index f2ecff3..0000000 --- a/nrf51.cmake +++ /dev/null @@ -1,28 +0,0 @@ -set(MCU_NRF51_LOADED TRUE CACHE BOOL INTERNAL) - -include(${CMAKE_CURRENT_LIST_DIR}/nrf51/utils.cmake) - -mcu_nrf51_detect_sdk() - -find_program(ARM_CC arm-none-eabi-gcc ${TOOLCHAIN_DIR}/bin) -find_program(ARM_CXX arm-none-eabi-g++ ${TOOLCHAIN_DIR}/bin) -find_program(ARM_OBJCOPY arm-none-eabi-objcopy ${TOOLCHAIN_DIR}/bin) -find_program(ARM_SIZE_TOOL arm-none-eabi-size ${TOOLCHAIN_DIR}/bin) - -set(_CMAKE_TOOLCHAIN_PREFIX arm-none-eabi-) -include(CMakeFindBinUtils) - -#message("ARM_CC=${ARM_CC}") -#message("ARM_CXX=${ARM_CXX}") -#message("ARM_OBJCOPY=${ARM_OBJCOPY}") -#message("ARM_SIZE_TOOL=${ARM_SIZE_TOOL}") - -# Old style, before 3.6 -#include(CMakeForceCompiler) -#CMAKE_FORCE_C_COMPILER(${ARM_CC} GNU) -#CMAKE_FORCE_CXX_COMPILER(${ARM_CXX} GNU) - -# New style, 3.6+ -set(CMAKE_C_COMPILER ${ARM_CC} CACHE FILE "") -set(CMAKE_CXX_COMPILER ${ARM_CXX} CACHE FILE "") -set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY) |