Fix build.core parsing

Disregard anything before first colon.
E.g. build.core = arduino:arduino results in CORE = arduino
Print CORE.
This commit is contained in:
Gabrielius Mickevicius 2014-12-30 17:40:15 +02:00
parent de602e8b61
commit e639f81b6c

View file

@ -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