@@ -568,7 +568,7 @@ endif
568
568
569
569
ifndef PARSE_BOARD
570
570
# result = $(call READ_BOARD_TXT, 'boardname', 'parameter')
571
- PARSE_BOARD = $(shell grep -v '^\#' $(BOARDS_TXT ) | grep "^[ \t]* $(1 ) .$(2 ) =" | cut -d = -f 2)
571
+ PARSE_BOARD = $(shell grep -Ev '^\#' $(BOARDS_TXT ) | grep -E "^[ \t]* $(1 ) .$(2 ) =" | cut -d = -f 2)
572
572
endif
573
573
574
574
# If NO_CORE is set, then we don't have to parse boards.txt file
@@ -587,7 +587,7 @@ ifeq ($(strip $(NO_CORE)),)
587
587
588
588
# Which variant ? This affects the include path
589
589
ifndef VARIANT
590
- VARIANT := $(call PARSE_BOARD,$(BOARD_TAG ) ,menu.cpu.$(BOARD_SUB ) .build.variant)
590
+ VARIANT := $(call PARSE_BOARD,$(BOARD_TAG ) ,menu.(chip| cpu) .$(BOARD_SUB ) .build.variant)
591
591
ifndef VARIANT
592
592
VARIANT := $(call PARSE_BOARD,$(BOARD_TAG ) ,build.variant)
593
593
endif
@@ -597,7 +597,7 @@ ifeq ($(strip $(NO_CORE)),)
597
597
endif
598
598
599
599
# see if we are a caterina device like leonardo or micro
600
- CATERINA := $(findstring caterina,$(call PARSE_BOARD,$(BOARD_TAG ) ,menu.cpu.$(BOARD_SUB ) .bootloader.file) )
600
+ CATERINA := $(findstring caterina,$(call PARSE_BOARD,$(BOARD_TAG ) ,menu.(chip| cpu) .$(BOARD_SUB ) .bootloader.file) )
601
601
ifndef CATERINA
602
602
# 1.5+ method if not a submenu
603
603
CATERINA := $(findstring caterina,$(call PARSE_BOARD,$(BOARD_TAG ) ,bootloader.file) )
@@ -609,14 +609,14 @@ ifeq ($(strip $(NO_CORE)),)
609
609
610
610
# processor stuff
611
611
ifndef MCU
612
- MCU := $(call PARSE_BOARD,$(BOARD_TAG ) ,menu.cpu.$(BOARD_SUB ) .build.mcu)
612
+ MCU := $(call PARSE_BOARD,$(BOARD_TAG ) ,menu.(chip| cpu) .$(BOARD_SUB ) .build.mcu)
613
613
ifndef MCU
614
614
MCU := $(call PARSE_BOARD,$(BOARD_TAG ) ,build.mcu)
615
615
endif
616
616
endif
617
617
618
618
ifndef F_CPU
619
- F_CPU := $(call PARSE_BOARD,$(BOARD_TAG ) ,menu.cpu.$(BOARD_SUB ) .build.f_cpu)
619
+ F_CPU := $(call PARSE_BOARD,$(BOARD_TAG ) ,menu.(chip| cpu) .$(BOARD_SUB ) .build.f_cpu)
620
620
ifndef F_CPU
621
621
F_CPU := $(call PARSE_BOARD,$(BOARD_TAG ) ,build.f_cpu)
622
622
endif
@@ -635,14 +635,14 @@ ifeq ($(strip $(NO_CORE)),)
635
635
636
636
# normal programming info
637
637
ifndef AVRDUDE_ARD_PROGRAMMER
638
- AVRDUDE_ARD_PROGRAMMER := $(call PARSE_BOARD,$(BOARD_TAG ) ,menu.cpu.$(BOARD_SUB ) .upload.protocol)
638
+ AVRDUDE_ARD_PROGRAMMER := $(call PARSE_BOARD,$(BOARD_TAG ) ,menu.(chip| cpu) .$(BOARD_SUB ) .upload.protocol)
639
639
ifndef AVRDUDE_ARD_PROGRAMMER
640
640
AVRDUDE_ARD_PROGRAMMER := $(call PARSE_BOARD,$(BOARD_TAG ) ,upload.protocol)
641
641
endif
642
642
endif
643
643
644
644
ifndef AVRDUDE_ARD_BAUDRATE
645
- AVRDUDE_ARD_BAUDRATE := $(call PARSE_BOARD,$(BOARD_TAG ) ,menu.cpu.$(BOARD_SUB ) .upload.speed)
645
+ AVRDUDE_ARD_BAUDRATE := $(call PARSE_BOARD,$(BOARD_TAG ) ,menu.(chip| cpu) .$(BOARD_SUB ) .upload.speed)
646
646
ifndef AVRDUDE_ARD_BAUDRATE
647
647
AVRDUDE_ARD_BAUDRATE := $(call PARSE_BOARD,$(BOARD_TAG ) ,upload.speed)
648
648
endif
@@ -654,21 +654,21 @@ ifeq ($(strip $(NO_CORE)),)
654
654
endif
655
655
656
656
ifndef ISP_HIGH_FUSE
657
- ISP_HIGH_FUSE := $(call PARSE_BOARD,$(BOARD_TAG ) ,menu.cpu.$(BOARD_SUB ) .bootloader.high_fuses)
657
+ ISP_HIGH_FUSE := $(call PARSE_BOARD,$(BOARD_TAG ) ,menu.(chip| cpu) .$(BOARD_SUB ) .bootloader.high_fuses)
658
658
ifndef ISP_HIGH_FUSE
659
659
ISP_HIGH_FUSE := $(call PARSE_BOARD,$(BOARD_TAG ) ,bootloader.high_fuses)
660
660
endif
661
661
endif
662
662
663
663
ifndef ISP_LOW_FUSE
664
- ISP_LOW_FUSE := $(call PARSE_BOARD,$(BOARD_TAG ) ,menu.cpu.$(BOARD_SUB ) .bootloader.low_fuses)
664
+ ISP_LOW_FUSE := $(call PARSE_BOARD,$(BOARD_TAG ) ,menu.(chip| cpu) .$(BOARD_SUB ) .bootloader.low_fuses)
665
665
ifndef ISP_LOW_FUSE
666
666
ISP_LOW_FUSE := $(call PARSE_BOARD,$(BOARD_TAG ) ,bootloader.low_fuses)
667
667
endif
668
668
endif
669
669
670
670
ifndef ISP_EXT_FUSE
671
- ISP_EXT_FUSE := $(call PARSE_BOARD,$(BOARD_TAG ) ,menu.cpu.$(BOARD_SUB ) .bootloader.extended_fuses)
671
+ ISP_EXT_FUSE := $(call PARSE_BOARD,$(BOARD_TAG ) ,menu.(chip| cpu) .$(BOARD_SUB ) .bootloader.extended_fuses)
672
672
ifndef ISP_EXT_FUSE
673
673
ISP_EXT_FUSE := $(call PARSE_BOARD,$(BOARD_TAG ) ,bootloader.extended_fuses)
674
674
endif
@@ -679,7 +679,7 @@ ifeq ($(strip $(NO_CORE)),)
679
679
endif
680
680
681
681
ifndef BOOTLOADER_FILE
682
- BOOTLOADER_FILE := $(call PARSE_BOARD,$(BOARD_TAG ) ,menu.cpu.$(BOARD_SUB ) .bootloader.file)
682
+ BOOTLOADER_FILE := $(call PARSE_BOARD,$(BOARD_TAG ) ,menu.(chip| cpu) .$(BOARD_SUB ) .bootloader.file)
683
683
ifndef BOOTLOADER_FILE
684
684
BOOTLOADER_FILE := $(call PARSE_BOARD,$(BOARD_TAG ) ,bootloader.file)
685
685
endif
@@ -690,7 +690,7 @@ ifeq ($(strip $(NO_CORE)),)
690
690
endif
691
691
692
692
ifndef HEX_MAXIMUM_SIZE
693
- HEX_MAXIMUM_SIZE := $(call PARSE_BOARD,$(BOARD_TAG ) ,menu.cpu.$(BOARD_SUB ) .upload.maximum_size)
693
+ HEX_MAXIMUM_SIZE := $(call PARSE_BOARD,$(BOARD_TAG ) ,menu.(chip| cpu) .$(BOARD_SUB ) .upload.maximum_size)
694
694
ifndef HEX_MAXIMUM_SIZE
695
695
HEX_MAXIMUM_SIZE := $(call PARSE_BOARD,$(BOARD_TAG ) ,upload.maximum_size)
696
696
endif
@@ -1496,7 +1496,7 @@ show_boards:
1496
1496
@$(CAT ) $(BOARDS_TXT ) | grep -E ' ^[a-zA-Z0-9_\-]+.name' | sort -uf | sed ' s/.name=/:/' | column -s: -t
1497
1497
1498
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
1499
+ @$(CAT ) $(BOARDS_TXT ) | grep -E ' [a-zA-Z0-9_\-]+.menu.( cpu|chip) .[a-zA-Z0-9_\-]+=' | sort -uf | sed ' s/.menu.( cpu|chip) ./:/' | sed ' s/=/:/' | column -s: -t
1500
1500
1501
1501
monitor :
1502
1502
ifeq ($(MONITOR_CMD ) , 'putty')
0 commit comments