cpu/nrf52: update RIOTBOOT_LEN w/ MODULE_USBUS_DFU
This commit is contained in:
parent
25d0dffa61
commit
bca340d338
@ -1,7 +1,11 @@
|
|||||||
# Slot size is determined by "((total_flash_size - RIOTBOOT_LEN) / 2)".
|
# Slot size is determined by "((total_flash_size - RIOTBOOT_LEN) / 2)".
|
||||||
# If RIOTBOOT_LEN uses an uneven number of flashpages, the remainder of the
|
# If RIOTBOOT_LEN uses an uneven number of flashpages, the remainder of the
|
||||||
# flash cannot be divided by two slots while staying FLASHPAGE_SIZE aligned.
|
# flash cannot be divided by two slots while staying FLASHPAGE_SIZE aligned.
|
||||||
RIOTBOOT_LEN ?= 0x2000
|
ifneq (,$(filter usbus_dfu,$(USEMODULE)))
|
||||||
|
RIOTBOOT_LEN ?= 0x4000
|
||||||
|
else
|
||||||
|
RIOTBOOT_LEN ?= 0x2000
|
||||||
|
endif
|
||||||
|
|
||||||
# Export internal ROM alignment and slot sizes for bootloader support
|
# Export internal ROM alignment and slot sizes for bootloader support
|
||||||
export MCUBOOT_IMAGE_ALIGN = 8
|
export MCUBOOT_IMAGE_ALIGN = 8
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user