From e639f81b6c52b2092a4682cdc93efe5832c3e879 Mon Sep 17 00:00:00 2001 From: Gabrielius Mickevicius Date: Tue, 30 Dec 2014 17:40:15 +0200 Subject: Fix build.core parsing Disregard anything before first colon. E.g. build.core = arduino:arduino results in CORE = arduino Print CORE. --- Arduino.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Arduino.mk b/Arduino.mk index 8c878a4..a5b9bba 100644 --- a/Arduino.mk +++ b/Arduino.mk @@ -563,7 +563,10 @@ ifeq ($(strip $(NO_CORE)),) # 'robot', but can also hold 'tiny', for example, if using # https://code.google.com/p/arduino-tiny alternate core. ifndef CORE - CORE = $(call PARSE_BOARD,$(BOARD_TAG),build.core) + CORE = $(shell echo $(call PARSE_BOARD,$(BOARD_TAG),build.core) | cut -d : -f 2) + $(call show_config_variable,CORE,[COMPUTED],(from build.core)) + else + $(call show_config_variable,CORE,[USER]) endif # Which variant ? This affects the include path -- cgit v1.2.3