Skip to content

Commit e2f63c0

Browse files
committed
Merge pull request #412 from drewhutchison/master
Add target to display submenu options parsed out of boards.txt
2 parents c0fe818 + a1832e2 commit e2f63c0

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

Arduino.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1495,6 +1495,9 @@ size: $(TARGET_HEX)
14951495
show_boards:
14961496
@$(CAT) $(BOARDS_TXT) | grep -E '^[a-zA-Z0-9_\-]+.name' | sort -uf | sed 's/.name=/:/' | column -s: -t
14971497

1498+
show_submenu:
1499+
@$(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
1500+
14981501
monitor:
14991502
ifeq ($(MONITOR_CMD), 'putty')
15001503
ifneq ($(strip $(MONITOR_PARMS)),)
@@ -1543,6 +1546,7 @@ help:
15431546
make reset - reset the Arduino by tickling DTR or changing baud\n\
15441547
rate on the serial port.\n\
15451548
make show_boards - list all the boards defined in boards.txt\n\
1549+
make show_submenu - list all board submenus defined in boards.txt\n\
15461550
make monitor - connect to the Arduino's serial port\n\
15471551
make size - show the size of the compiled output (relative to\n\
15481552
resources, if you have a patched avr-size).\n\

HISTORY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ I tried to give credit whenever possible. If I have missed anyone, kindly add it
66

77
### In Development
88

9+
- New: Add show_submenu target (https://github.com/drewhutchison)
910
- New: Add AVR Dragon to list of ISP's without a port (https://github.com/mtnocean)
1011
- New: Add more board examples to Blink demo (https://github.com/sej7278)
1112
- New: Add option to split avrdude MCU from avr-gcc MCU (Issue #357) (https://github.com/hhgarnes)

arduino-mk-vars.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ BOARD_TAG = uno or mega2560
281281

282282
**Description:**
283283

284-
1.5+ submenu as listed in `boards.txt`
284+
1.5+ submenu as listed in `boards.txt` or `make show_submenu`.
285285

286286
**Example:**
287287

0 commit comments

Comments
 (0)