From 63bc1bed93fa8fad26aa49511cad1aeeec2eb48a Mon Sep 17 00:00:00 2001
From: Thibaut VIARD <thibaut.viard@atmel.com>
Date: Tue, 29 Apr 2014 16:51:04 +0200
Subject: [PATCH]  fix gcc.mk with CHIP=>DEVICE

---
 cores/arduino/validation/build_gcc/gcc.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cores/arduino/validation/build_gcc/gcc.mk b/cores/arduino/validation/build_gcc/gcc.mk
index 2af2174b..a9e7572e 100644
--- a/cores/arduino/validation/build_gcc/gcc.mk
+++ b/cores/arduino/validation/build_gcc/gcc.mk
@@ -47,7 +47,7 @@ CFLAGS += -Wunreachable-code
 CFLAGS += -Wcast-align
 
 CFLAGS += --param max-inline-insns-single=500 -mcpu=cortex-m0plus -mthumb -mlong-calls -ffunction-sections -nostdlib -std=c99
-CFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(CHIP) -D$(VARIANT)
+CFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(DEVICE) -D$(VARIANT)
 
 # To reduce application size use only integer printf function.
 CFLAGS += -Dprintf=iprintf
@@ -68,7 +68,7 @@ CPPFLAGS += -Wpacked -Wredundant-decls -Winline -Wlong-long
 
 #-fno-rtti -fno-exceptions
 CPPFLAGS += --param max-inline-insns-single=500 -mcpu=cortex-m0plus -mthumb -mlong-calls -ffunction-sections -fdata-sections -std=c++98
-CPPFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(CHIP)
+CPPFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(DEVICE)
 
 # To reduce application size use only integer printf function.
 CPPFLAGS += -Dprintf=iprintf
-- 
GitLab