Skip to content

Commit 36c4cc7

Browse files
committed
fix output layout of board list
1 parent dec128f commit 36c4cc7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

ports/atmel-samd/Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,15 @@
2323
# THE SOFTWARE.
2424

2525
# Select the board to build for.
26+
define boardlist
27+
28+
$(foreach dir,$(filter-out %.*,$(wildcard boards/*)),$(notdir $(dir)))
29+
30+
31+
endef
32+
2633
ifeq ($(BOARD),)
27-
$(error You must provide a BOARD parameter: $(basename $(wildcard boards/*)))
34+
$(error You must provide a BOARD parameter: $(boardlist)Rerun with $(MAKE) BOARD=<board>)
2835
else
2936
ifeq ($(wildcard boards/$(BOARD)/.),)
3037
$(error Invalid BOARD specified)

0 commit comments

Comments
 (0)