Describe the bug
To work on specific Intel boards, I need to change the private key used for signature. hardcoding the new path doesn't work with CMakeLists.txt, the default is always selected.
Ideally we'd want an environment variable to be able to override this default to use an out-of-tree key instead of maintaining CMake changes.
To Reproduce
diff --git a/src/arch/xtensa/CMakeLists.txt b/src/arch/xtensa/CMakeLists.txt
index 6a43aeb3..2c5374b9 100644
--- a/src/arch/xtensa/CMakeLists.txt
+++ b/src/arch/xtensa/CMakeLists.txt
@@ -295,7 +295,7 @@ if(MEU_PATH)
set(MEU_OFFSET 1088)
endif()
- set(otc_private_key ${PROJECT_SOURCE_DIR}/rimage/keys/otc_private_key.pem)
+ set(otc_private_key ${PROJECT_SOURCE_DIR}/rimage/keys/debug/private_key.pem)
add_custom_target(
run_rimage
Expected behavior
The new key is used for signature
Impact
Can't figure out how to sign the stupid firmware.
Environment
v1.3-rc1
Describe the bug
To work on specific Intel boards, I need to change the private key used for signature. hardcoding the new path doesn't work with CMakeLists.txt, the default is always selected.
Ideally we'd want an environment variable to be able to override this default to use an out-of-tree key instead of maintaining CMake changes.
To Reproduce
Expected behavior
The new key is used for signature
Impact
Can't figure out how to sign the stupid firmware.
Environment
v1.3-rc1