From 1a138da50d34f2b0e44fc092525dce6ee3239bd3 Mon Sep 17 00:00:00 2001 From: Henry Gabryjelski Date: Sat, 25 Jul 2020 22:24:53 -0700 Subject: [PATCH] Exclude non-board files from list of valid boards. Fixes #153. Regression caused by commit cf4efa2c94098908f127699746b5cb9d1538df1d. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 89e6514..6567677 100644 --- a/Makefile +++ b/Makefile @@ -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:)