summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2025-03-23 18:08:44 +0100
committerxengineering <me@xengineering.eu>2025-03-26 21:18:23 +0100
commit5040ad1492f37b5c7efc06cc1f558bdad6a600fa (patch)
tree9a28140bc589a9bc14d38a471a5c2da93f9ea0ed /CMakeLists.txt
parentb073db4017008ceb638a9c23c8cc93e60a3a7fdb (diff)
downloadiot-contact-5040ad1492f37b5c7efc06cc1f558bdad6a600fa.tar
iot-contact-5040ad1492f37b5c7efc06cc1f558bdad6a600fa.tar.zst
iot-contact-5040ad1492f37b5c7efc06cc1f558bdad6a600fa.zip
Provide default key path in CMake files
This makes calling cmake for this device repository easier.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
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)