From 5040ad1492f37b5c7efc06cc1f558bdad6a600fa Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 23 Mar 2025 18:08:44 +0100 Subject: Provide default key path in CMake files This makes calling cmake for this device repository easier. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index a21c5d0..e539037 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,10 @@ 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) -- cgit v1.2.3-70-g09d2