binutils: fix build with external toolchains on avr32
authorPeter Korsgaard <jacmet@sunsite.dk>
Sat, 19 May 2012 06:46:28 +0000 (08:46 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sat, 19 May 2012 06:46:28 +0000 (08:46 +0200)
Fixes http://autobuild.buildroot.org/results/7f0545a7c824bf0523ab3506db83f7f5c930d63d/

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/binutils/binutils.mk

index 0a5a948a9c1aed9827875f301d060faeb1284966..1c8a79d07dd14a1a612950793ec5937c5bb0e058 100644 (file)
@@ -8,8 +8,13 @@
 # If not, we do like other packages
 BINUTILS_VERSION = $(call qstrip,$(BR2_BINUTILS_VERSION))
 ifeq ($(BINUTILS_VERSION),)
+ifeq ($(BR2_avr32),y)
+# avr32 uses a special version
+BINUTILS_VERSION = 2.18-avr32-1.0.1
+else
 BINUTILS_VERSION = 2.21
 endif
+endif
 
 BINUTILS_SOURCE = binutils-$(BINUTILS_VERSION).tar.bz2
 BINUTILS_SITE = $(BR2_GNU_MIRROR)/binutils