binutils: fix target binutils on ARC
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 15 Mar 2015 15:56:00 +0000 (16:56 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 15 Mar 2015 15:58:17 +0000 (16:58 +0100)
When an external toolchain is used on ARC, BR2_BINUTILS_VERSION is
undefined, so we use binutils 2.22, which doesn't support ARC and
anyway isn't available from the ARC download location.

So, let's defined a default ARC binutils version in binutils.mk.

Fixes:

  http://autobuild.buildroot.org/results/52a/52abadacd7aab2d5c11d094937f28198bf220662/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/binutils/binutils.mk

index ac62f1f0d20a1c3e0ff4d26bad7840645cec1ffc..41115834625daf70ef7130e1ab59a159d7bf8752 100644 (file)
@@ -8,8 +8,12 @@
 # If not, we do like other packages
 BINUTILS_VERSION = $(call qstrip,$(BR2_BINUTILS_VERSION))
 ifeq ($(BINUTILS_VERSION),)
+ifeq ($(BR2_arc),y)
+BINUTILS_VERSION = arc-2014.12
+else
 BINUTILS_VERSION = 2.22
 endif
+endif # BINUTILS_VERSION
 
 ifeq ($(BR2_arc),y)
 BINUTILS_SITE = $(call github,foss-for-synopsys-dwc-arc-processors,binutils-gdb,$(BINUTILS_VERSION))