wolfBoot/config/examples/sim-wolfHSM-server-certchai...

37 lines
944 B
Plaintext

ARCH=sim
TARGET=sim
SIGN?=ECC256
HASH?=SHA256
WOLFBOOT_SMALL_STACK?=0
SPI_FLASH=0
DEBUG=0
SPMATH=1
# Cert chain options: leaf follows SIGN (ecc256), CA certs use RSA2048
# signed with SHA-384. The CA algorithms are compiled in automatically
# through AUX_PK_ALGOS/AUX_HASH_ALGOS.
CERT_CHAIN_VERIFY=1
CERT_CHAIN_GEN_CA_ALGO=rsa2048
CERT_CHAIN_GEN_CA_HASH=sha384
# Ensure header is large enough to hold the cert chain (check sign tool output)
# for actual length
IMAGE_HEADER_SIZE=4096
# wolfHSM options
WOLFHSM_SERVER=1
# sizes should be multiple of system page size
WOLFBOOT_PARTITION_SIZE=0x200000
WOLFBOOT_SECTOR_SIZE=0x1000
WOLFBOOT_PARTITION_BOOT_ADDRESS=0x80000
# if on external flash, it should be multiple of system page size
WOLFBOOT_PARTITION_UPDATE_ADDRESS=0x280000
WOLFBOOT_PARTITION_SWAP_ADDRESS=0x480000
# required for keytools
WOLFBOOT_FIXED_PARTITIONS=1
# For debugging XMALLOC/XFREE
#CFLAGS_EXTRA+=-DWOLFBOOT_DEBUG_MALLOC