Skip to content

Commit 92854b7

Browse files
thedjnKde-nordic
authored andcommitted
boot: zephyr: kconfig: Only show signature file when needed
Hides this Kconfig option when the operating mode is set to work as hash only without signature Signed-off-by: Jamie McCrae <[email protected]>
1 parent 716f338 commit 92854b7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

boot/zephyr/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ if(CONFIG_MCUBOOT_SERIAL)
338338
endif()
339339
endif()
340340

341-
if(NOT CONFIG_BOOT_SIGNATURE_KEY_FILE STREQUAL "")
341+
if(NOT CONFIG_BOOT_SIGNATURE_TYPE_NONE AND NOT CONFIG_BOOT_SIGNATURE_KEY_FILE STREQUAL "")
342342
set(key_file "${CONFIG_BOOT_SIGNATURE_KEY_FILE}")
343343
string(CONFIGURE "${key_file}" key_file)
344344

boot/zephyr/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@ config BOOT_BYPASS_KEY_MATCH
391391

392392
config BOOT_SIGNATURE_KEY_FILE
393393
string "PEM key file"
394+
depends on !BOOT_SIGNATURE_TYPE_NONE
394395
default "root-ec-p256.pem" if BOOT_SIGNATURE_TYPE_ECDSA_P256
395396
default "root-ed25519.pem" if BOOT_SIGNATURE_TYPE_ED25519
396397
default "root-rsa-3072.pem" if BOOT_SIGNATURE_TYPE_RSA && BOOT_SIGNATURE_TYPE_RSA_LEN=3072

0 commit comments

Comments
 (0)