From 2442dafb4fa8a7f0c5212a0d0f6e3fbafb986b29 Mon Sep 17 00:00:00 2001 From: Pieter du Preez Date: Thu, 13 Sep 2018 23:44:12 +0200 Subject: 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. --- Arduino.mk | 5 ----- 1 file changed, 5 deletions(-) (limited to 'Arduino.mk') diff --git a/Arduino.mk b/Arduino.mk index fa82b0e..553c5a3 100644 --- a/Arduino.mk +++ b/Arduino.mk @@ -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)),) -- cgit v1.2.3