mirror of https://github.com/wolfSSL/wolfBoot.git
47 lines
1.1 KiB
Plaintext
47 lines
1.1 KiB
Plaintext
ARCH?=ARM
|
|
TARGET?=stm32c0
|
|
SIGN?=ED25519
|
|
HASH?=SHA384
|
|
DEBUG?=0
|
|
VTOR?=1
|
|
CORTEX_M0?=1
|
|
NO_ASM?=0
|
|
NO_MPU?=1
|
|
EXT_FLASH?=0
|
|
SPI_FLASH?=0
|
|
ALLOW_DOWNGRADE?=0
|
|
NVM_FLASH_WRITEONCE?=1
|
|
WOLFBOOT_VERSION?=0
|
|
V?=0
|
|
SPMATH?=1
|
|
DUALBANK_SWAP?=0
|
|
|
|
# Enable this to support wolfBoot self-update
|
|
RAM_CODE?=0
|
|
|
|
# Use slightly smaller SHA2-256
|
|
CFLAGS_EXTRA+=-DUSE_SLOW_SHA256
|
|
|
|
# Enable this feature for secure memory support
|
|
# Makes the flash sectors for the bootloader unaccessible from the application
|
|
# Requires using the STM32CubeProgrammer to set FLASH_SECR -> SEC_SIZE pages
|
|
#CFLAGS_EXTRA+=-DFLASH_SECURABLE_MEMORY_SUPPORT
|
|
|
|
|
|
#Partition: Boot: 10KB, App, 10KB
|
|
WOLFBOOT_PARTITION_SIZE?=0x2000
|
|
WOLFBOOT_SECTOR_SIZE?=0x800
|
|
#Max WOLFBOOT size is 10KB
|
|
WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x08002800
|
|
WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x08005000
|
|
WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x08007800
|
|
|
|
#Example debugging partition for larger wolfBoot
|
|
#Partition: Boot: 22KB, App, 4K
|
|
#DEBUG?=1
|
|
#WOLFBOOT_PARTITION_SIZE?=0x1000
|
|
#WOLFBOOT_SECTOR_SIZE?=0x800
|
|
#WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x08005800
|
|
#WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x08006800
|
|
#WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x08007800
|