aboutsummaryrefslogtreecommitdiff
path: root/Arduino.mk
diff options
context:
space:
mode:
authorSudar Muthu <sudar@sudarmuthu.com>2016-02-20 16:04:19 +0530
committerSudar Muthu <sudar@sudarmuthu.com>2016-02-20 16:04:19 +0530
commite2f63c0854f0fae21a2b251542a295b476db4307 (patch)
tree778206cf4893d85cee87b522e2cbc75561c36027 /Arduino.mk
parentc0fe818d8592faa99994ae6f5821c7d3cff59161 (diff)
parenta1832e2759a47f989d9d3e242f76bde8ff6977ab (diff)
Merge pull request #412 from drewhutchison/master
Add target to display submenu options parsed out of boards.txt
Diffstat (limited to 'Arduino.mk')
-rw-r--r--Arduino.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/Arduino.mk b/Arduino.mk
index ab7ecd9..bd75ea4 100644
--- a/Arduino.mk
+++ b/Arduino.mk
@@ -1495,6 +1495,9 @@ size: $(TARGET_HEX)
show_boards:
@$(CAT) $(BOARDS_TXT) | grep -E '^[a-zA-Z0-9_\-]+.name' | sort -uf | sed 's/.name=/:/' | column -s: -t
+show_submenu:
+ @$(CAT) $(BOARDS_TXT) | grep -E '[a-zA-Z0-9_\-]+.menu.cpu.[a-zA-Z0-9_\-]+=' | sort -uf | sed 's/.menu.cpu./:/' | sed 's/=/:/' | column -s: -t
+
monitor:
ifeq ($(MONITOR_CMD), 'putty')
ifneq ($(strip $(MONITOR_PARMS)),)
@@ -1543,6 +1546,7 @@ help:
make reset - reset the Arduino by tickling DTR or changing baud\n\
rate on the serial port.\n\
make show_boards - list all the boards defined in boards.txt\n\
+ make show_submenu - list all board submenus defined in boards.txt\n\
make monitor - connect to the Arduino's serial port\n\
make size - show the size of the compiled output (relative to\n\
resources, if you have a patched avr-size).\n\