Pull request for branch xtensa
Hello,
This version includes an additional patch that quotes the string configuration options, as suggested by Yann E. Morin.
Thomas
The following changes since commit 53adfc5f4976704d426681a0404c1643db009552:
lua: refactor without useless define's (2012-11-15 12:39:19 +0100)
are available in the git repository at:
git://git.free-electrons.com/users/thomas-petazzoni/buildroot.git xtensa
for you to fetch changes up to 4376ef19f7a7e37034dc1ce844b6a13548e43653:
arch: Config.in string configuration options must be quoted (2012-11-15 14:52:30 +0100)
----------------------------------------------------------------
Chris Zankel (2):
xtensa: add support for the Xtensa architecture
xtensa: support configurable processor configurations
Thomas Petazzoni (4):
arch: improve definition of gcc mtune, mcpu, etc.
uClibc: remove useless linuxthreads-errno-fix patch
uClibc: update uClibc-snapshot.config to recent uClibcs
arch: Config.in string configuration options must be quoted
arch/Config.in | 70 +++++- 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 +++++++ arch/Config.in.xtensa | 33 +++ linux/Config.in | 3 +- package/binutils/binutils.mk | 9 + package/ltrace/Config.in | 1 + toolchain/Config.in | 2 +- toolchain/gcc/gcc-uclibc-4.x.mk | 4 + toolchain/gdb/gdb.mk | 4 + toolchain/toolchain-buildroot/Config.in.2 | 4 +- toolchain/toolchain-common.in | 2 +- toolchain/uClibc/Config.in | 5 +- toolchain/uClibc/uClibc-snapshot.config | 1 + .../uClibc.snapshot.linuxthreads-errno-fix.patch | 68 ------ toolchain/uClibc/uclibc.mk | 1 + 26 files changed, 435 insertions(+), 323 deletions(-) create mode 100644 arch/Config.in.aarch64 create mode 100644 arch/Config.in.avr32 delete mode 100644 arch/Config.in.common create mode 100644 arch/Config.in.m68k create mode 100644 arch/Config.in.microblaze create mode 100644 arch/Config.in.xtensa delete mode 100644 toolchain/uClibc/uClibc.snapshot.linuxthreads-errno-fix.patch
Thanks,
Signature · 1 line
Thomas Petazzoni
PATCH 1/6 arch: improve definition of gcc mtune, mcpu, etc.
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.
--- 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(-) create mode 100644 arch/Config.in.aarch64 create mode 100644 arch/Config.in.avr32 delete mode 100644 arch/Config.in.common create mode 100644 arch/Config.in.m68k create mode 100644 arch/Config.in.microblaze
arch/Config.in +55 -4
@@ -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
arch/Config.in.aarch64 new file +5 -0
@@ -0,0 +1,5 @@ +config BR2_ARCH + default "aarch64" if BR2_aarch64 + +config BR2_ENDIAN + default "LITTLE"
arch/Config.in.arm +52 -0
55 lines not on this page · raw message
arch/Config.in.avr32 new file +5 -0
@@ -0,0 +1,5 @@ +config BR2_ARCH + default "avr32" + +config BR2_ENDIAN + default "BIG"
arch/Config.in.bfin +6 -0
@@ -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"
arch/Config.in.common deleted +0 -245
245 lines not on this page · raw message
arch/Config.in.m68k new file +21 -0
@@ -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
arch/Config.in.microblaze new file +10 -0
@@ -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
arch/Config.in.mips +25 -0
@@ -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
arch/Config.in.powerpc +45 -0
48 lines not on this page · raw message
arch/Config.in.sh +17 -0
@@ -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
arch/Config.in.sparc +31 -0
@@ -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
arch/Config.in.x86 +89 -0
92 lines not on this page · raw message
Signature · 1 line
1.7.9.5
PATCH 1/6 arch: improve definition of gcc mtune, mcpu, etc.
Thomas, All,
Quoted 5 lines · 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.
Quoted 8 lines
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_ABIandBR2_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 <[email protected]>
You already had it, but here it is again:
Regards,
Yann E. MORIN.
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | 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. | '------------------------------'-------'------------------'--------------------'
PATCH 2/6 uClibc: remove useless linuxthreads-errno-fix patch
In reply to Thomas PetazzoniThis patch has since a long time been merged upstream in uClibc, so it cannot apply on any of the recent uClibc snapshots.
--- .../uClibc.snapshot.linuxthreads-errno-fix.patch | 68 -------------------- 1 file changed, 68 deletions(-) delete mode 100644 toolchain/uClibc/uClibc.snapshot.linuxthreads-errno-fix.patch
toolchain/uClibc/uClibc.snapshot.linuxthreads-errno-fix.patch deleted +0 -68
@@ -1,68 +0,0 @@ -From af8b2d71ce37b9d4d24ddbc755cdea68de02949a Mon Sep 17 00:00:00 2001 -From: Peter Korsgaard <[email protected]> -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 <[email protected]> ---- - 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 -
Signature · 1 line
1.7.9.5
PATCH 2/6 uClibc: remove useless linuxthreads-errno-fix patch
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> 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 <[email protected]> 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 <[email protected]>
Thomas> -Date: Mon, 5 Jul 2010 14:08:17 +0200
Thomas> -Subject: [PATCH] don't make __errno_location / __h_errno_location hidden
Signature · 1 line
Bye, Peter Korsgaard
PATCH 2/6 uClibc: remove useless linuxthreads-errno-fix patch
Quoted 6 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> 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
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH 3/6 uClibc: update uClibc-snapshot.config to recent uClibcs
In reply to Thomas Petazzoni--- toolchain/uClibc/uClibc-snapshot.config | 1 + 1 file changed, 1 insertion(+)
toolchain/uClibc/uClibc-snapshot.config +1 -0
@@ -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
Signature · 1 line
1.7.9.5
PATCH 4/6 xtensa: add support for the Xtensa architecture
In reply to Thomas PetazzoniFrom: Chris Zankel <[email protected]>
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].
--- 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(-) create mode 100644 arch/Config.in.xtensa
arch/Config.in +11 -0
@@ -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
arch/Config.in.xtensa new file +2 -0
@@ -0,0 +1,2 @@ +config BR2_ARCH + default "xtensa" if BR2_xtensa
linux/Config.in +2 -1
@@ -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"
package/ltrace/Config.in +1 -0
@@ -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.
toolchain/Config.in +1 -1
@@ -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
toolchain/toolchain-buildroot/Config.in.2 +3 -1
@@ -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"
toolchain/toolchain-common.in +1 -1
@@ -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
toolchain/uClibc/Config.in +3 -2
@@ -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"
toolchain/uClibc/uclibc.mk +1 -0
@@ -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))
Signature · 1 line
1.7.9.5
PATCH 5/6 xtensa: support configurable processor configurations
In reply to Thomas PetazzoniFrom: Chris Zankel <[email protected]>
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'].
--- 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(+)
arch/Config.in.xtensa +31 -0
@@ -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
package/binutils/binutils.mk +9 -0
@@ -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))
toolchain/gcc/gcc-uclibc-4.x.mk +4 -0
@@ -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
toolchain/gdb/gdb.mk +4 -0
@@ -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
Signature · 1 line
1.7.9.5
PATCH 6/6 arch: Config.in string configuration options must be quoted
In reply to Thomas PetazzoniSuggested by Yann E. Morin.
--- 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(-)
arch/Config.in.arm +39 -39
@@ -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
arch/Config.in.m68k +12 -12
@@ -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
arch/Config.in.mips +11 -11
@@ -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
arch/Config.in.powerpc +35 -35
75 lines not on this page · raw message
arch/Config.in.sparc +21 -21
47 lines not on this page · raw message
arch/Config.in.x86 +53 -53
111 lines not on this page · raw message
Signature · 1 line
1.7.9.5
PATCH 6/6 arch: Config.in string configuration options must be quoted
Quoted 1 line · On Thursday 15 November 2012 14:53:53 Thomas Petazzoni wrote:
Suggested by Yann E. Morin.
In kernel-land, that would be written thus:
;-)
Quoted 1 line
Signed-off-by Thomas Petazzoni <[email protected]>
Regards,
Yann E. MORIN.
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | 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. | '------------------------------'-------'------------------'--------------------'
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> 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.
Signature · 1 line
Bye, Peter Korsgaard