From 7c73e4958f3be36ee80ae978d7c52db15949954b Mon Sep 17 00:00:00 2001 From: xengineering Date: Tue, 25 Mar 2025 21:18:25 +0100 Subject: fw: Move MCUboot key definition here This key is only relevant for firmware. Thus it should be set in the CMakeLists.txt file of the `fw` folder. --- CMakeLists.txt | 4 ---- fw/CMakeLists.txt | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e539037..a21c5d0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,10 +2,6 @@ cmake_minimum_required(VERSION 3.10) project(iot-contact LANGUAGES NONE) -set(KEY_DEFAULT "$ENV{HOME}/mcuboot/key.pem") -set(KEY ${KEY_DEFAULT} CACHE STRING "Firmware signing key path") -message(STATUS "Firmware signing key path: ${KEY}") - set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH}) add_subdirectory(fw) diff --git a/fw/CMakeLists.txt b/fw/CMakeLists.txt index 0eca50f..db9834c 100644 --- a/fw/CMakeLists.txt +++ b/fw/CMakeLists.txt @@ -4,6 +4,10 @@ cmake_minimum_required(VERSION 3.20.0) +set(KEY_DEFAULT "$ENV{HOME}/mcuboot/key.pem") +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" -- cgit v1.2.3-70-g09d2