zephyr: Reconfigure to use local tinycrypt
Disable the Zephyr-provided Tinycrypt, and use our local copy. This avoids problems with changing version across different Zephyr releases. Signed-off-by: David Brown <david.brown@linaro.org>
This commit is contained in:
parent
fecda2d6c5
commit
09ef1c4b06
2
Makefile
2
Makefile
|
@ -15,6 +15,8 @@ CFLAGS += -DMCUBOOT_SIGN_RSA -DMCUBOOT_USE_MBED_TLS
|
|||
# ECDSA P-256
|
||||
#CONF_FILE = boot/zephyr/prj-p256.conf
|
||||
#CFLAGS += -DMCUBOOT_SIGN_EC256 -DMCUBOOT_USE_TINYCRYPT
|
||||
#NEED_TINYCRYPT = y
|
||||
#export NEED_TINYCRYPT
|
||||
|
||||
# Enable this option to have the bootloader verify the signature of
|
||||
# the primary image upon every boot. Without it, signature
|
||||
|
|
|
@ -8,3 +8,6 @@ obj-y += flash_map.o hal_flash.o os.o
|
|||
obj-y += keys.o
|
||||
|
||||
obj-y += ../bootutil/src/
|
||||
|
||||
obj-$(NEED_TINYCRYPT) += ../../ext/tinycrypt/lib/source/
|
||||
include $(PROJECT)/ext/tinycrypt/lib/source/Makefile.inc
|
||||
|
|
|
@ -7,9 +7,9 @@ CONFIG_MAIN_STACK_SIZE=10240
|
|||
CONFIG_MBEDTLS=y
|
||||
CONFIG_MBEDTLS_BUILTIN=y
|
||||
CONFIG_MBEDTLS_CFG_FILE="config-asn1.h"
|
||||
CONFIG_TINYCRYPT=y
|
||||
CONFIG_TINYCRYPT_ECC_DSA=y
|
||||
CONFIG_TINYCRYPT_SHA256=y
|
||||
# CONFIG_TINYCRYPT is not set
|
||||
# CONFIG_TINYCRYPT_ECC_DSA is not set
|
||||
# CONFIG_TINYCRYPT_SHA256 is not set
|
||||
|
||||
### mbedTLS wants a heap
|
||||
CONFIG_HEAP_MEM_POOL_SIZE=16384
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
# Zephyr makefile.
|
||||
# subdir-ccflags-y += -I$(PROJECT)/ext/tinycrypt/lib/include
|
||||
|
||||
obj-y += ecc.o ecc_dsa.o sha256.o utils.o
|
|
@ -0,0 +1,3 @@
|
|||
# vim: ft=make
|
||||
|
||||
subdir-ccflags-$(NEED_TINYCRYPT) += -I$(PROJECT)/ext/tinycrypt/lib/include
|
Loading…
Reference in New Issue