mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #20210 from Enoch247/fix-riotboot
riotboot: fix build errors
This commit is contained in:
commit
6d180c365c
@ -86,6 +86,7 @@ riotboot/flash-bootloader: riotboot/bootloader/flash
|
||||
riotboot/bootloader/%: $$(if $$(filter riotboot/bootloader/clean,$$@),,$$(BUILDDEPS) pkg-prepare)
|
||||
$(Q)/usr/bin/env -i \
|
||||
QUIET=$(QUIET) PATH="$(PATH)" USER="$(USER)"\
|
||||
INCLUDES="$(INCLUDES)"\
|
||||
EXTERNAL_BOARD_DIRS="$(EXTERNAL_BOARD_DIRS)" BOARD=$(BOARD)\
|
||||
DEBUG_ADAPTER_ID=$(DEBUG_ADAPTER_ID) \
|
||||
IOTLAB_NODE=$(IOTLAB_NODE) \
|
||||
|
@ -116,8 +116,10 @@ void riotboot_slot_dump_addrs(void);
|
||||
static inline size_t riotboot_slot_size(unsigned slot)
|
||||
{
|
||||
switch (slot) {
|
||||
#if NUM_SLOTS >= 1
|
||||
case 0:
|
||||
return SLOT0_LEN;
|
||||
#endif
|
||||
#if NUM_SLOTS == 2
|
||||
case 1:
|
||||
return SLOT1_LEN;
|
||||
|
Loading…
Reference in New Issue
Block a user