Skip to content

Commit

Permalink
Merge pull request RIOT-OS#20210 from Enoch247/fix-riotboot
Browse files Browse the repository at this point in the history
riotboot: fix build errors
  • Loading branch information
benpicco authored Jan 2, 2024
2 parents 59eb017 + 9f27a5a commit 6d180c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions makefiles/boot/riotboot.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down
2 changes: 2 additions & 0 deletions sys/include/riotboot/slot.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6d180c3

Please sign in to comment.