diff options
-rw-r--r-- | fw/CMakeLists.txt | 8 | ||||
-rw-r--r-- | fw/rtos/CMakeLists.txt | 16 |
2 files changed, 17 insertions, 7 deletions
diff --git a/fw/CMakeLists.txt b/fw/CMakeLists.txt index db9834c..5b1e42b 100644 --- a/fw/CMakeLists.txt +++ b/fw/CMakeLists.txt @@ -9,13 +9,7 @@ set(KEY ${KEY_DEFAULT} CACHE STRING "Firmware signing key path") message(STATUS "Firmware signing key path: ${KEY}") set(BOARD "native_sim/native/64") -set(ZEPHYR_MODULES - "${CMAKE_CURRENT_SOURCE_DIR}/rtos/modules/cmsis" - "${CMAKE_CURRENT_SOURCE_DIR}/rtos/modules/hal_stm32" - "${CMAKE_CURRENT_SOURCE_DIR}/rtos/modules/mbedtls" - "${CMAKE_CURRENT_SOURCE_DIR}/rtos/modules/mcuboot" -) -set(ZEPHYR_BASE "${CMAKE_CURRENT_SOURCE_DIR}/rtos/zephyr") +add_subdirectory(rtos) string(REPLACE ";" "," ZEPHYR_MODULES_COMMA "${ZEPHYR_MODULES}") include(ExternalProject) diff --git a/fw/rtos/CMakeLists.txt b/fw/rtos/CMakeLists.txt new file mode 100644 index 0000000..d9f116c --- /dev/null +++ b/fw/rtos/CMakeLists.txt @@ -0,0 +1,16 @@ +# This Source Code Form is subject to the terms of the Mozilla Public License, +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at https://mozilla.org/MPL/2.0/. + +set(ZEPHYR_MODULES + "${CMAKE_CURRENT_SOURCE_DIR}/modules/cmsis" + "${CMAKE_CURRENT_SOURCE_DIR}/modules/hal_stm32" + "${CMAKE_CURRENT_SOURCE_DIR}/modules/mbedtls" + "${CMAKE_CURRENT_SOURCE_DIR}/modules/mcuboot" + PARENT_SCOPE +) + +set(ZEPHYR_BASE + "${CMAKE_CURRENT_SOURCE_DIR}/zephyr" + PARENT_SCOPE +) |