Skip to content

Commit 4480962

Browse files
committed
Add kinetis LMS small config
1 parent 004eb2f commit 4480962

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
ARCH?=ARM
2+
TARGET?=kinetis_kl26
3+
SIGN?=LMS
4+
HASH?=SHA256
5+
6+
LMS_LEVELS=1
7+
LMS_HEIGHT=10
8+
LMS_WINTERNITZ=8
9+
IMAGE_SIGNATURE_SIZE=1456
10+
# Keytools (sign.c) forces header_sz >= 2 * sig_sz for LMS, so the minimum
11+
# is 3552; round up to the next power of two.
12+
IMAGE_HEADER_SIZE=4096
13+
14+
MCUXSDK?=0
15+
MCUXPRESSO?=$(PWD)/../NXP/SDK_2_2_0_FRDM-KL26Z
16+
MCUXPRESSO_CMSIS?=$(MCUXPRESSO)/CMSIS
17+
MCUXPRESSO_CPU?=MKL26Z128VLH4
18+
MCUXPRESSO_DRIVERS?=$(MCUXPRESSO)/devices/MKL26Z4
19+
DEBUG?=0
20+
VTOR?=1
21+
CORTEX_M0?=1
22+
NO_ASM?=0
23+
EXT_FLASH?=0
24+
SPI_FLASH?=0
25+
ALLOW_DOWNGRADE?=0
26+
NVM_FLASH_WRITEONCE?=1
27+
WOLFBOOT_VERSION?=0
28+
V?=0
29+
SPMATH?=1
30+
RAM_CODE?=0
31+
DUALBANK_SWAP?=0
32+
PKA?=0
33+
DEBUG_UART?=1
34+
35+
# Cortex-M0+ doesn't support unaligned word accesses. WOLFSSL_USE_ALIGN
36+
# routes word-sized hash operations through byte-safe code paths when the
37+
# buffers (e.g. LMS internal hash state) aren't 4-byte aligned.
38+
CFLAGS_EXTRA+=-DWOLFSSL_USE_ALIGN
39+
40+
# Logical sector = 4 KL26 hardware sectors (1KB each). Required because
41+
# IMAGE_HEADER_SIZE (4096) must be <= WOLFBOOT_SECTOR_SIZE.
42+
WOLFBOOT_SECTOR_SIZE?=0x1000
43+
44+
# 128KB flash, 16KB SRAM
45+
# 32KB bootloader, 44KB boot/update partitions, 4KB swap at last logical sector
46+
WOLFBOOT_PARTITION_SIZE?=0xB000
47+
WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x8000
48+
WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x13000
49+
WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x1F000

0 commit comments

Comments
 (0)