2017-02-02 23:10:23 +08:00
|
|
|
# Makefile for building mcuboot as a Zephyr project.
|
|
|
|
|
|
|
|
# These are the main configuration choices, mainly having to do with
|
|
|
|
# what signature algorithm is desired. Choose one of the blocks
|
|
|
|
# below, and uncomment the settings after it.
|
|
|
|
|
|
|
|
#####
|
|
|
|
# RSA
|
|
|
|
#####
|
2017-01-11 00:49:47 +08:00
|
|
|
CONF_FILE = boot/zephyr/prj.conf
|
2017-02-02 23:10:23 +08:00
|
|
|
CFLAGS += -DBOOTUTIL_SIGN_RSA
|
|
|
|
|
|
|
|
#############
|
|
|
|
# ECDSA P-256
|
|
|
|
#############
|
|
|
|
#CONF_FILE = boot/zephyr/prj-p256.conf
|
|
|
|
#CFLAGS += -DBOOTUTIL_SIGN_EC256
|
|
|
|
|
|
|
|
##############################
|
|
|
|
# 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
|
|
|
|
|
|
|
|
# The source to the Zephyr-specific code lives here.
|
2017-01-11 00:49:47 +08:00
|
|
|
SOURCE_DIR = boot/zephyr
|
2017-01-07 02:16:53 +08:00
|
|
|
|
2017-01-11 00:51:39 +08:00
|
|
|
# Needed for mbedtls config-boot.h file.
|
|
|
|
CFLAGS += -I$(CURDIR)/boot/zephyr/include
|
|
|
|
|
2017-01-07 02:16:53 +08:00
|
|
|
include ${ZEPHYR_BASE}/Makefile.inc
|