Skip to content

Commit cb04d53

Browse files
authored
Merge pull request #154 from henrygab/fix_makefile
Exclude non-board files from list of valid boards.
2 parents 0b3c515 + 1a138da commit cb04d53

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ GDB_BMP = $(GDB) -ex 'target extended-remote $(BMP_PORT)' -ex 'monitor swdp_scan
6363
#---------------------------------
6464
# Select the board to build
6565
#---------------------------------
66-
BOARD_LIST = $(sort $(subst src/boards/,,$(wildcard src/boards/*)))
66+
# Note: whitespace is not allowed in the filenames... it WILL break this part of the script
67+
BOARD_LIST = $(sort $(filter-out boards.h boards.c,$(notdir $(wildcard src/boards/*))))
6768

6869
ifeq ($(filter $(BOARD),$(BOARD_LIST)),)
6970
$(info You must provide a BOARD parameter with 'BOARD='. Supported boards are:)

0 commit comments

Comments
 (0)