aboutsummaryrefslogtreecommitdiff
path: root/mcu.cmake
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2016-09-04 22:12:32 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2016-09-04 22:12:32 +0200
commitd807f0ab00ec7b833c8688f0b08b7ecdf9b8d52b (patch)
tree6e913d0effc92483b0f4110b7003e81aea425bad /mcu.cmake
downloadmcu.cmake-d807f0ab00ec7b833c8688f0b08b7ecdf9b8d52b.tar.gz
mcu.cmake-d807f0ab00ec7b833c8688f0b08b7ecdf9b8d52b.tar.bz2
mcu.cmake-d807f0ab00ec7b833c8688f0b08b7ecdf9b8d52b.tar.xz
mcu.cmake-d807f0ab00ec7b833c8688f0b08b7ecdf9b8d52b.zip
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.
Diffstat (limited to 'mcu.cmake')
-rw-r--r--mcu.cmake9
1 files changed, 9 insertions, 0 deletions
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 ()