diff --git a/arduino-mk/Arduino.mk b/arduino-mk/Arduino.mk index 03ad3b1..f218b63 100644 --- a/arduino-mk/Arduino.mk +++ b/arduino-mk/Arduino.mk @@ -292,10 +292,6 @@ ifndef BOARD BOARD = $(shell $(PARSE_BOARD), $(BOARD_TAG), board) endif -ifndef LDSCRIPT -LDSCRIPT = $(shell $(PARSE_BOARD), $(BOARD_TAG), ldscript) -endif - # Everything gets built in here OBJDIR = build-cli diff --git a/arduino-mk/chipKIT.mk b/arduino-mk/chipKIT.mk index 1b13311..d3c378c 100644 --- a/arduino-mk/chipKIT.mk +++ b/arduino-mk/chipKIT.mk @@ -46,6 +46,7 @@ OBJDUMP_NAME = pic32-objdump OBJCOPY_NAME = pic32-objcopy MCU_FLAG_NAME=mprocessor +LDSCRIPT = $(call PARSE_BOARD,$(BOARD_TAG),ldscript) LDSCRIPT_FILE = $(ARDUINO_CORE_PATH)/$(LDSCRIPT) EXTRA_LDFLAGS = -T$(ARDUINO_CORE_PATH)/$(LDSCRIPT) EXTRA_CPPFLAGS = -mno-smart-io -D$(BOARD)