* [Buildroot] [PATCH 2/6] uClibc: remove useless linuxthreads-errno-fix patch
From: Thomas Petazzoni @ 2012-11-15 16:02 UTC (permalink / raw)
To: buildroot
In-Reply-To: <878va250xn.fsf@dell.be.48ers.dk>
On Thu, 15 Nov 2012 16:40:52 +0100, Peter Korsgaard wrote:
> >>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
>
> Thomas> This patch has since a long time been merged upstream in uClibc, so it
> Thomas> cannot apply on any of the recent uClibc snapshots.
>
> I like it how you call my patches useless :P
Sorry if the wording sounded rude. The patch has been merged upstream
since quite some time, so it has become useless as a separate patch in
Buildroot, but it certainly was useful since it got merged upstream.
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply
* [Buildroot] [PATCH] binutils: add version 2.23.1
From: Gustavo Zacarias @ 2012-11-15 16:01 UTC (permalink / raw)
To: buildroot
In-Reply-To: <87haoq510h.fsf@dell.be.48ers.dk>
On 11/15/2012 12:39 PM, Peter Korsgaard wrote:
> I agree. Gustavo, could you respin the patch to replace 2.23 with 2.23.1
> instead?
And what about 2.20?
Hint: you can't say mark it as deprecated and throw the kill switch to
2.23 ;-)
Regards.
^ permalink raw reply
* [Buildroot] [PATCH] tremor: force ARM mode when building to avoid Thumb2 build problems
From: Peter Korsgaard @ 2012-11-15 15:41 UTC (permalink / raw)
To: buildroot
In-Reply-To: <1352587381-9864-1-git-send-email-thomas.petazzoni@free-electrons.com>
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
Thomas> Fixes:
Thomas> http://autobuild.buildroot.org/results/502b7d3f29d7982d56de2ae4a0b943315e04713b/build-end.log
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply
* [Buildroot] [git commit] tremor: force ARM mode when building to avoid Thumb2 build problems
From: Peter Korsgaard @ 2012-11-15 15:41 UTC (permalink / raw)
To: buildroot
commit: http://git.buildroot.net/buildroot/commit/?id=695c4bcebc6093f44d21117489bb72cc7c76c5af
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master
Fixes:
http://autobuild.buildroot.org/results/502b7d3f29d7982d56de2ae4a0b943315e04713b/build-end.log
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
---
package/tremor/tremor.mk | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/package/tremor/tremor.mk b/package/tremor/tremor.mk
index fceee1b..cd1d323 100644
--- a/package/tremor/tremor.mk
+++ b/package/tremor/tremor.mk
@@ -12,4 +12,11 @@ TREMOR_AUTORECONF = YES
TREMOR_INSTALL_STAGING = YES
TREMOR_DEPENDENCIES = libogg
+# tremor has ARM assembly code that cannot be compiled in Thumb2 mode,
+# so we must force the traditional ARM mode.
+ifeq ($(BR2_arm),y)
+TREMOR_CONF_ENV = \
+ CFLAGS="$(TARGET_CFLAGS) -marm"
+endif
+
$(eval $(autotools-package))
^ permalink raw reply related
* [Buildroot] [PATCH 2/6] uClibc: remove useless linuxthreads-errno-fix patch
From: Peter Korsgaard @ 2012-11-15 15:40 UTC (permalink / raw)
To: buildroot
In-Reply-To: <898dc2c84add1fd58f43193bcfda39d64c0ae523.1352987586.git.thomas.petazzoni@free-electrons.com>
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
Thomas> This patch has since a long time been merged upstream in uClibc, so it
Thomas> cannot apply on any of the recent uClibc snapshots.
I like it how you call my patches useless :P
Thomas> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thomas> ---
Thomas> .../uClibc.snapshot.linuxthreads-errno-fix.patch | 68 --------------------
Thomas> 1 file changed, 68 deletions(-)
Thomas> delete mode 100644 toolchain/uClibc/uClibc.snapshot.linuxthreads-errno-fix.patch
Thomas> diff --git a/toolchain/uClibc/uClibc.snapshot.linuxthreads-errno-fix.patch b/toolchain/uClibc/uClibc.snapshot.linuxthreads-errno-fix.patch
Thomas> deleted file mode 100644
Thomas> index c4d0d00..0000000
Thomas> --- a/toolchain/uClibc/uClibc.snapshot.linuxthreads-errno-fix.patch
Thomas> +++ /dev/null
Thomas> @@ -1,68 +0,0 @@
Thomas> -From af8b2d71ce37b9d4d24ddbc755cdea68de02949a Mon Sep 17 00:00:00 2001
Thomas> -From: Peter Korsgaard <jacmet@sunsite.dk>
Thomas> -Date: Mon, 5 Jul 2010 14:08:17 +0200
Thomas> -Subject: [PATCH] don't make __errno_location / __h_errno_location hidden
--
Bye, Peter Korsgaard
^ permalink raw reply
* [Buildroot] [pull request] Pull request for branch xtensa
From: Peter Korsgaard @ 2012-11-15 15:40 UTC (permalink / raw)
To: buildroot
In-Reply-To: <cover.1352987586.git.thomas.petazzoni@free-electrons.com>
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
Thomas> Hello,
Thomas> This version includes an additional patch that quotes the string
Thomas> configuration options, as suggested by Yann E. Morin.
Committed series, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply
* [Buildroot] [git commit] arch: Config.in string configuration options must be quoted
From: Peter Korsgaard @ 2012-11-15 15:39 UTC (permalink / raw)
To: buildroot
commit: http://git.buildroot.net/buildroot/commit/?id=171075ed4fca754907d2c83800a7f383805196ec
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master
Suggested by Yann E. Morin.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reported-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
---
arch/Config.in.arm | 78 ++++++++++++++++++------------------
arch/Config.in.m68k | 24 +++++-----
arch/Config.in.mips | 22 +++++-----
arch/Config.in.powerpc | 70 ++++++++++++++++----------------
arch/Config.in.sparc | 42 +++++++++---------
arch/Config.in.x86 | 106 ++++++++++++++++++++++++------------------------
6 files changed, 171 insertions(+), 171 deletions(-)
diff --git a/arch/Config.in.arm b/arch/Config.in.arm
index 2acedc4..6e5d258 100644
--- a/arch/Config.in.arm
+++ b/arch/Config.in.arm
@@ -69,46 +69,46 @@ config BR2_ENDIAN
default "BIG" if BR2_armeb
config BR2_GCC_TARGET_TUNE
- default arm600 if BR2_arm600
- default arm610 if BR2_arm610
- default arm620 if BR2_arm620
- default arm7tdmi if BR2_arm7tdmi
- default arm7tdmi if BR2_arm720t
- default arm7tdmi if BR2_arm740t
- default arm920 if BR2_arm920
- default arm920t if BR2_arm920t
- default arm922t if BR2_arm922t
- default arm926ej-s if BR2_arm926t
- default arm1136j-s if BR2_arm1136j_s
- default arm1136jf-s if BR2_arm1136jf_s
- default arm1176jz-s if BR2_arm1176jz_s
- default arm1176jzf-s if BR2_arm1176jzf_s
- default cortex-a8 if BR2_cortex_a8
- default cortex-a9 if BR2_cortex_a9
- default strongarm110 if BR2_sa110
- default strongarm1100 if BR2_sa1100
- default xscale if BR2_xscale
- default iwmmxt if BR2_iwmmxt
+ default "arm600" if BR2_arm600
+ default "arm610" if BR2_arm610
+ default "arm620" if BR2_arm620
+ default "arm7tdmi" if BR2_arm7tdmi
+ default "arm7tdmi" if BR2_arm720t
+ default "arm7tdmi" if BR2_arm740t
+ default "arm920" if BR2_arm920
+ default "arm920t" if BR2_arm920t
+ default "arm922t" if BR2_arm922t
+ default "arm926ej-s" if BR2_arm926t
+ default "arm1136j-s" if BR2_arm1136j_s
+ default "arm1136jf-s" if BR2_arm1136jf_s
+ default "arm1176jz-s" if BR2_arm1176jz_s
+ default "arm1176jzf-s" if BR2_arm1176jzf_s
+ default "cortex-a8" if BR2_cortex_a8
+ default "cortex-a9" if BR2_cortex_a9
+ default "strongarm110" if BR2_sa110
+ default "strongarm1100" if BR2_sa1100
+ default "xscale" if BR2_xscale
+ default "iwmmxt" if BR2_iwmmxt
config BR2_GCC_TARGET_ARCH
- default armv4t if BR2_arm7tdmi
- default armv3 if BR2_arm610
- default armv3 if BR2_arm710
- default armv4t if BR2_arm720t
- default armv4t if BR2_arm920t
- default armv4t if BR2_arm922t
- default armv5te if BR2_arm926t
- default armv5t if BR2_arm10t
- default armv6j if BR2_arm1136jf_s
- default armv6zk if BR2_arm1176jz_s
- default armv6zk if BR2_arm1176jzf_s
- default armv7-a if BR2_cortex_a8
- default armv7-a if BR2_cortex_a9
- default armv4 if BR2_sa110
- default armv4 if BR2_sa1100
- default armv5te if BR2_xscale
- default iwmmxt if BR2_iwmmxt
+ default "armv4t" if BR2_arm7tdmi
+ default "armv3" if BR2_arm610
+ default "armv3" if BR2_arm710
+ default "armv4t" if BR2_arm720t
+ default "armv4t" if BR2_arm920t
+ default "armv4t" if BR2_arm922t
+ default "armv5te" if BR2_arm926t
+ default "armv5t" if BR2_arm10t
+ default "armv6j" if BR2_arm1136jf_s
+ default "armv6zk" if BR2_arm1176jz_s
+ default "armv6zk" if BR2_arm1176jzf_s
+ default "armv7-a" if BR2_cortex_a8
+ default "armv7-a" if BR2_cortex_a9
+ default "armv4" if BR2_sa110
+ default "armv4" if BR2_sa1100
+ default "armv5te" if BR2_xscale
+ default "iwmmxt" if BR2_iwmmxt
config BR2_GCC_TARGET_ABI
- default apcs-gnu if BR2_ARM_OABI
- default aapcs-linux if BR2_ARM_EABI
+ default "apcs-gnu" if BR2_ARM_OABI
+ default "aapcs-linux" if BR2_ARM_EABI
diff --git a/arch/Config.in.m68k b/arch/Config.in.m68k
index b3d95b7..ba6cedf 100644
--- a/arch/Config.in.m68k
+++ b/arch/Config.in.m68k
@@ -5,17 +5,17 @@ config BR2_ENDIAN
default "BIG"
config BR2_GCC_TARGET_TUNE
- default 68000 if BR2_m68k_68000
- default 68010 if BR2_m68k_68010
- default 68020 if BR2_m68k_68020
- default 68030 if BR2_m68k_68030
- default 68040 if BR2_m68k_68040
- default 68060 if BR2_m68k_68060
+ default "68000" if BR2_m68k_68000
+ default "68010" if BR2_m68k_68010
+ default "68020" if BR2_m68k_68020
+ default "68030" if BR2_m68k_68030
+ default "68040" if BR2_m68k_68040
+ default "68060" if BR2_m68k_68060
config BR2_GCC_TARGET_ARCH
- default 68000 if BR2_m68k_68000
- default 68010 if BR2_m68k_68010
- default 68020 if BR2_m68k_68020
- default 68030 if BR2_m68k_68030
- default 68040 if BR2_m68k_68040
- default 68060 if BR2_m68k_68060
+ default "68000" if BR2_m68k_68000
+ default "68010" if BR2_m68k_68010
+ default "68020" if BR2_m68k_68020
+ default "68030" if BR2_m68k_68030
+ default "68040" if BR2_m68k_68040
+ default "68060" if BR2_m68k_68060
diff --git a/arch/Config.in.mips b/arch/Config.in.mips
index c71c3f4..1454fb4 100644
--- a/arch/Config.in.mips
+++ b/arch/Config.in.mips
@@ -63,16 +63,16 @@ config BR2_ENDIAN
default "BIG" if BR2_mips || BR2_mips64
config BR2_GCC_TARGET_TUNE
- default mips1 if BR2_mips_1
- default mips2 if BR2_mips_2
- default mips3 if BR2_mips_3
- default mips4 if BR2_mips_4
- default mips32 if BR2_mips_32
- default mips32r2 if BR2_mips_32r2
- default mips64 if BR2_mips_64
- default mips64r2 if BR2_mips_64r2
+ default "mips1" if BR2_mips_1
+ default "mips2" if BR2_mips_2
+ default "mips3" if BR2_mips_3
+ default "mips4" if BR2_mips_4
+ default "mips32" if BR2_mips_32
+ default "mips32r2" if BR2_mips_32r2
+ default "mips64" if BR2_mips_64
+ default "mips64r2" if BR2_mips_64r2
config BR2_GCC_TARGET_ABI
- default 32 if BR2_MIPS_OABI32
- default n32 if BR2_MIPS_NABI32
- default 64 if BR2_MIPS_NABI64
+ default "32" if BR2_MIPS_OABI32
+ default "n32" if BR2_MIPS_NABI32
+ default "64" if BR2_MIPS_NABI64
diff --git a/arch/Config.in.powerpc b/arch/Config.in.powerpc
index 55c1651..693246b 100644
--- a/arch/Config.in.powerpc
+++ b/arch/Config.in.powerpc
@@ -89,40 +89,40 @@ config BR2_ENDIAN
default "BIG"
config BR2_GCC_TARGET_TUNE
- default 401 if BR2_powerpc_401
- default 403 if BR2_powerpc_403
- default 405 if BR2_powerpc_405
- default 405fp if BR2_powerpc_405fp
- default 440 if BR2_powerpc_440
- default 440fp if BR2_powerpc_440fp
- default 505 if BR2_powerpc_505
- default 601 if BR2_powerpc_601
- default 602 if BR2_powerpc_602
- default 603 if BR2_powerpc_603
- default 603e if BR2_powerpc_603e
- default 604 if BR2_powerpc_604
- default 604e if BR2_powerpc_604e
- default 620 if BR2_powerpc_620
- default 630 if BR2_powerpc_630
- default 740 if BR2_powerpc_740
- default 7400 if BR2_powerpc_7400
- default 7450 if BR2_powerpc_7450
- default 750 if BR2_powerpc_750
- default 801 if BR2_powerpc_801
- default 821 if BR2_powerpc_821
- default 823 if BR2_powerpc_823
- default 860 if BR2_powerpc_860
- default 970 if BR2_powerpc_970
- default 8540 if BR2_powerpc_8540
- default 8548 if BR2_powerpc_8548
- default e300c2 if BR2_powerpc_e300c2
- default e300c3 if BR2_powerpc_e300c3
- default e500mc if BR2_powerpc_e500mc
+ default "401" if BR2_powerpc_401
+ default "403" if BR2_powerpc_403
+ default "405" if BR2_powerpc_405
+ default "405fp" if BR2_powerpc_405fp
+ default "440" if BR2_powerpc_440
+ default "440fp" if BR2_powerpc_440fp
+ default "505" if BR2_powerpc_505
+ default "601" if BR2_powerpc_601
+ default "602" if BR2_powerpc_602
+ default "603" if BR2_powerpc_603
+ default "603e" if BR2_powerpc_603e
+ default "604" if BR2_powerpc_604
+ default "604e" if BR2_powerpc_604e
+ default "620" if BR2_powerpc_620
+ default "630" if BR2_powerpc_630
+ default "740" if BR2_powerpc_740
+ default "7400" if BR2_powerpc_7400
+ default "7450" if BR2_powerpc_7450
+ default "750" if BR2_powerpc_750
+ default "801" if BR2_powerpc_801
+ default "821" if BR2_powerpc_821
+ default "823" if BR2_powerpc_823
+ default "860" if BR2_powerpc_860
+ default "970" if BR2_powerpc_970
+ default "8540" if BR2_powerpc_8540
+ default "8548" if BR2_powerpc_8548
+ default "e300c2" if BR2_powerpc_e300c2
+ default "e300c3" if BR2_powerpc_e300c3
+ default "e500mc" if BR2_powerpc_e500mc
config BR2_GCC_TARGET_ABI
- default altivec if BR2_PPC_ABI_altivec
- default no-altivec if BR2_PPC_ABI_no-altivec
- default spe if BR2_PPC_ABI_spe
- default no-spe if BR2_PPC_ABI_no-spe
- default ibmlongdouble if BR2_PPC_ABI_ibmlongdouble
- default ieeelongdouble if BR2_PPC_ABI_ieeelongdouble
+ default "altivec" if BR2_PPC_ABI_altivec
+ default "no-altivec" if BR2_PPC_ABI_no-altivec
+ default "spe" if BR2_PPC_ABI_spe
+ default "no-spe" if BR2_PPC_ABI_no-spe
+ default "ibmlongdouble" if BR2_PPC_ABI_ibmlongdouble
+ default "ieeelongdouble" if BR2_PPC_ABI_ieeelongdouble
diff --git a/arch/Config.in.sparc b/arch/Config.in.sparc
index d810b75..e1f72cc 100644
--- a/arch/Config.in.sparc
+++ b/arch/Config.in.sparc
@@ -44,26 +44,26 @@ config BR2_ENDIAN
default "BIG"
config BR2_GCC_TARGET_TUNE
- default v7 if BR2_sparc_v7
- default cypress if BR2_sparc_cypress
- default v8 if BR2_sparc_v8
- default supersparc if BR2_sparc_supersparc
- default hypersparc if BR2_sparc_hypersparc
- default sparclite if BR2_sparc_sparclite
- default f930 if BR2_sparc_f930
- default f934 if BR2_sparc_f934
- default sparclite86x if BR2_sparc_sparclite86x
- default sparclet if BR2_sparc_sparclet
- default tsc701 if BR2_sparc_tsc701
- default v9 if BR2_sparc_v9
- default v9 if BR2_sparc_v9a
- default v9 if BR2_sparc_v9b
- default ultrasparc if BR2_sparc_ultrasparc
- default ultrasparc3 if BR2_sparc_ultrasparc3
- default niagara if BR2_sparc_niagara
+ default "v7" if BR2_sparc_v7
+ default "cypress" if BR2_sparc_cypress
+ default "v8" if BR2_sparc_v8
+ default "supersparc" if BR2_sparc_supersparc
+ default "hypersparc" if BR2_sparc_hypersparc
+ default "sparclite" if BR2_sparc_sparclite
+ default "f930" if BR2_sparc_f930
+ default "f934" if BR2_sparc_f934
+ default "sparclite86x" if BR2_sparc_sparclite86x
+ default "sparclet" if BR2_sparc_sparclet
+ default "tsc701" if BR2_sparc_tsc701
+ default "v9" if BR2_sparc_v9
+ default "v9" if BR2_sparc_v9a
+ default "v9" if BR2_sparc_v9b
+ default "ultrasparc" if BR2_sparc_ultrasparc
+ default "ultrasparc3" if BR2_sparc_ultrasparc3
+ default "niagara" if BR2_sparc_niagara
config BR2_GCC_TARGET_CPU
- default sparchfleon if BR2_sparc_sparchfleon
- default sparchfleonv8 if BR2_sparc_sparchfleonv8
- default sparcsfleon if BR2_sparc_sparcsfleon
- default sparcsfleonv8 if BR2_sparc_sparcsfleonv8
+ default "sparchfleon" if BR2_sparc_sparchfleon
+ default "sparchfleonv8" if BR2_sparc_sparchfleonv8
+ default "sparcsfleon" if BR2_sparc_sparcsfleon
+ default "sparcsfleonv8" if BR2_sparc_sparcsfleonv8
diff --git a/arch/Config.in.x86 b/arch/Config.in.x86
index ef29a71..d2e0807 100644
--- a/arch/Config.in.x86
+++ b/arch/Config.in.x86
@@ -178,58 +178,58 @@ config BR2_ENDIAN
default "LITTLE"
config BR2_GCC_TARGET_TUNE
- default i386 if BR2_x86_i386
- default i486 if BR2_x86_i486
- default i586 if BR2_x86_i586
- default pentium-mmx if BR2_x86_pentium_mmx
- default i686 if BR2_x86_i686
- default pentiumpro if BR2_x86_pentiumpro
- default pentium-m if BR2_x86_pentium_m
- default pentium2 if BR2_x86_pentium2
- default pentium3 if BR2_x86_pentium3
- default pentium4 if BR2_x86_pentium4
- default prescott if BR2_x86_prescott
- default nocona if BR2_x86_nocona
- default core2 if BR2_x86_core2
- default atom if BR2_x86_atom
- default k8 if BR2_x86_opteron
- default k8-sse3 if BR2_x86_opteron_sse3
- default barcelona if BR2_x86_barcelona
- default k6 if BR2_x86_k6
- default k6-2 if BR2_x86_k6_2
- default athlon if BR2_x86_athlon
- default athlon-4 if BR2_x86_athlon_4
- default winchip-c6 if BR2_x86_winchip_c6
- default winchip2 if BR2_x86_winchip2
- default c3 if BR2_x86_c3
- default c3-2 if BR2_x86_c32
- default geode if BR2_x86_geode
- default generic if BR2_x86_generic
+ default "i386" if BR2_x86_i386
+ default "i486" if BR2_x86_i486
+ default "i586" if BR2_x86_i586
+ default "pentium-mmx" if BR2_x86_pentium_mmx
+ default "i686" if BR2_x86_i686
+ default "pentiumpro" if BR2_x86_pentiumpro
+ default "pentium-m" if BR2_x86_pentium_m
+ default "pentium2" if BR2_x86_pentium2
+ default "pentium3" if BR2_x86_pentium3
+ default "pentium4" if BR2_x86_pentium4
+ default "prescott" if BR2_x86_prescott
+ default "nocona" if BR2_x86_nocona
+ default "core2" if BR2_x86_core2
+ default "atom" if BR2_x86_atom
+ default "k8" if BR2_x86_opteron
+ default "k8-sse3" if BR2_x86_opteron_sse3
+ default "barcelona" if BR2_x86_barcelona
+ default "k6" if BR2_x86_k6
+ default "k6-2" if BR2_x86_k6_2
+ default "athlon" if BR2_x86_athlon
+ default "athlon-4" if BR2_x86_athlon_4
+ default "winchip-c6" if BR2_x86_winchip_c6
+ default "winchip2" if BR2_x86_winchip2
+ default "c3" if BR2_x86_c3
+ default "c3-2" if BR2_x86_c32
+ default "geode" if BR2_x86_geode
+ default "generic" if BR2_x86_generic
config BR2_GCC_TARGET_ARCH
- default i386 if BR2_x86_i386
- default i486 if BR2_x86_i486
- default i586 if BR2_x86_i586
- default pentium-mmx if BR2_x86_pentium_mmx
- default i686 if BR2_x86_i686
- default pentiumpro if BR2_x86_pentiumpro
- default pentium-m if BR2_x86_pentium_m
- default pentium2 if BR2_x86_pentium2
- default pentium3 if BR2_x86_pentium3
- default pentium4 if BR2_x86_pentium4
- default prescott if BR2_x86_prescott
- default nocona if BR2_x86_nocona
- default core2 if BR2_x86_core2
- default atom if BR2_x86_atom
- default k8 if BR2_x86_opteron
- default k8-sse3 if BR2_x86_opteron_sse3
- default barcelona if BR2_x86_barcelona
- default k6 if BR2_x86_k6
- default k6-2 if BR2_x86_k6_2
- default athlon if BR2_x86_athlon
- default athlon-4 if BR2_x86_athlon_4
- default winchip-c6 if BR2_x86_winchip_c6
- default winchip2 if BR2_x86_winchip2
- default c3 if BR2_x86_c3
- default c3-2 if BR2_x86_c32
- default geode if BR2_x86_geode
+ default "i386" if BR2_x86_i386
+ default "i486" if BR2_x86_i486
+ default "i586" if BR2_x86_i586
+ default "pentium-mmx" if BR2_x86_pentium_mmx
+ default "i686" if BR2_x86_i686
+ default "pentiumpro" if BR2_x86_pentiumpro
+ default "pentium-m" if BR2_x86_pentium_m
+ default "pentium2" if BR2_x86_pentium2
+ default "pentium3" if BR2_x86_pentium3
+ default "pentium4" if BR2_x86_pentium4
+ default "prescott" if BR2_x86_prescott
+ default "nocona" if BR2_x86_nocona
+ default "core2" if BR2_x86_core2
+ default "atom" if BR2_x86_atom
+ default "k8" if BR2_x86_opteron
+ default "k8-sse3" if BR2_x86_opteron_sse3
+ default "barcelona" if BR2_x86_barcelona
+ default "k6" if BR2_x86_k6
+ default "k6-2" if BR2_x86_k6_2
+ default "athlon" if BR2_x86_athlon
+ default "athlon-4" if BR2_x86_athlon_4
+ default "winchip-c6" if BR2_x86_winchip_c6
+ default "winchip2" if BR2_x86_winchip2
+ default "c3" if BR2_x86_c3
+ default "c3-2" if BR2_x86_c32
+ default "geode" if BR2_x86_geode
^ permalink raw reply related
* [Buildroot] [git commit] xtensa: support configurable processor configurations
From: Peter Korsgaard @ 2012-11-15 15:39 UTC (permalink / raw)
To: buildroot
commit: http://git.buildroot.net/buildroot/commit/?id=d8792a04ca0d8615424f7964155782b1206b5c8d
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master
Xtensa is a configurable processor architecture, which allows to define
additional instructions and registers. The required variant specific
information for the toolchain is delivered in an 'overlay' file, which
needs to be 'untarred' to the corresponding directories after the
source is installed and patched.
This patch provides support for binutils, gcc, and gdb with a very
limited changes to the build scripts. These additions are only executed
for the Xtensa architecture and have no effect on other architectures.
[Thomas: rebased on top of the 'arch: improve definition of gcc mtune,
mcpu, etc.' patch, and changed 'Target ABI' to 'Target Architecture
Variant'].
Signed-off-by: Chris Zankel <chris@zankel.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
---
arch/Config.in.xtensa | 31 +++++++++++++++++++++++++++++++
package/binutils/binutils.mk | 9 +++++++++
toolchain/gcc/gcc-uclibc-4.x.mk | 4 ++++
toolchain/gdb/gdb.mk | 4 ++++
4 files changed, 48 insertions(+), 0 deletions(-)
diff --git a/arch/Config.in.xtensa b/arch/Config.in.xtensa
index 66749ee..af66125 100644
--- a/arch/Config.in.xtensa
+++ b/arch/Config.in.xtensa
@@ -1,2 +1,33 @@
+choice
+ prompt "Target Architecture Variant"
+ depends on BR2_xtensa
+ default BR2_xtensa_fsf
+config BR2_xtensa_custom
+ bool "Custom Xtensa processor configuration"
+config BR2_xtensa_fsf
+ bool "fsf - Default configuration"
+endchoice
+
+config BR2_xtensa_custom_name
+ string "Custom Xtensa processor configuration anme"
+ depends on BR2_xtensa_custom
+ default ""
+ help
+ Name given to a custom Xtensa processor configuration.
+
+config BR2_xtensa_core_name
+ string
+ default BR2_xtensa_custom_name if BR2_xtensa_custom
+ default "" if BR2_xtensa_fsf
+
+config BR2_xtensa_overlay_dir
+ string "Overlay directory for custom configuration"
+ depends on BR2_xtensa_custom
+ default ""
+ help
+ Provide a directory path that contains the overlay files
+ for the custom configuration. The path is based on the
+ buildroot top directory.
+
config BR2_ARCH
default "xtensa" if BR2_xtensa
diff --git a/package/binutils/binutils.mk b/package/binutils/binutils.mk
index 6c51fc7..82f8fd2 100644
--- a/package/binutils/binutils.mk
+++ b/package/binutils/binutils.mk
@@ -68,5 +68,14 @@ define BINUTILS_INSTALL_TARGET_CMDS
endef
endif
+XTENSA_CORE_NAME = $(call qstrip, $(BR2_xtensa_core_name))
+ifneq ($(XTENSA_CORE_NAME),)
+define BINUTILS_XTENSA_PRE_PATCH
+ tar xf $(BR2_xtensa_overlay_dir)/xtensa_$(XTENSA_CORE_NAME).tar \
+ -C $(@D) bfd include ld
+endef
+HOST_BINUTILS_PRE_PATCH_HOOKS += BINUTILS_XTENSA_PRE_PATCH
+endif
+
$(eval $(autotools-package))
$(eval $(host-autotools-package))
diff --git a/toolchain/gcc/gcc-uclibc-4.x.mk b/toolchain/gcc/gcc-uclibc-4.x.mk
index 1a075cc..1710070 100644
--- a/toolchain/gcc/gcc-uclibc-4.x.mk
+++ b/toolchain/gcc/gcc-uclibc-4.x.mk
@@ -251,6 +251,10 @@ $(GCC_DIR)/.unpacked: $(DL_DIR)/$(GCC_SOURCE)
rm -rf $(GCC_DIR)
$(GCC_CAT) $(DL_DIR)/$(GCC_SOURCE) | tar -C $(TOOLCHAIN_DIR) $(TAR_OPTIONS) -
$(call CONFIG_UPDATE,$(@D))
+ifneq ($(call qstrip, $(BR2_xtensa_core_name)),)
+ tar xf $(BR2_xtensa_overlay_dir)/xtensa_$(call qstrip,\
+ $(BR2_xtensa_core_name)).tar -C $(@D) include
+endif
touch $@
gcc-patched: $(GCC_DIR)/.patched
diff --git a/toolchain/gdb/gdb.mk b/toolchain/gdb/gdb.mk
index 6b029a8..dc305a6 100644
--- a/toolchain/gdb/gdb.mk
+++ b/toolchain/gdb/gdb.mk
@@ -25,6 +25,10 @@ gdb-unpacked: $(GDB_DIR)/.unpacked
$(GDB_DIR)/.unpacked: $(DL_DIR)/$(GDB_SOURCE)
mkdir -p $(GDB_DIR)
$(GDB_CAT) $(DL_DIR)/$(GDB_SOURCE) | tar -C $(GDB_DIR) $(TAR_STRIP_COMPONENTS)=1 $(TAR_OPTIONS) -
+ifneq ($(call qstrip, $(BR2_xtensa_core_name)),)
+ tar xf $(BR2_xtensa_overlay_dir)/xtensa_$(call qstrip, \
+ $(BR2_xtensa_core_name)).tar -C $(@D) bfd include gdb
+endif
ifneq ($(wildcard $(GDB_PATCH_DIR)),)
support/scripts/apply-patches.sh $(GDB_DIR) $(GDB_PATCH_DIR) \*.patch
endif
^ permalink raw reply related
* [Buildroot] [git commit] xtensa: add support for the Xtensa architecture
From: Peter Korsgaard @ 2012-11-15 15:39 UTC (permalink / raw)
To: buildroot
commit: http://git.buildroot.net/buildroot/commit/?id=75720db391376ef23b92e504c43f9972efd53141
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master
The Xtensa architecture had been removed because it required special
handling and depended on additional directories and files that became
obsolete over time. This change is more aligned to other architectures.
[Thomas: rebased on top of the "arch: improve definition of gcc mtune,
mcpu, etc." patch].
Signed-off-by: Chris Zankel <chris@zankel.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
---
arch/Config.in | 11 +++++++++++
arch/Config.in.xtensa | 2 ++
linux/Config.in | 3 ++-
package/ltrace/Config.in | 1 +
toolchain/Config.in | 2 +-
toolchain/toolchain-buildroot/Config.in.2 | 4 +++-
toolchain/toolchain-common.in | 2 +-
toolchain/uClibc/Config.in | 5 +++--
toolchain/uClibc/uclibc.mk | 1 +
9 files changed, 25 insertions(+), 6 deletions(-)
diff --git a/arch/Config.in b/arch/Config.in
index b326cb5..472b10c 100644
--- a/arch/Config.in
+++ b/arch/Config.in
@@ -145,6 +145,13 @@ config BR2_x86_64
architecture compatible microprocessor).
http://en.wikipedia.org/wiki/X86_64
+config BR2_xtensa
+ bool "Xtensa"
+ help
+ Xtensa is a Tensilica processor IP architecture.
+ http://en.wikipedia.org/wiki/Xtensa
+ http://www.tensilica.com/
+
endchoice
# The following string values are defined by the individual
@@ -210,3 +217,7 @@ endif
if BR2_i386 || BR2_x86_64
source "arch/Config.in.x86"
endif
+
+if BR2_xtensa
+source "arch/Config.in.xtensa"
+endif
diff --git a/arch/Config.in.xtensa b/arch/Config.in.xtensa
new file mode 100644
index 0000000..66749ee
--- /dev/null
+++ b/arch/Config.in.xtensa
@@ -0,0 +1,2 @@
+config BR2_ARCH
+ default "xtensa" if BR2_xtensa
diff --git a/linux/Config.in b/linux/Config.in
index 277ef0e..29a2110 100644
--- a/linux/Config.in
+++ b/linux/Config.in
@@ -152,7 +152,8 @@ config BR2_LINUX_KERNEL_BZIMAGE
config BR2_LINUX_KERNEL_ZIMAGE
bool "zImage"
- depends on BR2_arm || BR2_armeb || BR2_powerpc || BR2_sparc || BR2_sh || BR2_sh64
+ depends on BR2_arm || BR2_armeb || BR2_powerpc || BR2_sparc || \
+ BR2_sh || BR2_sh64 || BR2_xtensa
config BR2_LINUX_KERNEL_APPENDED_ZIMAGE
bool "zImage with appended DT"
diff --git a/package/ltrace/Config.in b/package/ltrace/Config.in
index a65ca48..4cce767 100644
--- a/package/ltrace/Config.in
+++ b/package/ltrace/Config.in
@@ -1,6 +1,7 @@
config BR2_PACKAGE_LTRACE
bool "ltrace"
depends on !(BR2_avr32 || BR2_mips || BR2_mipsel || BR2_sh || BR2_sh64)
+ depends on !BR2_xtensa
select BR2_PACKAGE_LIBELF
help
Debugging program which runs a specified command until it exits.
diff --git a/toolchain/Config.in b/toolchain/Config.in
index 29ed2f0..7edf82b 100644
--- a/toolchain/Config.in
+++ b/toolchain/Config.in
@@ -23,7 +23,7 @@ config BR2_TOOLCHAIN_EXTERNAL
config BR2_TOOLCHAIN_CTNG
bool "Crosstool-NG toolchain"
- depends on !BR2_microblaze && !BR2_aarch64
+ depends on !BR2_microblaze && !BR2_aarch64 && !BR2_xtensa
select BR2_TOOLCHAIN_HAS_SHADOW_PASSWORDS
select BR2_TOOLCHAIN_HAS_THREADS_DEBUG_IF_NEEDED
help
diff --git a/toolchain/toolchain-buildroot/Config.in.2 b/toolchain/toolchain-buildroot/Config.in.2
index 956ec2f..d27c9f3 100644
--- a/toolchain/toolchain-buildroot/Config.in.2
+++ b/toolchain/toolchain-buildroot/Config.in.2
@@ -68,7 +68,7 @@ config BR2_TOOLCHAIN_BUILDROOT_USE_SSP
choice
prompt "Thread library implementation"
- default BR2_PTHREADS_NATIVE if (!BR2_UCLIBC_VERSION_0_9_31) && !BR2_ARM_OABI
+ default BR2_PTHREADS_NATIVE if (!BR2_UCLIBC_VERSION_0_9_31) && !BR2_ARM_OABI && !BR2_xtensa
default BR2_PTHREADS_OLD
help
Use this option to select the thread library implementation
@@ -82,6 +82,7 @@ choice
config BR2_PTHREADS
bool "linuxthreads"
+ depends on !BR2_xtensa
select BR2_TOOLCHAIN_HAS_THREADS
config BR2_PTHREADS_OLD
@@ -94,6 +95,7 @@ choice
depends on !BR2_UCLIBC_VERSION_0_9_31
depends on !BR2_ARM_OABI
depends on !BR2_x86_i386
+ depends on !BR2_xtensa
endchoice
source "toolchain/elf2flt/Config.in"
diff --git a/toolchain/toolchain-common.in b/toolchain/toolchain-common.in
index 4c2a28b..9f11a39 100644
--- a/toolchain/toolchain-common.in
+++ b/toolchain/toolchain-common.in
@@ -93,7 +93,7 @@ config BR2_NEEDS_GETTEXT_IF_LOCALE
default y if (BR2_NEEDS_GETTEXT && BR2_ENABLE_LOCALE)
config BR2_USE_MMU
- bool "Enable MMU support" if BR2_arm || BR2_armeb || BR2_mips || BR2_mipsel || BR2_sh
+ bool "Enable MMU support" if BR2_arm || BR2_armeb || BR2_mips || BR2_mipsel || BR2_sh || BR2_xtensa
default y if !BR2_bfin
help
If your target has a MMU, you should say Y here. If you
diff --git a/toolchain/uClibc/Config.in b/toolchain/uClibc/Config.in
index f46a415..e47bc9b 100644
--- a/toolchain/uClibc/Config.in
+++ b/toolchain/uClibc/Config.in
@@ -12,14 +12,15 @@ choice
config BR2_UCLIBC_VERSION_0_9_31
bool "uClibc 0.9.31.x"
+ depends on !BR2_xtensa
config BR2_UCLIBC_VERSION_0_9_32
bool "uClibc 0.9.32.x"
- depends on !(BR2_avr32 || BR2_sh)
+ depends on !(BR2_avr32 || BR2_sh || BR2_xtensa)
config BR2_UCLIBC_VERSION_0_9_33
bool "uClibc 0.9.33.x"
- depends on !BR2_avr32
+ depends on !(BR2_avr32 || BR2_xtensa)
config BR2_UCLIBC_VERSION_SNAPSHOT
bool "daily snapshot"
diff --git a/toolchain/uClibc/uclibc.mk b/toolchain/uClibc/uclibc.mk
index 8cf59bc..055267c 100644
--- a/toolchain/uClibc/uclibc.mk
+++ b/toolchain/uClibc/uclibc.mk
@@ -38,6 +38,7 @@ UCLIBC_TARGET_ARCH:=$(shell $(SHELL) -c "echo $(ARCH) | sed \
-e 's/sh[234].*/sh/' \
-e 's/mips.*/mips/' \
-e 's/cris.*/cris/' \
+ -e 's/xtensa.*/xtensa/' \
")
UCLIBC_TARGET_ENDIAN:=$(call qstrip,$(BR2_ENDIAN))
^ permalink raw reply related
* [Buildroot] [git commit] uClibc: update uClibc-snapshot.config to recent uClibcs
From: Peter Korsgaard @ 2012-11-15 15:39 UTC (permalink / raw)
To: buildroot
commit: http://git.buildroot.net/buildroot/commit/?id=86f6987bf7bc1bd9eae3c2a9ffa427cc87da9bbd
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
---
toolchain/uClibc/uClibc-snapshot.config | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/toolchain/uClibc/uClibc-snapshot.config b/toolchain/uClibc/uClibc-snapshot.config
index eb39df6..71fa472 100644
--- a/toolchain/uClibc/uClibc-snapshot.config
+++ b/toolchain/uClibc/uClibc-snapshot.config
@@ -93,6 +93,7 @@ LDSO_PRELOAD_ENV_SUPPORT=y
# LDSO_PRELINK_SUPPORT is not set
# UCLIBC_STATIC_LDCONFIG is not set
LDSO_RUNPATH=y
+LDSO_SAFE_RUNPATH=y
LDSO_SEARCH_INTERP_PATH=y
LDSO_LD_LIBRARY_PATH=y
# LDSO_NO_CLEANUP is not set
^ permalink raw reply related
* [Buildroot] [PATCH] binutils: add version 2.23.1
From: Peter Korsgaard @ 2012-11-15 15:39 UTC (permalink / raw)
To: buildroot
In-Reply-To: <CAFbHwiTmCbwarYSgnD7ZkRob7SOVK2T_4Obz6jCR5eJj75j=rA@mail.gmail.com>
>>>>> "Will" == Will Newton <will.newton@gmail.com> writes:
Will> On Thu, Nov 15, 2012 at 3:25 PM, Gustavo Zacarias
Will> <gustavo@zacarias.com.ar> wrote:
>> On 11/15/2012 12:17 PM, Will Newton wrote:
>>
>>> I believe that 2.23 was never officially packaged so it is probably
>>> better to remove it.
>>
>> It's in official GNU mirrors, i'd say it has been.
>> Doesn't mean we should keep it though.
>> From the 2.23.1 release announcement:
Will> "Thanks to everyone who contributed to the release. The branch remains
Will> open for bug fixes.
Will> Note that because of packaging issues, binutils 2.23 was not released."
Will> I'm not sure what the precise issues were but it seems safer to
Will> move to 2.23.1.
I agree. Gustavo, could you respin the patch to replace 2.23 with 2.23.1
instead?
--
Bye, Peter Korsgaard
^ permalink raw reply
* [Buildroot] [PATCH] binutils: add version 2.23.1
From: Gustavo Zacarias @ 2012-11-15 15:30 UTC (permalink / raw)
To: buildroot
In-Reply-To: <CAFbHwiTmCbwarYSgnD7ZkRob7SOVK2T_4Obz6jCR5eJj75j=rA@mail.gmail.com>
On 11/15/2012 12:27 PM, Will Newton wrote:
> From the 2.23.1 release announcement:
>
> "Thanks to everyone who contributed to the release. The branch remains
> open for bug fixes.
>
> Note that because of packaging issues, binutils 2.23 was not released."
>
> I'm not sure what the precise issues were but it seems safer to move to 2.23.1.
From what i've read in the mailing list there were some tagging issues
and whatnot.
There was also the vanishing tarball issue, when i sent the initial 2.23
bump there was a tar.bz2 for 2.23 and then it was gone with only the
tar.gz remaining.
I'm not for or against the move, since it's not a default i see no big
issue removing it, but then we always gave some choice regarding
toolchain components.
Regards.
^ permalink raw reply
* [Buildroot] [PATCH] binutils: add version 2.23.1
From: Will Newton @ 2012-11-15 15:27 UTC (permalink / raw)
To: buildroot
In-Reply-To: <50A5094F.8080001@zacarias.com.ar>
On Thu, Nov 15, 2012 at 3:25 PM, Gustavo Zacarias
<gustavo@zacarias.com.ar> wrote:
> On 11/15/2012 12:17 PM, Will Newton wrote:
>
>> I believe that 2.23 was never officially packaged so it is probably
>> better to remove it.
>
> It's in official GNU mirrors, i'd say it has been.
> Doesn't mean we should keep it though.
From the 2.23.1 release announcement:
"Thanks to everyone who contributed to the release. The branch remains
open for bug fixes.
Note that because of packaging issues, binutils 2.23 was not released."
I'm not sure what the precise issues were but it seems safer to move to 2.23.1.
^ permalink raw reply
* [Buildroot] [PATCH] binutils: add version 2.23.1
From: Gustavo Zacarias @ 2012-11-15 15:25 UTC (permalink / raw)
To: buildroot
In-Reply-To: <CAFbHwiRBmDSdfWL2pxFRrS-xkRoa0VB_FgrjFDk2oQG42pxeuA@mail.gmail.com>
On 11/15/2012 12:17 PM, Will Newton wrote:
> I believe that 2.23 was never officially packaged so it is probably
> better to remove it.
It's in official GNU mirrors, i'd say it has been.
Doesn't mean we should keep it though.
Regards.
^ permalink raw reply
* [Buildroot] [PATCH] binutils: add version 2.23.1
From: Will Newton @ 2012-11-15 15:17 UTC (permalink / raw)
To: buildroot
In-Reply-To: <87lie25299.fsf@dell.be.48ers.dk>
On Thu, Nov 15, 2012 at 3:12 PM, Peter Korsgaard <jacmet@uclibc.org> wrote:
>>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:
>
> Gustavo> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
> Gustavo> ---
> Gustavo> package/binutils/Config.in.host | 5 +++
> Gustavo> package/binutils/binutils-2.23.1/120-sh-conf.patch | 29 +++++++++++++++
> Gustavo> .../300-001_ld_makefile_patch.patch | 24 +++++++++++++
> Gustavo> .../300-012_check_ldrunpath_length.patch | 21 +++++++++++
> Gustavo> package/binutils/binutils-2.23.1/500-sysroot.patch | 37 ++++++++++++++++++++
> Gustavo> 5 files changed, 116 insertions(+), 0 deletions(-)
> Gustavo> create mode 100644 package/binutils/binutils-2.23.1/120-sh-conf.patch
> Gustavo> create mode 100644 package/binutils/binutils-2.23.1/300-001_ld_makefile_patch.patch
> Gustavo> create mode 100644 package/binutils/binutils-2.23.1/300-012_check_ldrunpath_length.patch
> Gustavo> create mode 100644 package/binutils/binutils-2.23.1/500-sysroot.patch
>
> Gustavo> diff --git a/package/binutils/Config.in.host b/package/binutils/Config.in.host
> Gustavo> index 26c5f73..7a9eae8 100644
> Gustavo> --- a/package/binutils/Config.in.host
> Gustavo> +++ b/package/binutils/Config.in.host
> Gustavo> @@ -36,6 +36,10 @@ choice
> Gustavo> depends on !(BR2_avr32 || BR2_UCLIBC_VERSION_0_9_31)
> Gustavo> bool "binutils 2.23"
>
> Gustavo> + config BR2_BINUTILS_VERSION_2_23_1
> Gustavo> + depends on !(BR2_avr32 || BR2_UCLIBC_VERSION_0_9_31)
> Gustavo> + bool "binutils 2.23.1"
> Gustavo> +
>
> I know we have been doing it in the past because of various arch issues,
> but does it make sense to keep both 2.23 and 2.23.1?
I believe that 2.23 was never officially packaged so it is probably
better to remove it.
^ permalink raw reply
* [Buildroot] [PATCH] tremor: force ARM mode when building to avoid Thumb2 build problems
From: Thomas Petazzoni @ 2012-11-15 15:16 UTC (permalink / raw)
To: buildroot
In-Reply-To: <1352587381-9864-1-git-send-email-thomas.petazzoni@free-electrons.com>
On Sat, 10 Nov 2012 23:43:01 +0100, Thomas Petazzoni wrote:
> Fixes:
>
> http://autobuild.buildroot.org/results/502b7d3f29d7982d56de2ae4a0b943315e04713b/build-end.log
>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
> package/tremor/tremor.mk | 7 +++++++
> 1 file changed, 7 insertions(+)
This one should be applied for 2012.11.
Best regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply
* [Buildroot] [PATCH] binutils: add version 2.23.1
From: Gustavo Zacarias @ 2012-11-15 15:16 UTC (permalink / raw)
To: buildroot
In-Reply-To: <87lie25299.fsf@dell.be.48ers.dk>
On 11/15/2012 12:12 PM, Peter Korsgaard wrote:
> I know we have been doing it in the past because of various arch issues,
> but does it make sense to keep both 2.23 and 2.23.1?
I've tested 2.23.1 only for ppc targets so far, and 2.23 for many more
architectures.
Common sense says 2.23.1 alone should be enough, but i haven't tested
that scenario.
We also have other dot versions that could also be dropped like 2.20.
Regards.
^ permalink raw reply
* [Buildroot] [git commit] uClibc: remove useless linuxthreads-errno-fix patch
From: Peter Korsgaard @ 2012-11-15 15:12 UTC (permalink / raw)
To: buildroot
commit: http://git.buildroot.net/buildroot/commit/?id=d3bdb15f23d8ff911400c26fcb7b9d41fa0a648b
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master
This patch has since a long time been merged upstream in uClibc, so it
cannot apply on any of the recent uClibc snapshots.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
---
.../uClibc.snapshot.linuxthreads-errno-fix.patch | 68 --------------------
1 files changed, 0 insertions(+), 68 deletions(-)
diff --git a/toolchain/uClibc/uClibc.snapshot.linuxthreads-errno-fix.patch b/toolchain/uClibc/uClibc.snapshot.linuxthreads-errno-fix.patch
deleted file mode 100644
index c4d0d00..0000000
--- a/toolchain/uClibc/uClibc.snapshot.linuxthreads-errno-fix.patch
+++ /dev/null
@@ -1,68 +0,0 @@
-From af8b2d71ce37b9d4d24ddbc755cdea68de02949a Mon Sep 17 00:00:00 2001
-From: Peter Korsgaard <jacmet@sunsite.dk>
-Date: Mon, 5 Jul 2010 14:08:17 +0200
-Subject: [PATCH] don't make __errno_location / __h_errno_location hidden
-
-Closes #2089 (https://bugs.busybox.net/show_bug.cgi?id=2089)
-
-__errno_location / __h_errno_location access has to go through the PLT
-like malloc/free, so the linuxthread variants gets used instead when
-compiling with -pthread.
-
-Based on http://github.com/mat-c/uClibc/commit/328d392c54aa5dc2b8e7f398a419087de497de2b
-
-Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
----
- include/netdb.h | 1 -
- libc/misc/internals/__errno_location.c | 3 ---
- libc/misc/internals/__h_errno_location.c | 1 -
- libc/sysdeps/linux/common/bits/errno.h | 1 -
- 6 files changed, 0 insertions(+), 11 deletions(-)
-
-diff --git a/include/netdb.h b/include/netdb.h
-index 9d3807d..ac411ab 100644
---- a/include/netdb.h
-+++ b/include/netdb.h
-@@ -59,7 +59,6 @@ __BEGIN_DECLS
-
- /* Function to get address of global `h_errno' variable. */
- extern int *__h_errno_location (void) __THROW __attribute__ ((__const__));
--libc_hidden_proto(__h_errno_location)
-
- /* Macros for accessing h_errno from inside libc. */
- #ifdef _LIBC
-diff --git a/libc/misc/internals/__errno_location.c b/libc/misc/internals/__errno_location.c
-index 487a9c2..0620860 100644
---- a/libc/misc/internals/__errno_location.c
-+++ b/libc/misc/internals/__errno_location.c
-@@ -15,6 +15,3 @@ int * weak_const_function __errno_location (void)
- {
- return &errno;
- }
--#ifdef IS_IN_libc /* not really need, only to keep in sync w/ libc_hidden_proto */
--libc_hidden_weak(__errno_location)
--#endif
-diff --git a/libc/misc/internals/__h_errno_location.c b/libc/misc/internals/__h_errno_location.c
-index 213d398..235df4e 100644
---- a/libc/misc/internals/__h_errno_location.c
-+++ b/libc/misc/internals/__h_errno_location.c
-@@ -10,4 +10,3 @@ int * weak_const_function __h_errno_location (void)
- {
- return &h_errno;
- }
--libc_hidden_weak(__h_errno_location)
-diff --git a/libc/misc/internals/__uClibc_main.c b/libc/misc/internals/__uClibc_main.c
-index 6e520fa..f4a9ebb 100644
---- a/libc/sysdeps/linux/common/bits/errno.h
-+++ b/libc/sysdeps/linux/common/bits/errno.h
-@@ -43,7 +43,6 @@
- # ifndef __ASSEMBLER__
- /* Function to get address of global `errno' variable. */
- extern int *__errno_location (void) __THROW __attribute__ ((__const__));
--libc_hidden_proto(__errno_location)
-
- # ifdef __UCLIBC_HAS_THREADS__
- /* When using threads, errno is a per-thread value. */
---
-1.7.1
-
^ permalink raw reply related
* [Buildroot] [git commit] arch: improve definition of gcc mtune, mcpu, etc.
From: Peter Korsgaard @ 2012-11-15 15:12 UTC (permalink / raw)
To: buildroot
commit: http://git.buildroot.net/buildroot/commit/?id=44c04a2b4aa998e9c52c4d30f45b1ded933b966a
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master
As suggested by Yann E. Morin, there is a better way than our current
big Config.in.common to define the gcc mtune, mcpu, march,
etc. values. We can split the setting of those values in each
architecture file, which makes a lot more sense.
Therefore, the Config.in file now creates empty kconfig variables
BR2_ARCH, BR2_ENDIAN, BR2_GCC_TARGET_TUNE, BR2_GCC_TARGET_ARCH,
BR2_GCC_TARGET_ABI and BR2_GCC_TARGET_CPU. The values of those
variables are set by the individual Config.in.<arch> files. This is
possible because such files are now only conditionally included
depending on the top-level architecture that has been selected.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
---
arch/Config.in | 59 ++++++++++-
arch/Config.in.aarch64 | 5 +
arch/Config.in.arm | 52 ++++++++++
arch/Config.in.avr32 | 5 +
arch/Config.in.bfin | 6 +
arch/Config.in.common | 245 ---------------------------------------------
arch/Config.in.m68k | 21 ++++
arch/Config.in.microblaze | 10 ++
arch/Config.in.mips | 25 +++++
arch/Config.in.powerpc | 45 ++++++++
arch/Config.in.sh | 17 +++
arch/Config.in.sparc | 31 ++++++
arch/Config.in.x86 | 89 ++++++++++++++++
13 files changed, 361 insertions(+), 249 deletions(-)
diff --git a/arch/Config.in b/arch/Config.in
index 4d1f81f..b326cb5 100644
--- a/arch/Config.in
+++ b/arch/Config.in
@@ -147,15 +147,66 @@ config BR2_x86_64
endchoice
-config BR2_microblaze
- bool
- default y if BR2_microblazeel || BR2_microblazebe
+# The following string values are defined by the individual
+# Config.in.$ARCH files
+config BR2_ARCH
+ string
+config BR2_ENDIAN
+ string
+
+config BR2_GCC_TARGET_TUNE
+ string
+
+config BR2_GCC_TARGET_ARCH
+ string
+
+config BR2_GCC_TARGET_ABI
+ string
+
+config BR2_GCC_TARGET_CPU
+ string
+
+if BR2_arm || BR2_armeb
source "arch/Config.in.arm"
+endif
+
+if BR2_aarch64
+source "arch/Config.in.aarch64"
+endif
+
+if BR2_avr32
+source "arch/Config.in.avr32"
+endif
+
+if BR2_bfin
source "arch/Config.in.bfin"
+endif
+
+if BR2_m68k
+source "arch/Config.in.m68k"
+endif
+
+if BR2_microblazeel || BR2_microblazebe
+source "arch/Config.in.microblaze"
+endif
+
+if BR2_mips || BR2_mips64 || BR2_mipsel || BR2_mips64el
source "arch/Config.in.mips"
+endif
+
+if BR2_powerpc
source "arch/Config.in.powerpc"
+endif
+
+if BR2_sh || BR2_sh64
source "arch/Config.in.sh"
+endif
+
+if BR2_sparc
source "arch/Config.in.sparc"
+endif
+
+if BR2_i386 || BR2_x86_64
source "arch/Config.in.x86"
-source "arch/Config.in.common"
+endif
diff --git a/arch/Config.in.aarch64 b/arch/Config.in.aarch64
new file mode 100644
index 0000000..4c68a37
--- /dev/null
+++ b/arch/Config.in.aarch64
@@ -0,0 +1,5 @@
+config BR2_ARCH
+ default "aarch64" if BR2_aarch64
+
+config BR2_ENDIAN
+ default "LITTLE"
diff --git a/arch/Config.in.arm b/arch/Config.in.arm
index 8d9db3c..2acedc4 100644
--- a/arch/Config.in.arm
+++ b/arch/Config.in.arm
@@ -60,3 +60,55 @@ config BR2_ARM_OABI
depends on !BR2_GCC_VERSION_4_7_X
endchoice
+config BR2_ARCH
+ default "arm" if BR2_arm
+ default "armeb" if BR2_armeb
+
+config BR2_ENDIAN
+ default "LITTLE" if BR2_arm
+ default "BIG" if BR2_armeb
+
+config BR2_GCC_TARGET_TUNE
+ default arm600 if BR2_arm600
+ default arm610 if BR2_arm610
+ default arm620 if BR2_arm620
+ default arm7tdmi if BR2_arm7tdmi
+ default arm7tdmi if BR2_arm720t
+ default arm7tdmi if BR2_arm740t
+ default arm920 if BR2_arm920
+ default arm920t if BR2_arm920t
+ default arm922t if BR2_arm922t
+ default arm926ej-s if BR2_arm926t
+ default arm1136j-s if BR2_arm1136j_s
+ default arm1136jf-s if BR2_arm1136jf_s
+ default arm1176jz-s if BR2_arm1176jz_s
+ default arm1176jzf-s if BR2_arm1176jzf_s
+ default cortex-a8 if BR2_cortex_a8
+ default cortex-a9 if BR2_cortex_a9
+ default strongarm110 if BR2_sa110
+ default strongarm1100 if BR2_sa1100
+ default xscale if BR2_xscale
+ default iwmmxt if BR2_iwmmxt
+
+config BR2_GCC_TARGET_ARCH
+ default armv4t if BR2_arm7tdmi
+ default armv3 if BR2_arm610
+ default armv3 if BR2_arm710
+ default armv4t if BR2_arm720t
+ default armv4t if BR2_arm920t
+ default armv4t if BR2_arm922t
+ default armv5te if BR2_arm926t
+ default armv5t if BR2_arm10t
+ default armv6j if BR2_arm1136jf_s
+ default armv6zk if BR2_arm1176jz_s
+ default armv6zk if BR2_arm1176jzf_s
+ default armv7-a if BR2_cortex_a8
+ default armv7-a if BR2_cortex_a9
+ default armv4 if BR2_sa110
+ default armv4 if BR2_sa1100
+ default armv5te if BR2_xscale
+ default iwmmxt if BR2_iwmmxt
+
+config BR2_GCC_TARGET_ABI
+ default apcs-gnu if BR2_ARM_OABI
+ default aapcs-linux if BR2_ARM_EABI
diff --git a/arch/Config.in.avr32 b/arch/Config.in.avr32
new file mode 100644
index 0000000..ebf8454
--- /dev/null
+++ b/arch/Config.in.avr32
@@ -0,0 +1,5 @@
+config BR2_ARCH
+ default "avr32"
+
+config BR2_ENDIAN
+ default "BIG"
diff --git a/arch/Config.in.bfin b/arch/Config.in.bfin
index 1823bde..0b137ae 100644
--- a/arch/Config.in.bfin
+++ b/arch/Config.in.bfin
@@ -8,3 +8,9 @@ config BR2_BFIN_FLAT
bool "FLAT"
select BR2_PREFER_STATIC_LIB
endchoice
+
+config BR2_ARCH
+ default "bfin"
+
+config BR2_ENDIAN
+ default "LITTLE"
diff --git a/arch/Config.in.common b/arch/Config.in.common
deleted file mode 100644
index 1ed9929..0000000
--- a/arch/Config.in.common
+++ /dev/null
@@ -1,245 +0,0 @@
-config BR2_ARCH
- string
- default "arm" if BR2_arm
- default "armeb" if BR2_armeb
- default "aarch64" if BR2_aarch64
- default "avr32" if BR2_avr32
- default "bfin" if BR2_bfin
- default "i386" if BR2_x86_i386
- default "i486" if BR2_x86_i486
- default "i586" if BR2_x86_i586
- default "i586" if BR2_x86_pentium_mmx
- default "i586" if BR2_x86_geode
- default "i586" if BR2_x86_c3
- default "i686" if BR2_x86_c32
- default "i586" if BR2_x86_winchip_c6
- default "i586" if BR2_x86_winchip2
- default "i686" if BR2_x86_i686
- default "i686" if BR2_x86_pentium2
- default "i686" if BR2_x86_pentium3
- default "i686" if BR2_x86_pentium4
- default "i686" if BR2_x86_pentium_m
- default "i686" if BR2_x86_pentiumpro
- default "i686" if BR2_x86_prescott
- default "i686" if BR2_x86_nocona && BR2_i386
- default "i686" if BR2_x86_core2 && BR2_i386
- default "i686" if BR2_x86_atom && BR2_i386
- default "i686" if BR2_x86_opteron && BR2_i386
- default "i686" if BR2_x86_opteron_sse3 && BR2_i386
- default "i686" if BR2_x86_barcelona && BR2_i386
- default "i686" if BR2_x86_k6
- default "i686" if BR2_x86_k6_2
- default "i686" if BR2_x86_athlon
- default "i686" if BR2_x86_athlon_4
- default "x86_64" if BR2_x86_64
- default "m68k" if BR2_m68k
- default "microblaze" if BR2_microblaze
- default "mips" if BR2_mips
- default "mipsel" if BR2_mipsel
- default "mips64" if BR2_mips64
- default "mips64el" if BR2_mips64el
- default "powerpc" if BR2_powerpc
- default "sh2" if BR2_sh2
- default "sh2a" if BR2_sh2a
- default "sh3" if BR2_sh3
- default "sh3eb" if BR2_sh3eb
- default "sh4" if BR2_sh4
- default "sh4eb" if BR2_sh4eb
- default "sh4a" if BR2_sh4a
- default "sh4aeb" if BR2_sh4aeb
- default "sh64" if BR2_sh64
- default "sparc" if BR2_sparc
-
-
-config BR2_ENDIAN
- string
- default "LITTLE" if BR2_arm || BR2_bfin || BR2_i386 || BR2_mipsel || BR2_mips64el || \
- BR2_sh3 || BR2_sh4 || BR2_sh4a || BR2_x86_64 || BR2_sh64 || \
- BR2_microblazeel
- default "BIG" if BR2_armeb || BR2_avr32 || BR2_m68k || BR2_mips || BR2_mips64 || \
- BR2_powerpc || BR2_sh2 || BR2_sh2a || \
- BR2_sh3eb || BR2_sh4eb || BR2_sh4aeb || BR2_sparc || \
- BR2_microblazebe
-
-config BR2_GCC_TARGET_TUNE
- string
- default i386 if BR2_x86_i386
- default i486 if BR2_x86_i486
- default i586 if BR2_x86_i586
- default pentium-mmx if BR2_x86_pentium_mmx
- default i686 if BR2_x86_i686
- default pentiumpro if BR2_x86_pentiumpro
- default pentium-m if BR2_x86_pentium_m
- default pentium2 if BR2_x86_pentium2
- default pentium3 if BR2_x86_pentium3
- default pentium4 if BR2_x86_pentium4
- default prescott if BR2_x86_prescott
- default nocona if BR2_x86_nocona
- default core2 if BR2_x86_core2
- default atom if BR2_x86_atom
- default k8 if BR2_x86_opteron
- default k8-sse3 if BR2_x86_opteron_sse3
- default barcelona if BR2_x86_barcelona
- default k6 if BR2_x86_k6
- default k6-2 if BR2_x86_k6_2
- default athlon if BR2_x86_athlon
- default athlon-4 if BR2_x86_athlon_4
- default winchip-c6 if BR2_x86_winchip_c6
- default winchip2 if BR2_x86_winchip2
- default c3 if BR2_x86_c3
- default c3-2 if BR2_x86_c32
- default geode if BR2_x86_geode
- default generic if BR2_x86_generic
- default arm600 if BR2_arm600
- default arm610 if BR2_arm610
- default arm620 if BR2_arm620
- default arm7tdmi if BR2_arm7tdmi
- default arm7tdmi if BR2_arm720t
- default arm7tdmi if BR2_arm740t
- default arm920 if BR2_arm920
- default arm920t if BR2_arm920t
- default arm922t if BR2_arm922t
- default arm926ej-s if BR2_arm926t
- default arm1136j-s if BR2_arm1136j_s
- default arm1136jf-s if BR2_arm1136jf_s
- default arm1176jz-s if BR2_arm1176jz_s
- default arm1176jzf-s if BR2_arm1176jzf_s
- default cortex-a8 if BR2_cortex_a8
- default cortex-a9 if BR2_cortex_a9
- default strongarm110 if BR2_sa110
- default strongarm1100 if BR2_sa1100
- default xscale if BR2_xscale
- default iwmmxt if BR2_iwmmxt
- default 68000 if BR2_m68k_68000
- default 68010 if BR2_m68k_68010
- default 68020 if BR2_m68k_68020
- default 68030 if BR2_m68k_68030
- default 68040 if BR2_m68k_68040
- default 68060 if BR2_m68k_68060
- default mips1 if BR2_mips_1
- default mips2 if BR2_mips_2
- default mips3 if BR2_mips_3
- default mips4 if BR2_mips_4
- default mips32 if BR2_mips_32
- default mips32r2 if BR2_mips_32r2
- default mips64 if BR2_mips_64
- default mips64r2 if BR2_mips_64r2
- default 401 if BR2_powerpc_401
- default 403 if BR2_powerpc_403
- default 405 if BR2_powerpc_405
- default 405fp if BR2_powerpc_405fp
- default 440 if BR2_powerpc_440
- default 440fp if BR2_powerpc_440fp
- default 505 if BR2_powerpc_505
- default 601 if BR2_powerpc_601
- default 602 if BR2_powerpc_602
- default 603 if BR2_powerpc_603
- default 603e if BR2_powerpc_603e
- default 604 if BR2_powerpc_604
- default 604e if BR2_powerpc_604e
- default 620 if BR2_powerpc_620
- default 630 if BR2_powerpc_630
- default 740 if BR2_powerpc_740
- default 7400 if BR2_powerpc_7400
- default 7450 if BR2_powerpc_7450
- default 750 if BR2_powerpc_750
- default 801 if BR2_powerpc_801
- default 821 if BR2_powerpc_821
- default 823 if BR2_powerpc_823
- default 860 if BR2_powerpc_860
- default 970 if BR2_powerpc_970
- default 8540 if BR2_powerpc_8540
- default 8548 if BR2_powerpc_8548
- default e300c2 if BR2_powerpc_e300c2
- default e300c3 if BR2_powerpc_e300c3
- default e500mc if BR2_powerpc_e500mc
- default v7 if BR2_sparc_v7
- default cypress if BR2_sparc_cypress
- default v8 if BR2_sparc_v8
- default supersparc if BR2_sparc_supersparc
- default hypersparc if BR2_sparc_hypersparc
- default sparclite if BR2_sparc_sparclite
- default f930 if BR2_sparc_f930
- default f934 if BR2_sparc_f934
- default sparclite86x if BR2_sparc_sparclite86x
- default sparclet if BR2_sparc_sparclet
- default tsc701 if BR2_sparc_tsc701
- default v9 if BR2_sparc_v9
- default v9 if BR2_sparc_v9a
- default v9 if BR2_sparc_v9b
- default ultrasparc if BR2_sparc_ultrasparc
- default ultrasparc3 if BR2_sparc_ultrasparc3
- default niagara if BR2_sparc_niagara
-
-config BR2_GCC_TARGET_ARCH
- string
- default i386 if BR2_x86_i386
- default i486 if BR2_x86_i486
- default i586 if BR2_x86_i586
- default pentium-mmx if BR2_x86_pentium_mmx
- default i686 if BR2_x86_i686
- default pentiumpro if BR2_x86_pentiumpro
- default pentium-m if BR2_x86_pentium_m
- default pentium2 if BR2_x86_pentium2
- default pentium3 if BR2_x86_pentium3
- default pentium4 if BR2_x86_pentium4
- default prescott if BR2_x86_prescott
- default nocona if BR2_x86_nocona
- default core2 if BR2_x86_core2
- default atom if BR2_x86_atom
- default k8 if BR2_x86_opteron
- default k8-sse3 if BR2_x86_opteron_sse3
- default barcelona if BR2_x86_barcelona
- default k6 if BR2_x86_k6
- default k6-2 if BR2_x86_k6_2
- default athlon if BR2_x86_athlon
- default athlon-4 if BR2_x86_athlon_4
- default winchip-c6 if BR2_x86_winchip_c6
- default winchip2 if BR2_x86_winchip2
- default c3 if BR2_x86_c3
- default c3-2 if BR2_x86_c32
- default geode if BR2_x86_geode
- default armv4t if BR2_arm7tdmi
- default armv3 if BR2_arm610
- default armv3 if BR2_arm710
- default armv4t if BR2_arm720t
- default armv4t if BR2_arm920t
- default armv4t if BR2_arm922t
- default armv5te if BR2_arm926t
- default armv5t if BR2_arm10t
- default armv6j if BR2_arm1136jf_s
- default armv6zk if BR2_arm1176jz_s
- default armv6zk if BR2_arm1176jzf_s
- default armv7-a if BR2_cortex_a8
- default armv7-a if BR2_cortex_a9
- default armv4 if BR2_sa110
- default armv4 if BR2_sa1100
- default armv5te if BR2_xscale
- default iwmmxt if BR2_iwmmxt
- default 68000 if BR2_m68k_68000
- default 68010 if BR2_m68k_68010
- default 68020 if BR2_m68k_68020
- default 68030 if BR2_m68k_68030
- default 68040 if BR2_m68k_68040
- default 68060 if BR2_m68k_68060
-
-config BR2_GCC_TARGET_ABI
- string
- default apcs-gnu if BR2_ARM_OABI
- default aapcs-linux if BR2_ARM_EABI
- default 32 if BR2_MIPS_OABI32
- default n32 if BR2_MIPS_NABI32
- default 64 if BR2_MIPS_NABI64
- default altivec if BR2_powerpc && BR2_PPC_ABI_altivec
- default no-altivec if BR2_powerpc && BR2_PPC_ABI_no-altivec
- default spe if BR2_powerpc && BR2_PPC_ABI_spe
- default no-spe if BR2_powerpc && BR2_PPC_ABI_no-spe
- default ibmlongdouble if BR2_powerpc && BR2_PPC_ABI_ibmlongdouble
- default ieeelongdouble if BR2_powerpc && BR2_PPC_ABI_ieeelongdouble
-
-config BR2_GCC_TARGET_CPU
- string
- default sparchfleon if BR2_sparc_sparchfleon
- default sparchfleonv8 if BR2_sparc_sparchfleonv8
- default sparcsfleon if BR2_sparc_sparcsfleon
- default sparcsfleonv8 if BR2_sparc_sparcsfleonv8
diff --git a/arch/Config.in.m68k b/arch/Config.in.m68k
new file mode 100644
index 0000000..b3d95b7
--- /dev/null
+++ b/arch/Config.in.m68k
@@ -0,0 +1,21 @@
+config BR2_ARCH
+ default "m68k" if BR2_m68k
+
+config BR2_ENDIAN
+ default "BIG"
+
+config BR2_GCC_TARGET_TUNE
+ default 68000 if BR2_m68k_68000
+ default 68010 if BR2_m68k_68010
+ default 68020 if BR2_m68k_68020
+ default 68030 if BR2_m68k_68030
+ default 68040 if BR2_m68k_68040
+ default 68060 if BR2_m68k_68060
+
+config BR2_GCC_TARGET_ARCH
+ default 68000 if BR2_m68k_68000
+ default 68010 if BR2_m68k_68010
+ default 68020 if BR2_m68k_68020
+ default 68030 if BR2_m68k_68030
+ default 68040 if BR2_m68k_68040
+ default 68060 if BR2_m68k_68060
diff --git a/arch/Config.in.microblaze b/arch/Config.in.microblaze
new file mode 100644
index 0000000..dbdd99a
--- /dev/null
+++ b/arch/Config.in.microblaze
@@ -0,0 +1,10 @@
+config BR2_ARCH
+ default "microblaze"
+
+config BR2_ENDIAN
+ default "LITTLE" if BR2_microblazeel
+ default "BIG" if BR2_microblazebe
+
+config BR2_microblaze
+ bool
+ default y if BR2_microblazeel || BR2_microblazebe
diff --git a/arch/Config.in.mips b/arch/Config.in.mips
index 93a21bf..c71c3f4 100644
--- a/arch/Config.in.mips
+++ b/arch/Config.in.mips
@@ -51,3 +51,28 @@ config BR2_MIPS_NABI64
bool "n64"
depends on BR2_ARCH_IS_64
endchoice
+
+config BR2_ARCH
+ default "mips" if BR2_mips
+ default "mipsel" if BR2_mipsel
+ default "mips64" if BR2_mips64
+ default "mips64el" if BR2_mips64el
+
+config BR2_ENDIAN
+ default "LITTLE" if BR2_mipsel || BR2_mips64el
+ default "BIG" if BR2_mips || BR2_mips64
+
+config BR2_GCC_TARGET_TUNE
+ default mips1 if BR2_mips_1
+ default mips2 if BR2_mips_2
+ default mips3 if BR2_mips_3
+ default mips4 if BR2_mips_4
+ default mips32 if BR2_mips_32
+ default mips32r2 if BR2_mips_32r2
+ default mips64 if BR2_mips_64
+ default mips64r2 if BR2_mips_64r2
+
+config BR2_GCC_TARGET_ABI
+ default 32 if BR2_MIPS_OABI32
+ default n32 if BR2_MIPS_NABI32
+ default 64 if BR2_MIPS_NABI64
diff --git a/arch/Config.in.powerpc b/arch/Config.in.powerpc
index 20b0b06..55c1651 100644
--- a/arch/Config.in.powerpc
+++ b/arch/Config.in.powerpc
@@ -81,3 +81,48 @@ config BR2_powerpc_SPE
bool "SPE"
depends on BR2_powerpc_8540 || BR2_powerpc_8548
endchoice
+
+config BR2_ARCH
+ default "powerpc" if BR2_powerpc
+
+config BR2_ENDIAN
+ default "BIG"
+
+config BR2_GCC_TARGET_TUNE
+ default 401 if BR2_powerpc_401
+ default 403 if BR2_powerpc_403
+ default 405 if BR2_powerpc_405
+ default 405fp if BR2_powerpc_405fp
+ default 440 if BR2_powerpc_440
+ default 440fp if BR2_powerpc_440fp
+ default 505 if BR2_powerpc_505
+ default 601 if BR2_powerpc_601
+ default 602 if BR2_powerpc_602
+ default 603 if BR2_powerpc_603
+ default 603e if BR2_powerpc_603e
+ default 604 if BR2_powerpc_604
+ default 604e if BR2_powerpc_604e
+ default 620 if BR2_powerpc_620
+ default 630 if BR2_powerpc_630
+ default 740 if BR2_powerpc_740
+ default 7400 if BR2_powerpc_7400
+ default 7450 if BR2_powerpc_7450
+ default 750 if BR2_powerpc_750
+ default 801 if BR2_powerpc_801
+ default 821 if BR2_powerpc_821
+ default 823 if BR2_powerpc_823
+ default 860 if BR2_powerpc_860
+ default 970 if BR2_powerpc_970
+ default 8540 if BR2_powerpc_8540
+ default 8548 if BR2_powerpc_8548
+ default e300c2 if BR2_powerpc_e300c2
+ default e300c3 if BR2_powerpc_e300c3
+ default e500mc if BR2_powerpc_e500mc
+
+config BR2_GCC_TARGET_ABI
+ default altivec if BR2_PPC_ABI_altivec
+ default no-altivec if BR2_PPC_ABI_no-altivec
+ default spe if BR2_PPC_ABI_spe
+ default no-spe if BR2_PPC_ABI_no-spe
+ default ibmlongdouble if BR2_PPC_ABI_ibmlongdouble
+ default ieeelongdouble if BR2_PPC_ABI_ieeelongdouble
diff --git a/arch/Config.in.sh b/arch/Config.in.sh
index 314c55a..cf70fd5 100644
--- a/arch/Config.in.sh
+++ b/arch/Config.in.sh
@@ -22,3 +22,20 @@ config BR2_sh4a
config BR2_sh4aeb
bool "sh4aeb (SH4A big endian)"
endchoice
+
+config BR2_ARCH
+ default "sh2" if BR2_sh2
+ default "sh2a" if BR2_sh2a
+ default "sh3" if BR2_sh3
+ default "sh3eb" if BR2_sh3eb
+ default "sh4" if BR2_sh4
+ default "sh4eb" if BR2_sh4eb
+ default "sh4a" if BR2_sh4a
+ default "sh4aeb" if BR2_sh4aeb
+ default "sh64" if BR2_sh64
+
+config BR2_ENDIAN
+ default "LITTLE" if BR2_sh3 || BR2_sh4 || BR2_sh4a || \
+ BR2_x86_64 || BR2_sh64
+ default "BIG" if BR2_sh2 || BR2_sh2a || BR2_sh3eb || \
+ BR2_sh4eb || BR2_sh4aeb
diff --git a/arch/Config.in.sparc b/arch/Config.in.sparc
index 85e0833..d810b75 100644
--- a/arch/Config.in.sparc
+++ b/arch/Config.in.sparc
@@ -36,3 +36,34 @@ config BR2_sparc_sparclet
config BR2_sparc_tsc701
bool "tsc701"
endchoice
+
+config BR2_ARCH
+ default "sparc" if BR2_sparc
+
+config BR2_ENDIAN
+ default "BIG"
+
+config BR2_GCC_TARGET_TUNE
+ default v7 if BR2_sparc_v7
+ default cypress if BR2_sparc_cypress
+ default v8 if BR2_sparc_v8
+ default supersparc if BR2_sparc_supersparc
+ default hypersparc if BR2_sparc_hypersparc
+ default sparclite if BR2_sparc_sparclite
+ default f930 if BR2_sparc_f930
+ default f934 if BR2_sparc_f934
+ default sparclite86x if BR2_sparc_sparclite86x
+ default sparclet if BR2_sparc_sparclet
+ default tsc701 if BR2_sparc_tsc701
+ default v9 if BR2_sparc_v9
+ default v9 if BR2_sparc_v9a
+ default v9 if BR2_sparc_v9b
+ default ultrasparc if BR2_sparc_ultrasparc
+ default ultrasparc3 if BR2_sparc_ultrasparc3
+ default niagara if BR2_sparc_niagara
+
+config BR2_GCC_TARGET_CPU
+ default sparchfleon if BR2_sparc_sparchfleon
+ default sparchfleonv8 if BR2_sparc_sparchfleonv8
+ default sparcsfleon if BR2_sparc_sparcsfleon
+ default sparcsfleonv8 if BR2_sparc_sparcsfleonv8
diff --git a/arch/Config.in.x86 b/arch/Config.in.x86
index 4f32d74..ef29a71 100644
--- a/arch/Config.in.x86
+++ b/arch/Config.in.x86
@@ -144,3 +144,92 @@ config BR2_x86_winchip2
select BR2_X86_CPU_HAS_MMX
depends on !BR2_x86_64
endchoice
+
+config BR2_ARCH
+ default "i386" if BR2_x86_i386
+ default "i486" if BR2_x86_i486
+ default "i586" if BR2_x86_i586
+ default "i586" if BR2_x86_pentium_mmx
+ default "i586" if BR2_x86_geode
+ default "i586" if BR2_x86_c3
+ default "i686" if BR2_x86_c32
+ default "i586" if BR2_x86_winchip_c6
+ default "i586" if BR2_x86_winchip2
+ default "i686" if BR2_x86_i686
+ default "i686" if BR2_x86_pentium2
+ default "i686" if BR2_x86_pentium3
+ default "i686" if BR2_x86_pentium4
+ default "i686" if BR2_x86_pentium_m
+ default "i686" if BR2_x86_pentiumpro
+ default "i686" if BR2_x86_prescott
+ default "i686" if BR2_x86_nocona && BR2_i386
+ default "i686" if BR2_x86_core2 && BR2_i386
+ default "i686" if BR2_x86_atom && BR2_i386
+ default "i686" if BR2_x86_opteron && BR2_i386
+ default "i686" if BR2_x86_opteron_sse3 && BR2_i386
+ default "i686" if BR2_x86_barcelona && BR2_i386
+ default "i686" if BR2_x86_k6
+ default "i686" if BR2_x86_k6_2
+ default "i686" if BR2_x86_athlon
+ default "i686" if BR2_x86_athlon_4
+ default "x86_64" if BR2_x86_64
+
+config BR2_ENDIAN
+ default "LITTLE"
+
+config BR2_GCC_TARGET_TUNE
+ default i386 if BR2_x86_i386
+ default i486 if BR2_x86_i486
+ default i586 if BR2_x86_i586
+ default pentium-mmx if BR2_x86_pentium_mmx
+ default i686 if BR2_x86_i686
+ default pentiumpro if BR2_x86_pentiumpro
+ default pentium-m if BR2_x86_pentium_m
+ default pentium2 if BR2_x86_pentium2
+ default pentium3 if BR2_x86_pentium3
+ default pentium4 if BR2_x86_pentium4
+ default prescott if BR2_x86_prescott
+ default nocona if BR2_x86_nocona
+ default core2 if BR2_x86_core2
+ default atom if BR2_x86_atom
+ default k8 if BR2_x86_opteron
+ default k8-sse3 if BR2_x86_opteron_sse3
+ default barcelona if BR2_x86_barcelona
+ default k6 if BR2_x86_k6
+ default k6-2 if BR2_x86_k6_2
+ default athlon if BR2_x86_athlon
+ default athlon-4 if BR2_x86_athlon_4
+ default winchip-c6 if BR2_x86_winchip_c6
+ default winchip2 if BR2_x86_winchip2
+ default c3 if BR2_x86_c3
+ default c3-2 if BR2_x86_c32
+ default geode if BR2_x86_geode
+ default generic if BR2_x86_generic
+
+config BR2_GCC_TARGET_ARCH
+ default i386 if BR2_x86_i386
+ default i486 if BR2_x86_i486
+ default i586 if BR2_x86_i586
+ default pentium-mmx if BR2_x86_pentium_mmx
+ default i686 if BR2_x86_i686
+ default pentiumpro if BR2_x86_pentiumpro
+ default pentium-m if BR2_x86_pentium_m
+ default pentium2 if BR2_x86_pentium2
+ default pentium3 if BR2_x86_pentium3
+ default pentium4 if BR2_x86_pentium4
+ default prescott if BR2_x86_prescott
+ default nocona if BR2_x86_nocona
+ default core2 if BR2_x86_core2
+ default atom if BR2_x86_atom
+ default k8 if BR2_x86_opteron
+ default k8-sse3 if BR2_x86_opteron_sse3
+ default barcelona if BR2_x86_barcelona
+ default k6 if BR2_x86_k6
+ default k6-2 if BR2_x86_k6_2
+ default athlon if BR2_x86_athlon
+ default athlon-4 if BR2_x86_athlon_4
+ default winchip-c6 if BR2_x86_winchip_c6
+ default winchip2 if BR2_x86_winchip2
+ default c3 if BR2_x86_c3
+ default c3-2 if BR2_x86_c32
+ default geode if BR2_x86_geode
^ permalink raw reply related
* [Buildroot] [PATCH] binutils: add version 2.23.1
From: Peter Korsgaard @ 2012-11-15 15:12 UTC (permalink / raw)
To: buildroot
In-Reply-To: <1352988528-20158-1-git-send-email-gustavo@zacarias.com.ar>
>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:
Gustavo> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Gustavo> ---
Gustavo> package/binutils/Config.in.host | 5 +++
Gustavo> package/binutils/binutils-2.23.1/120-sh-conf.patch | 29 +++++++++++++++
Gustavo> .../300-001_ld_makefile_patch.patch | 24 +++++++++++++
Gustavo> .../300-012_check_ldrunpath_length.patch | 21 +++++++++++
Gustavo> package/binutils/binutils-2.23.1/500-sysroot.patch | 37 ++++++++++++++++++++
Gustavo> 5 files changed, 116 insertions(+), 0 deletions(-)
Gustavo> create mode 100644 package/binutils/binutils-2.23.1/120-sh-conf.patch
Gustavo> create mode 100644 package/binutils/binutils-2.23.1/300-001_ld_makefile_patch.patch
Gustavo> create mode 100644 package/binutils/binutils-2.23.1/300-012_check_ldrunpath_length.patch
Gustavo> create mode 100644 package/binutils/binutils-2.23.1/500-sysroot.patch
Gustavo> diff --git a/package/binutils/Config.in.host b/package/binutils/Config.in.host
Gustavo> index 26c5f73..7a9eae8 100644
Gustavo> --- a/package/binutils/Config.in.host
Gustavo> +++ b/package/binutils/Config.in.host
Gustavo> @@ -36,6 +36,10 @@ choice
Gustavo> depends on !(BR2_avr32 || BR2_UCLIBC_VERSION_0_9_31)
Gustavo> bool "binutils 2.23"
Gustavo> + config BR2_BINUTILS_VERSION_2_23_1
Gustavo> + depends on !(BR2_avr32 || BR2_UCLIBC_VERSION_0_9_31)
Gustavo> + bool "binutils 2.23.1"
Gustavo> +
I know we have been doing it in the past because of various arch issues,
but does it make sense to keep both 2.23 and 2.23.1?
--
Bye, Peter Korsgaard
^ permalink raw reply
* [Buildroot] [PATCH 1/1] grantlee: fix lpthread build error
From: Arnout Vandecappelle @ 2012-11-15 14:51 UTC (permalink / raw)
To: buildroot
In-Reply-To: <50A4FF3B.1070800@gmail.com>
On 15/11/12 15:42, Zoltan Gyarmati wrote:
> Hi Arnout,
>
> Thanks for checking! Should i resend it with corrections, or it will be ok like this?
If you're willing to and have time for it, it's better to resend with
corrections.
If you think this should still be in 2012.11 (probably yes), you can help Peter
by adding that to the subject, like so:
git send-email --subject-prefix='PATCH for-2012.11' ...
Regards,
Arnout
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286540
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: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
^ permalink raw reply
* [Buildroot] [PATCH 6/6] arch: Config.in string configuration options must be quoted
From: Yann E. MORIN @ 2012-11-15 14:45 UTC (permalink / raw)
To: buildroot
In-Reply-To: <4376ef19f7a7e37034dc1ce844b6a13548e43653.1352987586.git.thomas.petazzoni@free-electrons.com>
On Thursday 15 November 2012 14:53:53 Thomas Petazzoni wrote:
> Suggested by Yann E. Morin.
In kernel-land, that would be written thus:
Reported-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
;-)
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software Designer | \ / CAMPAIGN | ^ |
| --==< O_o >==-- '------------.-------: X AGAINST | /e\ There is no |
| http://ymorin.is-a-geek.org/ | (*_*) | / \ HTML MAIL | """ conspiracy. |
'------------------------------'-------'------------------'--------------------'
^ permalink raw reply
* [Buildroot] [PATCH 1/1] grantlee: fix lpthread build error
From: Zoltan Gyarmati @ 2012-11-15 14:42 UTC (permalink / raw)
To: buildroot
In-Reply-To: <50A2A6F7.4050309@mind.be>
On 11/13/2012 09:00 PM, Arnout Vandecappelle wrote:
> On 13/11/12 13:05, Zoltan at osuosl.org wrote:
>> From: "Zoltan Gyarmati"<mr.zoltan.gyarmati@gmail.com>
>>
>>
>> Signed-off-by: Zoltan Gyarmati<mr.zoltan.gyarmati@gmail.com>
>
> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
> Tested-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
> (it already worked for me, but at least this patch doesn't break things)
>
> However, your patch still misses the following things:
>
> - The commit message is too vague. It should describe the problem in
> more detail,
> including the root cause. For example:
>
> grantlee: fix -lpthread build error
>
> Build fails because of missing -lpthread with toolchains that need it. It
> gives an error log like:
> Linking CXX executable testgenerictypes_exec
> /home/buildroot12git/output/host/usr/lib/gcc/arm-buildroot-linux-uclibcgnueabi/4.6.3/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld:
> /home/buildroot12git/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libQtCore.so:
> undefined reference to symbol 'pthread_cancel'
> /home/buildroot12git/output/host/usr/lib/gcc/arm-buildroot-linux-uclibcgnueabi/4.6.3/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld:
> note: 'pthread_cancel' is defined in DSO
> /home/buildroot12git/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/lib/libpthread.so.0
> so try adding it to the linker command line
> /home/buildroot12git/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/lib/libpthread.so.0:
> could not read symbols: Invalid operation
> collect2: ld returned 1 exit status
> make[3]: *** [templates/tests/testgenerictypes_exec] Error 1
> make[3]: Leaving directory
> `/home/buildroot12git/output/build/grantlee-0.2.0'
> make[2]: ***
> [templates/tests/CMakeFiles/testgenerictypes_exec.dir/all] Error 2
> make[2]: Leaving directory
> `/home/buildroot12git/output/build/grantlee-0.2.0'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory
> `/home/buildroot12git/output/build/grantlee-0.2.0'
> make: ***
> [/home/buildroot12git/output/build/grantlee-0.2.0/.stamp_built] Error
>
>
> - The patch itself should contain an equally detailed description (can
> be a copy
> of the commit message). It should also have your Signed-off-by line.
>
>
> Both of these are minor things, however.
>
> Regards,
> Arnout
>
>> ---
>> .../grantlee-0.2.0-fix-lphread-link-error.patch | 13
>> +++++++++++++
>> 1 file changed, 13 insertions(+)
>> create mode 100644
>> package/grantlee/grantlee-0.2.0-fix-lphread-link-error.patch
>>
>> diff --git
>> a/package/grantlee/grantlee-0.2.0-fix-lphread-link-error.patch
>> b/package/grantlee/grantlee-0.2.0-fix-lphread-link-error.patch
>> new file mode 100644
>> index 0000000..8293172
>> --- /dev/null
>> +++ b/package/grantlee/grantlee-0.2.0-fix-lphread-link-error.patch
>> @@ -0,0 +1,13 @@
>> +diff -rupN grantlee-0.2.0_orig/templates/tests/CMakeLists.txt
>> grantlee-0.2.0/templates/tests/CMakeLists.txt
>> +--- grantlee-0.2.0_orig/templates/tests/CMakeLists.txt 2012-11-13
>> 12:11:44.583379820 +0100
>> ++++ grantlee-0.2.0/templates/tests/CMakeLists.txt 2012-11-13
>> 11:35:18.000000000 +0100
>> +@@ -68,7 +68,8 @@ macro(GRANTLEE_TEMPLATES_UNIT_TESTS)
>> + ${_testresource_rcc_src}
>> + )
>> + add_test(${_testname} ${_testname}_exec )
>> +- target_link_libraries(${_testname}_exec ${QT_QTTEST_LIBRARY}
>> grantlee_core )
>> ++ find_package (Threads)
>> ++ target_link_libraries(${_testname}_exec ${QT_QTTEST_LIBRARY}
>> ${CMAKE_THREAD_LIBS_INIT} grantlee_core )
>> +
>> + set_property(GLOBAL APPEND PROPERTY TEST_COVERAGE
>> "${CMAKE_CURRENT_BINARY_DIR}/${_testname}_exec" )
>> + endforeach(_testname)
>
Hi Arnout,
Thanks for checking! Should i resend it with corrections, or it will be
ok like this?
--
br,
Zoltan Gyarmati
mail: mr.zoltan.gyarmati at gmail.com
freenode nick: zgyarmati
^ permalink raw reply
* [Buildroot] [PATCH 1/6] arch: improve definition of gcc mtune, mcpu, etc.
From: Yann E. MORIN @ 2012-11-15 14:41 UTC (permalink / raw)
To: buildroot
In-Reply-To: <8ef94365af539b190e9525a10c5b642dc7108cb9.1352987586.git.thomas.petazzoni@free-electrons.com>
Thomas, All,
On Thursday 15 November 2012 14:53:48 Thomas Petazzoni wrote:
> As suggested by Yann E. Morin, there is a better way than our current
> big Config.in.common to define the gcc mtune, mcpu, march,
> etc. values. We can split the setting of those values in each
> architecture file, which makes a lot more sense.
>
> Therefore, the Config.in file now creates empty kconfig variables
> BR2_ARCH, BR2_ENDIAN, BR2_GCC_TARGET_TUNE, BR2_GCC_TARGET_ARCH,
> BR2_GCC_TARGET_ABI and BR2_GCC_TARGET_CPU. The values of those
> variables are set by the individual Config.in.<arch> files. This is
> possible because such files are now only conditionally included
> depending on the top-level architecture that has been selected.
>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
You already had it, but here it is again:
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software Designer | \ / CAMPAIGN | ^ |
| --==< O_o >==-- '------------.-------: X AGAINST | /e\ There is no |
| http://ymorin.is-a-geek.org/ | (*_*) | / \ HTML MAIL | """ conspiracy. |
'------------------------------'-------'------------------'--------------------'
^ permalink raw reply
* [Buildroot] [PATCH] binutils: add version 2.23.1
From: Gustavo Zacarias @ 2012-11-15 14:08 UTC (permalink / raw)
To: buildroot
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
package/binutils/Config.in.host | 5 +++
package/binutils/binutils-2.23.1/120-sh-conf.patch | 29 +++++++++++++++
.../300-001_ld_makefile_patch.patch | 24 +++++++++++++
.../300-012_check_ldrunpath_length.patch | 21 +++++++++++
package/binutils/binutils-2.23.1/500-sysroot.patch | 37 ++++++++++++++++++++
5 files changed, 116 insertions(+), 0 deletions(-)
create mode 100644 package/binutils/binutils-2.23.1/120-sh-conf.patch
create mode 100644 package/binutils/binutils-2.23.1/300-001_ld_makefile_patch.patch
create mode 100644 package/binutils/binutils-2.23.1/300-012_check_ldrunpath_length.patch
create mode 100644 package/binutils/binutils-2.23.1/500-sysroot.patch
diff --git a/package/binutils/Config.in.host b/package/binutils/Config.in.host
index 26c5f73..7a9eae8 100644
--- a/package/binutils/Config.in.host
+++ b/package/binutils/Config.in.host
@@ -36,6 +36,10 @@ choice
depends on !(BR2_avr32 || BR2_UCLIBC_VERSION_0_9_31)
bool "binutils 2.23"
+ config BR2_BINUTILS_VERSION_2_23_1
+ depends on !(BR2_avr32 || BR2_UCLIBC_VERSION_0_9_31)
+ bool "binutils 2.23.1"
+
endchoice
config BR2_BINUTILS_VERSION
@@ -47,6 +51,7 @@ config BR2_BINUTILS_VERSION
default "2.21.1" if BR2_BINUTILS_VERSION_2_21_1
default "2.22" if BR2_BINUTILS_VERSION_2_22
default "2.23" if BR2_BINUTILS_VERSION_2_23
+ default "2.23.1" if BR2_BINUTILS_VERSION_2_23_1
config BR2_BINUTILS_EXTRA_CONFIG_OPTIONS
string "Additional binutils options"
diff --git a/package/binutils/binutils-2.23.1/120-sh-conf.patch b/package/binutils/binutils-2.23.1/120-sh-conf.patch
new file mode 100644
index 0000000..ea3d1b6
--- /dev/null
+++ b/package/binutils/binutils-2.23.1/120-sh-conf.patch
@@ -0,0 +1,29 @@
+r10231 | lethal | 2005-05-02 09:58:00 -0400 (Mon, 02 May 2005) | 13 lines
+
+Likewise, binutils has no idea about any of these new targets either, so we
+fix that up too.. now we're able to actually build a real toolchain for
+sh2a_nofpu- and other more ineptly named toolchains (and yes, there are more
+inept targets than that one, really. Go look, I promise).
+
+--- a/configure
++++ b/configure
+@@ -1495,7 +1495,7 @@
+ mips*-*-*)
+ noconfigdirs="$noconfigdirs gprof"
+ ;;
+- sh-*-* | sh64-*-*)
++ sh*-*-* | sh64-*-*)
+ case "${target}" in
+ sh*-*-elf)
+ ;;
+--- a/configure.ac
++++ b/configure.ac
+@@ -712,7 +712,7 @@
+ mips*-*-*)
+ noconfigdirs="$noconfigdirs gprof"
+ ;;
+- sh-*-* | sh64-*-*)
++ sh*-*-* | sh64-*-*)
+ case "${target}" in
+ sh*-*-elf)
+ ;;
diff --git a/package/binutils/binutils-2.23.1/300-001_ld_makefile_patch.patch b/package/binutils/binutils-2.23.1/300-001_ld_makefile_patch.patch
new file mode 100644
index 0000000..5cb0f61
--- /dev/null
+++ b/package/binutils/binutils-2.23.1/300-001_ld_makefile_patch.patch
@@ -0,0 +1,24 @@
+diff -u binutils-2.17.50.0.17.oorig/ld/Makefile.am binutils-2.17.50.0.17/ld/Makefile.am
+--- binutils-2.17.50.0.17.oorig/ld/Makefile.am 2007-06-18 19:29:29.000000000 +0200
++++ binutils-2.17.50.0.17/ld/Makefile.am 2007-06-25 10:00:36.000000000 +0200
+@@ -18,7 +18,7 @@
+ # We put the scripts in the directory $(scriptdir)/ldscripts.
+ # We can't put the scripts in $(datadir) because the SEARCH_DIR
+ # directives need to be different for native and cross linkers.
+-scriptdir = $(tooldir)/lib
++scriptdir = $(libdir)
+
+ EMUL = @EMUL@
+ EMULATION_OFILES = @EMULATION_OFILES@
+diff -u binutils-2.17.50.0.17.oorig/ld/Makefile.in binutils-2.17.50.0.17/ld/Makefile.in
+--- binutils-2.17.50.0.17.oorig/ld/Makefile.in 2007-06-18 19:29:29.000000000 +0200
++++ binutils-2.17.50.0.17/ld/Makefile.in 2007-06-25 10:00:36.000000000 +0200
+@@ -287,7 +287,7 @@
+ # We put the scripts in the directory $(scriptdir)/ldscripts.
+ # We can't put the scripts in $(datadir) because the SEARCH_DIR
+ # directives need to be different for native and cross linkers.
+-scriptdir = $(tooldir)/lib
++scriptdir = $(libdir)
+ BASEDIR = $(srcdir)/..
+ BFDDIR = $(BASEDIR)/bfd
+ INCDIR = $(BASEDIR)/include
diff --git a/package/binutils/binutils-2.23.1/300-012_check_ldrunpath_length.patch b/package/binutils/binutils-2.23.1/300-012_check_ldrunpath_length.patch
new file mode 100644
index 0000000..df78310
--- /dev/null
+++ b/package/binutils/binutils-2.23.1/300-012_check_ldrunpath_length.patch
@@ -0,0 +1,21 @@
+diff -Nura binutils-2.21.orig/ld/emultempl/elf32.em binutils-2.21/ld/emultempl/elf32.em
+--- binutils-2.21.orig/ld/emultempl/elf32.em 2010-10-29 09:10:36.000000000 -0300
++++ binutils-2.21/ld/emultempl/elf32.em 2010-12-10 09:26:56.746102724 -0300
+@@ -1270,6 +1270,8 @@
+ && command_line.rpath == NULL)
+ {
+ lib_path = (const char *) getenv ("LD_RUN_PATH");
++ if ((lib_path) && (strlen (lib_path) == 0))
++ lib_path = NULL;
+ if (gld${EMULATION_NAME}_search_needed (lib_path, &n,
+ force))
+ break;
+@@ -1497,6 +1499,8 @@
+ rpath = command_line.rpath;
+ if (rpath == NULL)
+ rpath = (const char *) getenv ("LD_RUN_PATH");
++ if ((rpath) && (strlen (rpath) == 0))
++ rpath = NULL;
+
+ for (abfd = link_info.input_bfds; abfd; abfd = abfd->link_next)
+ if (bfd_get_flavour (abfd) == bfd_target_elf_flavour)
diff --git a/package/binutils/binutils-2.23.1/500-sysroot.patch b/package/binutils/binutils-2.23.1/500-sysroot.patch
new file mode 100644
index 0000000..e49c795
--- /dev/null
+++ b/package/binutils/binutils-2.23.1/500-sysroot.patch
@@ -0,0 +1,37 @@
+Signed-off-by: Sven Rebhan <odinshorse@googlemail.com>
+
+Always try to prepend the sysroot prefix to absolute filenames first.
+
+http://bugs.gentoo.org/275666
+http://sourceware.org/bugzilla/show_bug.cgi?id=10340
+
+--- a/ld/ldfile.c
++++ b/ld/ldfile.c
+@@ -308,18 +308,25 @@
+ directory first. */
+ if (! entry->flags.maybe_archive)
+ {
+- if (entry->flags.sysrooted && IS_ABSOLUTE_PATH (entry->filename))
++ /* For absolute pathnames, try to always open the file in the
++ sysroot first. If this fails, try to open the file at the
++ given location. */
++ entry->flags.sysrooted = is_sysrooted_pathname (entry->filename);
++ if (!entry->flags.sysrooted && IS_ABSOLUTE_PATH (entry->filename)
++ && ld_sysroot)
+ {
+ char *name = concat (ld_sysroot, entry->filename,
+ (const char *) NULL);
+ if (ldfile_try_open_bfd (name, entry))
+ {
+ entry->filename = name;
++ entry->flags.sysrooted = TRUE;
+ return TRUE;
+ }
+ free (name);
+ }
+- else if (ldfile_try_open_bfd (entry->filename, entry))
++
++ if (ldfile_try_open_bfd (entry->filename, entry))
+ return TRUE;
+
+ if (IS_ABSOLUTE_PATH (entry->filename))
--
1.7.8.6
^ permalink raw reply related
page: next (older) | prev (newer) | latest
- recent:[subjects (threaded)|topics (new)|topics (active)]
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox