Commit d0533ed1 authored by Fabio Utzig's avatar Fabio Utzig Committed by Fabio Utzig
Browse files

Add Zephyr config for boostrap feature

Signed-off-by: default avatarFabio Utzig <utzig@apache.org>
parent 9b97b13a
Loading
Loading
Loading
Loading
+8
Changes for boot/zephyr/Kconfig: 8 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -72,6 +72,14 @@ config BOOT_UPGRADE_ONLY
	  swapping them.  This prevents the fallback recovery, but
	  uses a much simpler code path.

config BOOT_BOOTSTRAP
	bool "Boostrap erased slot0 from slot1"
	default n
	help
	  If y, enables bootstraping support. Bootstrapping allows an erased
	  slot0 to be initialized from a valid image in slot1.
	  If unsure, leave at the default value.

config BOOT_ENCRYPT_RSA
	bool "Support for encrypted upgrade images"
	default n
+4
Changes for boot/zephyr/include/mcuboot_config/mcuboot_config.h: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -48,6 +48,10 @@
#define MCUBOOT_ENCRYPT_RSA
#endif

#ifdef CONFIG_BOOT_BOOTSTRAP
#define MCUBOOT_BOOTSTRAP 1
#endif

/*
 * Enabling this option uses newer flash map APIs. This saves RAM and
 * avoids deprecated API usage.
+2
Changes for boot/zephyr/prj.conf: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -9,6 +9,8 @@ CONFIG_MBEDTLS_CFG_FILE="mcuboot-mbedtls-cfg.h"

CONFIG_BOOT_ENCRYPT_RSA=n

CONFIG_BOOT_BOOTSTRAP=n

### Default to RSA
CONFIG_BOOT_SIGNATURE_TYPE_RSA=y
CONFIG_BOOT_SIGNATURE_TYPE_ECDSA_P256=n