42 lines
1.2 KiB
Makefile
42 lines
1.2 KiB
Makefile
# Makefile for building mcuboot as a Zephyr project.
|
|
|
|
# Configuration choices.
|
|
|
|
#####################
|
|
# Signature algorithm
|
|
#####################
|
|
# Choose one of RSA or ECDSA P-256 blocks, and uncomment the config
|
|
# lines there, and comment out any other blocks.
|
|
|
|
# RSA
|
|
CONF_FILE = boot/zephyr/prj.conf
|
|
CFLAGS += -DBOOTUTIL_SIGN_RSA -DBOOTUTIL_USE_MBED_TLS
|
|
|
|
# ECDSA P-256
|
|
#CONF_FILE = boot/zephyr/prj-p256.conf
|
|
#CFLAGS += -DBOOTUTIL_SIGN_EC256 -DBOOTUTIL_USE_TINYCRYPT
|
|
|
|
# Enable this option to have the bootloader verify the signature of
|
|
# the primary image upon every boot. Without it, signature
|
|
# verification only happens on upgrade.
|
|
CFLAGS += -DBOOTUTIL_VALIDATE_SLOT0
|
|
|
|
##############################
|
|
# End of configuration blocks.
|
|
##############################
|
|
|
|
# The board should be set to one of the targets supported by
|
|
# mcuboot/Zephyr. These can be found in ``boot/zephyr/targets``
|
|
BOARD ?= qemu_x86
|
|
|
|
# Additional board-specific Zephyr configuration
|
|
CONF_FILE += $(wildcard boot/zephyr/$(BOARD).conf)
|
|
|
|
# The source to the Zephyr-specific code lives here.
|
|
SOURCE_DIR = boot/zephyr
|
|
|
|
# Needed for mbedtls config-boot.h file.
|
|
CFLAGS += -I$(CURDIR)/boot/zephyr/include
|
|
|
|
include ${ZEPHYR_BASE}/Makefile.inc
|