From 01493f4e23a55e3117ee3e71b12cad35ecfa681d Mon Sep 17 00:00:00 2001 From: "Tokita, Hiroshi" Date: Tue, 20 Oct 2020 09:57:36 +0900 Subject: [PATCH] Add -DARDUINO_VARIANT definition --- Arduino.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Arduino.mk b/Arduino.mk index e4694af..08af529 100644 --- a/Arduino.mk +++ b/Arduino.mk @@ -1173,7 +1173,7 @@ endif # Using += instead of =, so that CPPFLAGS can be set per sketch level CPPFLAGS += -$(MCU_FLAG_NAME)=$(MCU) -DF_CPU=$(F_CPU) -DARDUINO=$(ARDUINO_VERSION) -DARDUINO_$(BOARD) $(ARDUINO_ARCH_FLAG) \ - "-DARDUINO_BOARD=\"$(BOARD)\"" \ + "-DARDUINO_BOARD=\"$(BOARD)\"" "-DARDUINO_VARIANT=\"$(VARIANT)\"" \ -I$(ARDUINO_CORE_PATH) -I$(ARDUINO_CORE_PATH)/api -I$(ARDUINO_VAR_PATH)/$(VARIANT) \ $(SYS_INCLUDES) $(PLATFORM_INCLUDES) $(USER_INCLUDES) -Wall -ffunction-sections \ -fdata-sections