Skip to content

Commit 8322c30

Browse files
committed
zephyr: Make makefile clearer about configuration
Separate the signature selection blocks, so that it is clearer to add another config option for the boot verification.
1 parent 3869e76 commit 8322c30

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

Makefile

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
11
# Makefile for building mcuboot as a Zephyr project.
22

3-
# These are the main configuration choices, mainly having to do with
4-
# what signature algorithm is desired. Choose one of the blocks
5-
# below, and uncomment the settings after it.
3+
# Configuration choices.
4+
5+
#####################
6+
# Signature algorithm
7+
#####################
8+
# Choose one of RSA or ECDSA P-256 blocks, and uncomment the config
9+
# lines there, and comment out any other blocks.
610

7-
#####
811
# RSA
9-
#####
1012
CONF_FILE = boot/zephyr/prj.conf
1113
CFLAGS += -DBOOTUTIL_SIGN_RSA
1214

13-
#############
1415
# ECDSA P-256
15-
#############
1616
#CONF_FILE = boot/zephyr/prj-p256.conf
1717
#CFLAGS += -DBOOTUTIL_SIGN_EC256
1818

19+
# Enable this option to have the bootloader verify the signature of
20+
# the primary image upon every boot. Without it, signature
21+
# verification only happens on upgrade.
22+
CFLAGS += -DBOOTUTIL_VALIDATE_SLOT0
23+
1924
##############################
2025
# End of configuration blocks.
2126
##############################

0 commit comments

Comments
 (0)