diff mbox

[4/7] toolchain-external: bump CodeSourcery NIOSII to 2015.11

Message ID 1448123780-30067-4-git-send-email-romain.naour@openwide.fr
State Accepted
Headers show

Commit Message

Romain Naour Nov. 21, 2015, 4:36 p.m. UTC
Some package black list CS NIOSII toolchains, mainly due to _gp link
issue. A follow up patch can remove the restriction case by case.

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
---
 toolchain/toolchain-external/Config.in               | 10 +++++-----
 toolchain/toolchain-external/toolchain-external.hash |  2 +-
 toolchain/toolchain-external/toolchain-external.mk   |  2 +-
 3 files changed, 7 insertions(+), 7 deletions(-)

Comments

Vicente Olivert Riera Nov. 24, 2015, 3:22 p.m. UTC | #1
Dear Romain Naour,

On 21/11/15 16:36, Romain Naour wrote:
> Some package black list CS NIOSII toolchains, mainly due to _gp link
> issue. A follow up patch can remove the restriction case by case.
> 
> Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Reviewed-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Tested-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>

Build a minimal rootfs using that toolchain after applying this patch.

Regards,

Vincent.
Romain Naour Dec. 6, 2015, 8:07 p.m. UTC | #2
Hi Thomas, All,

Le 24/11/2015 16:22, Vicente Olivert Riera a écrit :
> Dear Romain Naour,
> 
> On 21/11/15 16:36, Romain Naour wrote:
>> Some package black list CS NIOSII toolchains, mainly due to _gp link
>> issue. A follow up patch can remove the restriction case by case.
>>

While testing this toolchain, I built libcap-ng package successfully but it
still failed with buildroot internal toolchain with gcc 5.2.

I tried today with gcc 5.3 [1] which contain this patch [2].

So, libcap-ng should depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 for niosII target.
By doing this all niosII/libcap-ng issues are avoided [3] :)

[1] http://patchwork.ozlabs.org/patch/553175/

[2]
https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=3e326557585ffde323867375539f04643fcad29a

[3]
http://autobuild.buildroot.net/results/901/90186d1fe134b804c0101554296b1235dc0ccbb0/build-end.log

>> Signed-off-by: Romain Naour <romain.naour@openwide.fr>
> Reviewed-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
> Tested-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>

Thanks Vicente for the review and testing for this series :)

Best regards,
Romain

> 
> Build a minimal rootfs using that toolchain after applying this patch.
> 
> Regards,
> 
> Vincent.
>
diff mbox

Patch

diff --git a/toolchain/toolchain-external/Config.in b/toolchain/toolchain-external/Config.in
index 6424a8f..9f7a1da 100644
--- a/toolchain/toolchain-external/Config.in
+++ b/toolchain/toolchain-external/Config.in
@@ -502,7 +502,7 @@  comment "Sourcery CodeBench toolchains are only available for MIPS/MIPS64 o32 an
 	depends on !BR2_STATIC_LIBS
 
 config BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII
-	bool "Sourcery CodeBench Nios-II 2014.05"
+	bool "Sourcery CodeBench Nios-II 2015.11"
 	depends on BR2_nios2
 	depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
 	depends on !BR2_STATIC_LIBS
@@ -510,12 +510,12 @@  config BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII
 	select BR2_TOOLCHAIN_HAS_NATIVE_RPC
 	select BR2_INSTALL_LIBSTDCPP
 	select BR2_HOSTARCH_NEEDS_IA32_LIBS
-	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
-	select BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
+	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_2
+	select BR2_TOOLCHAIN_GCC_AT_LEAST_5
 	help
 	  Sourcery CodeBench toolchain for the Nios-II architecture,
-	  from Mentor Graphics. It uses gcc 4.8.3, binutils 2.24.51,
-	  glibc 2.19.90, gdb 7.7.50 and kernel headers 3.12.
+	  from Mentor Graphics. It uses gcc 5.2, binutils 2.25.51,
+	  glibc 2.22, gdb 7.10.50 and kernel headers 4.2.
 
 config BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_POWERPC201203
 	bool "Sourcery CodeBench PowerPC 2012.03"
diff --git a/toolchain/toolchain-external/toolchain-external.hash b/toolchain/toolchain-external/toolchain-external.hash
index dd95ade..1dc92ef 100644
--- a/toolchain/toolchain-external/toolchain-external.hash
+++ b/toolchain/toolchain-external/toolchain-external.hash
@@ -23,7 +23,7 @@  sha256 395f1c504a8fb6b7a10663143627b7eee2edc8fd884aa13c4b8505a3623960f5  arm-201
 sha256 8455854d3b3abbc2328e6c061c6b9625ef8f9c1f236db9f1771877715bd70b9b  arm-2013.11-33-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
 sha256 39ee0e789034334ecc89af94e838e3a4815400ac5ff980f808f466b04778532e  arm-2014.05-29-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
 # NiosII
-sha256 fb02fe3d595bd80a6e0ebc9d59a64010d84ae8d13f47e241b3a335f42b0414dc  sourceryg++-2014.05-47-nios2-linux-gnu-i686-pc-linux-gnu.tar.bz2
+sha256 cc47745dc1264fcb8fb98fb1315ab772ab98691396021c455229b58abaf887f5  sourceryg++-2015.11-27-nios2-linux-gnu-i686-pc-linux-gnu.tar.bz2
 # PowerPC
 sha256 d68d1a2a055ece3824a1a11fcc0a8e813ee1d215025247cce0d877caa12c4b54  freescale-2010.09-55-powerpc-linux-gnu-i686-pc-linux-gnu.tar.bz2
 sha256 525e1f53abbf65c2974ae9af762c45bb38520fe5fc50e968a23fe6a18e9eec04  freescale-2011.03-38-powerpc-linux-gnu-i686-pc-linux-gnu.tar.bz2
diff --git a/toolchain/toolchain-external/toolchain-external.mk b/toolchain/toolchain-external/toolchain-external.mk
index 5ab54c0..158f9bd 100644
--- a/toolchain/toolchain-external/toolchain-external.mk
+++ b/toolchain/toolchain-external/toolchain-external.mk
@@ -353,7 +353,7 @@  TOOLCHAIN_EXTERNAL_SOURCE = mips-2015.05-18-mips-linux-gnu-i686-pc-linux-gnu.tar
 TOOLCHAIN_EXTERNAL_POST_INSTALL_STAGING_HOOKS += TOOLCHAIN_EXTERNAL_CODESOURCERY_MIPS201505_LIB_NAMES_FIX
 else ifeq ($(BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII),y)
 TOOLCHAIN_EXTERNAL_SITE = http://sourcery.mentor.com/public/gnu_toolchain/nios2-linux-gnu
-TOOLCHAIN_EXTERNAL_SOURCE = sourceryg++-2014.05-47-nios2-linux-gnu-i686-pc-linux-gnu.tar.bz2
+TOOLCHAIN_EXTERNAL_SOURCE = sourceryg++-2015.11-27-nios2-linux-gnu-i686-pc-linux-gnu.tar.bz2
 else ifeq ($(BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_POWERPC201009),y)
 TOOLCHAIN_EXTERNAL_SITE = http://sourcery.mentor.com/public/gnu_toolchain/powerpc-linux-gnu
 TOOLCHAIN_EXTERNAL_SOURCE = freescale-2010.09-55-powerpc-linux-gnu-i686-pc-linux-gnu.tar.bz2