Skip to content

Commit

Permalink
bootloaders/riotboot: add INCLUDES to build
Browse files Browse the repository at this point in the history
If external boards defined in one of the EXTERNAL_BOARD_DIRS folders
pulls in a header file external to the RIOT tree and added to the build
via the INCLUDES macro, the build will fail to find the header.

This patch adds the INCLUDES macro to the bootloader build step so that
the headers can be found.
  • Loading branch information
Enoch247 committed Dec 21, 2023
1 parent 59773bb commit 7b66eb2
Showing 1 changed file with 1 addition 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

0 comments on commit 7b66eb2

Please sign in to comment.