cpu/cortexm_common: increase RIOTBOOT_LEN size when usbus_dfu is used

This commit is contained in:
dylad 2020-12-15 17:12:22 +01:00 committed by Dylan Laduranty
parent 669a8ec7b3
commit 9d02efb4ea

View File

@ -70,8 +70,12 @@ else
endif
# Configure riotboot bootloader and slot lengths
# 4KB are currently enough
RIOTBOOT_LEN ?= 0x1000
# 4KB are currently enough, set it to 16KB if USB-DFU is used
ifneq (,$(filter usbus_dfu,$(USEMODULE)))
RIOTBOOT_LEN ?= 0x4000
else
RIOTBOOT_LEN ?= 0x1000
endif
# Currently 2 slots are supported by default, equals in length
NUM_SLOTS ?= 2
# Take the whole flash minus RIOTBOOT_LEN and divide it by NUM_SLOTS