diff options
author | xengineering <me@xengineering.eu> | 2025-03-26 20:59:54 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2025-03-26 21:18:23 +0100 |
commit | 2b7ecfb1f5b6c9f98d239c893d4b4130176a1beb (patch) | |
tree | 73d8018e916574536a20ed4c85a2a4f16a82a856 | |
parent | 7c73e4958f3be36ee80ae978d7c52db15949954b (diff) | |
download | iot-contact-2b7ecfb1f5b6c9f98d239c893d4b4130176a1beb.tar iot-contact-2b7ecfb1f5b6c9f98d239c893d4b4130176a1beb.tar.zst iot-contact-2b7ecfb1f5b6c9f98d239c893d4b4130176a1beb.zip |
fw: rtos: Add CMakeLists.txt
This moves the definition of ZEPHYR_MODULES and ZEPHYR_BASE to this rtos
folder where it fits best.
-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 +) |