From d0033a5d20049ac3a01e09adc2cb98a6c677e6b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Nohlg=C3=A5rd?= Date: Mon, 21 Mar 2016 09:25:42 +0100 Subject: [PATCH] avr: Use TARGET_ARCH instead of custom toolchain specification --- boards/arduino-mega2560/Makefile.include | 9 --------- cpu/atmega_common/Makefile.include | 2 ++ 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/boards/arduino-mega2560/Makefile.include b/boards/arduino-mega2560/Makefile.include index 1827bced6d..3ca09bf8d7 100644 --- a/boards/arduino-mega2560/Makefile.include +++ b/boards/arduino-mega2560/Makefile.include @@ -1,15 +1,6 @@ # define the cpu used by the arduino mega2560 board export CPU = atmega2560 -# define tools used for building the project -export PREFIX = avr- -export CC = $(PREFIX)gcc -export CXX = $(PREFIX)c++ -export AR = $(PREFIX)ar -export AS = $(PREFIX)as -export LINK = $(PREFIX)gcc -export SIZE = $(PREFIX)size -export OBJCOPY = $(PREFIX)objcopy export TERMPROG = $(RIOTBASE)/dist/tools/pyterm/pyterm export TERMFLAGS = -b 9600 -p $(PORT) diff --git a/cpu/atmega_common/Makefile.include b/cpu/atmega_common/Makefile.include index 02ce40deac..efd66a0dbf 100644 --- a/cpu/atmega_common/Makefile.include +++ b/cpu/atmega_common/Makefile.include @@ -1,3 +1,5 @@ +# Target architecture for the build. Use avr if you are unsure. +export TARGET_ARCH ?= avr # include module specific includes export INCLUDES += -I$(RIOTCPU)/atmega_common/include -isystem$(RIOTCPU)/atmega_common/avr-libc-extra