We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dec128f commit 36c4cc7Copy full SHA for 36c4cc7
ports/atmel-samd/Makefile
@@ -23,8 +23,15 @@
23
# THE SOFTWARE.
24
25
# Select the board to build for.
26
+define boardlist
27
+
28
+$(foreach dir,$(filter-out %.*,$(wildcard boards/*)),$(notdir $(dir)))
29
30
31
+endef
32
33
ifeq ($(BOARD),)
- $(error You must provide a BOARD parameter: $(basename $(wildcard boards/*)))
34
+ $(error You must provide a BOARD parameter: $(boardlist)Rerun with $(MAKE) BOARD=<board>)
35
else
36
ifeq ($(wildcard boards/$(BOARD)/.),)
37
$(error Invalid BOARD specified)
0 commit comments