fix output layout of board list

This commit is contained in:
Rose Hooper 2022-11-01 00:18:46 -04:00
parent dec128f508
commit 36c4cc7d30
1 changed files with 8 additions and 1 deletions

View File

@ -23,8 +23,15 @@
# THE SOFTWARE. # THE SOFTWARE.
# Select the board to build for. # Select the board to build for.
define boardlist
$(foreach dir,$(filter-out %.*,$(wildcard boards/*)),$(notdir $(dir)))
endef
ifeq ($(BOARD),) ifeq ($(BOARD),)
$(error You must provide a BOARD parameter: $(basename $(wildcard boards/*))) $(error You must provide a BOARD parameter: $(boardlist)Rerun with $(MAKE) BOARD=<board>)
else else
ifeq ($(wildcard boards/$(BOARD)/.),) ifeq ($(wildcard boards/$(BOARD)/.),)
$(error Invalid BOARD specified) $(error Invalid BOARD specified)