diff options
| author | Pieter du Preez <pdupreez@gmail.com> | 2018-09-13 23:44:12 +0200 |
|---|---|---|
| committer | Pieter du Preez <pdupreez@gmail.com> | 2018-09-13 23:44:12 +0200 |
| commit | 2442dafb4fa8a7f0c5212a0d0f6e3fbafb986b29 (patch) | |
| tree | b086cad84443f94ac5df42a05a784b28c209420e /Arduino.mk | |
| parent | 22ca63614d05c8b8037cb037279ee666b5ede8c2 (diff) | |
Moved the PARSE_BOARD macro from Arduino.mk to Common.mk.
There seems to be 3 different macros to parse the boards.txt file.
This patch moves the PARSE_BOARD macro from Arduino.mk to Common.mk.
The PARSE_OPENCM and PARSE_TEENSY macros in Teensy.mk and OpenCM.mk
were removed and the common PARSE_BOARD is now being called from
everywhere.
Advantages of this fix are:
1. Less code, i.e. no redundant parse macros.
2. A single standardized algorithm to parse the boards.txt file.
Diffstat (limited to 'Arduino.mk')
| -rw-r--r-- | Arduino.mk | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -585,11 +585,6 @@ else $(call show_config_variable,BOARD_TAG,[USER]) endif -ifndef PARSE_BOARD - # result = $(call READ_BOARD_TXT, 'boardname', 'parameter') - PARSE_BOARD = $(shell grep -Ev '^\#' $(BOARDS_TXT) | grep -E "^[ \t]*$(1).$(2)=" | cut -d = -f 2 | cut -d : -f 2) -endif - # If NO_CORE is set, then we don't have to parse boards.txt file # But the user might have to define MCU, F_CPU etc ifeq ($(strip $(NO_CORE)),) |
