From d807f0ab00ec7b833c8688f0b08b7ecdf9b8d52b Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 4 Sep 2016 22:12:32 +0200 Subject: o Initial import of mcu.cmake containing old Intel Quark D2000 cmake code and new NRF51 code. The Intel code is not useful and the NRF code needs to be updated to support NRF52 chips. --- mcu.cmake | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 mcu.cmake (limited to 'mcu.cmake') diff --git a/mcu.cmake b/mcu.cmake new file mode 100644 index 0000000..e5408b4 --- /dev/null +++ b/mcu.cmake @@ -0,0 +1,9 @@ +if (NOT MCU_CHIP) + message(FATAL_ERROR "Missing required argument CHIP.") +elseif (MCU_CHIP MATCHES nrf51822) + set(CMAKE_TOOLCHAIN_FILE "${CMAKE_CURRENT_LIST_DIR}/nrf51.cmake") +elseif (MCU_CHIP MATCHES D2000) + set(CMAKE_TOOLCHAIN_FILE "${CMAKE_CURRENT_LIST_DIR}/intel-quark-d2000.toolchain.cmake") +else () + message(FATAL_ERROR "Unsupported MCU_CHIP setting: ${MCU_CHIP}") +endif () -- cgit v1.2.3