Exclude non-board files from list of valid boards.

Fixes #153.
Regression caused by commit cf4efa2c94.
This commit is contained in:
Henry Gabryjelski
2020-07-25 22:24:53 -07:00
parent 0b3c515d9e
commit 1a138da50d
+2 -1
View File
@@ -63,7 +63,8 @@ GDB_BMP = $(GDB) -ex 'target extended-remote $(BMP_PORT)' -ex 'monitor swdp_scan
#---------------------------------
# Select the board to build
#---------------------------------
BOARD_LIST = $(sort $(subst src/boards/,,$(wildcard src/boards/*)))
# Note: whitespace is not allowed in the filenames... it WILL break this part of the script
BOARD_LIST = $(sort $(filter-out boards.h boards.c,$(notdir $(wildcard src/boards/*))))
ifeq ($(filter $(BOARD),$(BOARD_LIST)),)
$(info You must provide a BOARD parameter with 'BOARD='. Supported boards are:)