Skip to content

Commit 9dd326b

Browse files
committed
config: example: stm32h5 tpm IDevId example
1 parent 0194ebd commit 9dd326b

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
ARCH?=ARM
2+
TZEN?=1
3+
TARGET?=stm32h5
4+
SIGN?=ECC256
5+
HASH?=SHA256
6+
DEBUG?=0
7+
VTOR?=1
8+
CORTEX_M0?=0
9+
CORTEX_M33?=1
10+
NO_ASM?=0
11+
NO_MPU=1
12+
EXT_FLASH?=0
13+
SPI_FLASH?=0
14+
ALLOW_DOWNGRADE?=0
15+
NVM_FLASH_WRITEONCE?=1
16+
WOLFBOOT_VERSION?=1
17+
V?=0
18+
SPMATH?=1
19+
RAM_CODE?=1
20+
DUALBANK_SWAP?=0
21+
WOLFBOOT_PARTITION_SIZE?=0xA0000
22+
WOLFBOOT_SECTOR_SIZE?=0x2000
23+
WOLFBOOT_KEYVAULT_ADDRESS?=0x0C040000
24+
WOLFBOOT_KEYVAULT_SIZE?=0x1C000
25+
WOLFBOOT_NSC_ADDRESS?=0x0C05C000
26+
WOLFBOOT_NSC_SIZE?=0x4000
27+
WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x08060000
28+
WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x0C100000
29+
WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x0C1A0000
30+
FLAGS_HOME=0
31+
DISABLE_BACKUP=0
32+
WOLFCRYPT_TZ=1
33+
WOLFCRYPT_TZ_PKCS11=1
34+
IMAGE_HEADER_SIZE?=1024
35+
ARMORED=1
36+
WOLFTPM=1
37+
# Exercise the pre-provisioned ST33KTPM identity keys (IAK/IDevID).
38+
# ST33 vendor support is required (wolfTPM2_SetIdentityAuth -> TPM2_GetProductInfo).
39+
CFLAGS_EXTRA+=-DWOLFTPM_ST33
40+
CFLAGS_EXTRA+=-DWOLFTPM_MFG_IDENTITY
41+
# Derive the authValue on-device so the test-app works on a sample TPM. The
42+
# default precomputed mode ships a 0xFF placeholder that must be provisioned
43+
# per-device first.
44+
WOLFBOOT_TPM_MFG_AUTH_DERIVE=1

0 commit comments

Comments
 (0)