binutils: Allow upstream 2.29 to be chosen for ARC
PATCH 1/1 binutils: Allow upstream 2.29 to be chosen for ARC
As of today quite a lot of ARC stuff got merged in upsream such that we may finally use upstream realease for building and even running Linux kernel and rootfs built with vanilla binutils.
Essentially upstream release is still a bit behind our GitHub-based releases but let's try to use vanilla version and if we're lucky enough with just a small set of back-ported patches we'll be able to use vanilla release(s) for everything in Buildroot.
--- package/binutils/Config.in.host | 11 ++++++++--- package/binutils/binutils.mk | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-)
package/binutils/Config.in.host +8 -3
@@ -2,8 +2,8 @@ comment "Binutils Options" choice prompt "Binutils Version" - default BR2_BINUTILS_VERSION_2_28_X - depends on !BR2_arc + default BR2_BINUTILS_VERSION_2_28_X if !BR2_arc + default BR2_BINUTILS_VERSION_ARC if BR2_arc help Select the version of binutils you wish to use.
@@ -11,18 +11,23 @@ config BR2_BINUTILS_VERSION_2_27_X bool "binutils 2.27" # binutils 2.27 triggers a bug in elf2flt on ARM/noMMU depends on !(BR2_arm && !BR2_USE_MMU) + depends on !BR2_arc config BR2_BINUTILS_VERSION_2_28_X bool "binutils 2.28.1" + depends on !BR2_arc config BR2_BINUTILS_VERSION_2_29_X bool "binutils 2.29.1" +config BR2_BINUTILS_VERSION_ARC + bool "binutils arc (2.29)" + depends on BR2_arc endchoice config BR2_BINUTILS_VERSION string - default "arc-2017.09-release" if BR2_arc + default "arc-2017.09-release" if BR2_BINUTILS_VERSION_ARC default "2.27" if BR2_BINUTILS_VERSION_2_27_X default "2.28.1" if BR2_BINUTILS_VERSION_2_28_X default "2.29.1" if BR2_BINUTILS_VERSION_2_29_X
package/binutils/binutils.mk +1 -1
@@ -15,7 +15,7 @@ BINUTILS_VERSION = 2.28.1 endif endif # BINUTILS_VERSION -ifeq ($(BR2_arc),y) +ifneq ($(BR2_BINUTILS_VERSION_ARC),) BINUTILS_SITE = $(call github,foss-for-synopsys-dwc-arc-processors,binutils-gdb,$(BINUTILS_VERSION)) BINUTILS_SOURCE = binutils-$(BINUTILS_VERSION).tar.gz BINUTILS_FROM_GIT = y
Signature · 1 line
2.10.2
PATCH 1/1 binutils: Allow upstream 2.29 to be chosen for ARC
Small nit...
On 09-11-17 22:59, Alexey Brodkin wrote:
[snip]
package/binutils/binutils.mk BINUTILS_VERSION = 2.28.1 · line 18
Quoted 10 lines
package/binutils/binutils.mk +1
-1@@ -15,7 +15,7 @@ BINUTILS_VERSION = 2.28.1 endif endif # BINUTILS_VERSION -ifeq ($(BR2_arc),y) +ifneq ($(BR2_BINUTILS_VERSION_ARC),)
Use positive logic:
ifeq ($(BR2_BINUTILS_VERSION_ARC),y)
Regards,
Arnout
Quoted 3 lines
package/binutils/binutils.mk +0
-0BINUTILS_SITE = $(call github,foss-for-synopsys-dwc-arc-processors,binutils-gdb,$(BINUTILS_VERSION)) BINUTILS_SOURCE = binutils-$(BINUTILS_VERSION).tar.gz BINUTILS_FROM_GIT = y
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
PATCH 1/1 binutils: Allow upstream 2.29 to be chosen for ARC
Hi Arnout,
Quoted 18 lines · Arnout Vandecappelle
?Small nit...
On 09-11-17 22:59, Alexey Brodkin wrote:
[snip]package/binutils/binutils.mk BINUTILS_VERSION = 2.28.1 · line 18
Quoted 11 lines
package/binutils/binutils.mk +0
-0@@ -15,7 +15,7 @@ BINUTILS_VERSION = 2.28.1?endif
?endif #BINUTILS_VERSION
?package/binutils/binutils.mk +1
-1-ifeq ($(BR2_arc),y) +ifneq ($(BR2_BINUTILS_VERSION_ARC),)?Use positive logic:
Quoted 1 line
ifeq ($(BR2_BINUTILS_VERSION_ARC),y)
For some reason I used to do it the other way around :) But indeed may follow your suggestion.
-Alexey