* [Buildroot] [pull request] Pull request for branch toolchain-config-improvements
@ 2010-01-12 23:27 Thomas Petazzoni
2010-01-12 23:27 ` [Buildroot] [PATCH 1/6] Move locale purge option to a more logical location Thomas Petazzoni
` (5 more replies)
0 siblings, 6 replies; 9+ messages in thread
From: Thomas Petazzoni @ 2010-01-12 23:27 UTC (permalink / raw)
To: buildroot
The following changes since commit 6327fbc8b62a7728f9ba546eb04046c0adc4112f:
Peter Korsgaard (1):
kernel-headers: bump 2.6.27.x / 2.6.31.x / 2.6.32.x stable versions
are available in the git repository at:
git://git.busybox.net/~tpetazzoni/git/buildroot toolchain-config-improvements
Thomas Petazzoni (6):
Move locale purge option to a more logical location
lzma: Use BR2_INSTALL_LIBSTDCPP instead of BR2_GCC_CROSS_CXX like in other packages
Move BR2_SOFT_FLOAT and BR2_VFP_FLOAT to Build options
Move BR2_TARGET_OPTIMIZATION to Build Options and rename it
Update defconfigs after BR2_TARGET_OPTIMIZATION rename
toolchain: Clarify configuration option files organization
Config.in | 54 ++++++++++
configs/arm_toolchain_defconfig | 2 +-
configs/at91rm9200df_defconfig | 2 +-
configs/at91rm9200df_ext_bare_defconfig | 2 +-
configs/at91rm9200df_ext_defconfig | 2 +-
configs/at91sam9260dfc_defconfig | 2 +-
configs/at91sam9260dfc_ext_bare_defconfig | 2 +-
configs/at91sam9260dfc_ext_defconfig | 2 +-
configs/at91sam9260pf_defconfig | 2 +-
configs/at91sam9261ek_defconfig | 2 +-
configs/at91sam9261ek_ext_bare_defconfig | 2 +-
configs/at91sam9261ek_ext_defconfig | 2 +-
configs/at91sam9263ek_defconfig | 2 +-
configs/at91sam9263ek_ext_bare_defconfig | 2 +-
configs/at91sam9263ek_ext_defconfig | 2 +-
configs/at91sam9g20dfc_defconfig | 2 +-
configs/at91sam9g20dfc_ext_bare_defconfig | 2 +-
configs/at91sam9g20dfc_ext_defconfig | 2 +-
configs/atngw100-base_defconfig | 2 +-
configs/atngw100_defconfig | 2 +-
configs/atstk1005_defconfig | 2 +-
configs/atstk100x_defconfig | 2 +-
configs/i386_defconfig | 2 +-
configs/i686_defconfig | 2 +-
configs/integrator926_defconfig | 2 +-
configs/integrator926_huge_defconfig | 2 +-
configs/kb9202_defconfig | 2 +-
configs/v100sc2_defconfig | 2 +-
package/Makefile.in | 5 +-
package/lzma/Config.in | 4 +-
toolchain/Config.in | 16 +--
toolchain/Config.in.1 | 9 --
toolchain/{Config.in.2 => Config.in.buildroot} | 113 ++++++---------------
toolchain/Config.in.external | 128 ++++++++++++++++++++++++
toolchain/external-toolchain/Config.in | 22 ----
toolchain/external-toolchain/Config.in.2 | 17 ---
toolchain/gcc/Makefile.in | 1 -
37 files changed, 251 insertions(+), 172 deletions(-)
delete mode 100644 toolchain/Config.in.1
rename toolchain/{Config.in.2 => Config.in.buildroot} (57%)
create mode 100644 toolchain/Config.in.external
delete mode 100644 toolchain/external-toolchain/Config.in
delete mode 100644 toolchain/external-toolchain/Config.in.2
Thanks,
--
Thomas Petazzoni
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] [PATCH 1/6] Move locale purge option to a more logical location
2010-01-12 23:27 [Buildroot] [pull request] Pull request for branch toolchain-config-improvements Thomas Petazzoni
@ 2010-01-12 23:27 ` Thomas Petazzoni
2010-01-12 23:27 ` [Buildroot] [PATCH 2/6] lzma: Use BR2_INSTALL_LIBSTDCPP instead of BR2_GCC_CROSS_CXX like in other packages Thomas Petazzoni
` (4 subsequent siblings)
5 siblings, 0 replies; 9+ messages in thread
From: Thomas Petazzoni @ 2010-01-12 23:27 UTC (permalink / raw)
To: buildroot
The options to purge unwanted locale was currently part of the
toolchain options. However, this option has nothing to do with the
toolchain itself, but is rather an optional cleanup that can be
performed after cleaning the target filesystem.
Therefore, this option is moved to the "Build options" part, together
with the options to keep or not development files, documentation and
so forth.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
Config.in | 21 +++++++++++++++++++++
toolchain/Config.in.2 | 21 ---------------------
2 files changed, 21 insertions(+), 21 deletions(-)
diff --git a/Config.in b/Config.in
index e4edaae..c33701a 100644
--- a/Config.in
+++ b/Config.in
@@ -338,6 +338,27 @@ config BR2_HAVE_DEVFILES
Install headers and static libraries in the
target filesystem
+config BR2_ENABLE_LOCALE_PURGE
+ bool "Purge unwanted locales"
+ help
+ Explicitly specify what locales to install on target. If N
+ then all locales supported by packages are installed.
+
+config BR2_ENABLE_LOCALE_WHITELIST
+ string "Locales to keep"
+ default "C en_US de fr"
+ depends on BR2_ENABLE_LOCALE_PURGE
+ help
+ Whitespace seperated list of locales to allow on target.
+ Locales not listed here will be removed from the target.
+ See 'locale -a' on your host for a list of locales available
+ on your build host, or have a look in /usr/share/locale in
+ the target file system for available locales.
+
+ Notice that listing a locale here doesn't guarantee that it
+ will be available on the target - That purely depends on the
+ support for that locale in the selected packages.
+
source package/gnuconfig/Config.in
endmenu
diff --git a/toolchain/Config.in.2 b/toolchain/Config.in.2
index 6317ff4..0fb90ce 100644
--- a/toolchain/Config.in.2
+++ b/toolchain/Config.in.2
@@ -45,27 +45,6 @@ config BR2_ENABLE_LOCALE_PREGENERATED
Say N here unless your buildhost lacks locale support and you
desparately want to use internationalization on your target.
-config BR2_ENABLE_LOCALE_PURGE
- bool "Purge unwanted locales"
- help
- Explicitly specify what locales to install on target. If N
- then all locales supported by packages are installed.
-
-config BR2_ENABLE_LOCALE_WHITELIST
- string "Locales to keep"
- default "C en_US de fr"
- depends on BR2_ENABLE_LOCALE_PURGE
- help
- Whitespace seperated list of locales to allow on target.
- Locales not listed here will be removed from the target.
- See 'locale -a' on your host for a list of locales available
- on your build host, or have a look in /usr/share/locale in
- the target file system for available locales.
-
- Notice that listing a locale here doesn't guarantee that it
- will be available on the target - That purely depends on the
- support for that locale in the selected packages.
-
config BR2_USE_WCHAR
bool "Enable WCHAR support"
help
--
1.6.3.3
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [Buildroot] [PATCH 2/6] lzma: Use BR2_INSTALL_LIBSTDCPP instead of BR2_GCC_CROSS_CXX like in other packages
2010-01-12 23:27 [Buildroot] [pull request] Pull request for branch toolchain-config-improvements Thomas Petazzoni
2010-01-12 23:27 ` [Buildroot] [PATCH 1/6] Move locale purge option to a more logical location Thomas Petazzoni
@ 2010-01-12 23:27 ` Thomas Petazzoni
2010-01-12 23:27 ` [Buildroot] [PATCH 3/6] Move BR2_SOFT_FLOAT and BR2_VFP_FLOAT to Build options Thomas Petazzoni
` (3 subsequent siblings)
5 siblings, 0 replies; 9+ messages in thread
From: Thomas Petazzoni @ 2010-01-12 23:27 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/lzma/Config.in | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/package/lzma/Config.in b/package/lzma/Config.in
index ab1ea59..11251d1 100644
--- a/package/lzma/Config.in
+++ b/package/lzma/Config.in
@@ -1,6 +1,6 @@
config BR2_PACKAGE_LZMA
bool "lzma"
- depends on BR2_GCC_CROSS_CXX
+ depends on BR2_INSTALL_LIBSTDCPP
help
Lempel Ziv compression method (LZMA) is a compression
algorithm with high compression ratio.
@@ -8,4 +8,4 @@ config BR2_PACKAGE_LZMA
http://tukaani.org/lzma/
comment "lzma requires a toolchain with C++ support"
- depends on !BR2_GCC_CROSS_CXX
+ depends on !BR2_INSTALL_LIBSTDCPP
--
1.6.3.3
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [Buildroot] [PATCH 3/6] Move BR2_SOFT_FLOAT and BR2_VFP_FLOAT to Build options
2010-01-12 23:27 [Buildroot] [pull request] Pull request for branch toolchain-config-improvements Thomas Petazzoni
2010-01-12 23:27 ` [Buildroot] [PATCH 1/6] Move locale purge option to a more logical location Thomas Petazzoni
2010-01-12 23:27 ` [Buildroot] [PATCH 2/6] lzma: Use BR2_INSTALL_LIBSTDCPP instead of BR2_GCC_CROSS_CXX like in other packages Thomas Petazzoni
@ 2010-01-12 23:27 ` Thomas Petazzoni
2010-01-28 16:26 ` Peter Korsgaard
2010-01-12 23:27 ` [Buildroot] [PATCH 4/6] Move BR2_TARGET_OPTIMIZATION to Build Options and rename it Thomas Petazzoni
` (2 subsequent siblings)
5 siblings, 1 reply; 9+ messages in thread
From: Thomas Petazzoni @ 2010-01-12 23:27 UTC (permalink / raw)
To: buildroot
The soft floating point related options not only affect how the
toolchain is built, but more importantly affect how packages are
built. Therefore, just like optimization or stripping options,
floating point related options are global, and belong to the Build
options menu.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
Config.in | 26 ++++++++++++++++++++++++++
toolchain/Config.in.2 | 26 --------------------------
2 files changed, 26 insertions(+), 26 deletions(-)
diff --git a/Config.in b/Config.in
index c33701a..a658b40 100644
--- a/Config.in
+++ b/Config.in
@@ -300,6 +300,32 @@ config BR2_OPTIMIZE_S
endchoice
+config BR2_PREFER_SOFT_FLOAT
+ bool
+ default y if BR2_arm || BR2_armeb || BR2_avr32 || BR2_mips || BR2_mipsel || BR2_nios2
+
+config BR2_SOFT_FLOAT
+ bool "Use software floating point by default"
+ depends on BR2_arm || BR2_armeb || BR2_avr32 || BR2_mips || BR2_mipsel || BR2_powerpc || BR2_nios2
+ default $(BR2_PREFER_SOFT_FLOAT)
+ help
+ If your target CPU does not have a Floating Point Unit (FPU) or a
+ kernel FPU emulator, but you still wish to support floating point
+ functions, then everything will need to be compiled with soft
+ floating point support (-msoft-float).
+
+config BR2_VFP_FLOAT
+ bool "Use ARM Vector Floating Point unit"
+ depends on !BR2_SOFT_FLOAT
+ depends on BR2_arm || BR2_armeb
+ help
+ Setting this option will enable the "-mfpu=vfp" option.
+ If your ARM CPU has a Vector Floating Point Unit (VFP)
+ and the toolchain supports the option, then the
+ code can be optimized.
+
+ Most people will answer N.
+
config BR2_PREFER_STATIC_LIB
bool "prefer static libraries"
help
diff --git a/toolchain/Config.in.2 b/toolchain/Config.in.2
index 0fb90ce..0cb1384 100644
--- a/toolchain/Config.in.2
+++ b/toolchain/Config.in.2
@@ -53,20 +53,6 @@ config BR2_USE_WCHAR
If you have an external binary toolchain that has been built
with WCHAR support then enable this option.
-config BR2_PREFER_SOFT_FLOAT
- bool
- default y if BR2_arm || BR2_armeb || BR2_avr32 || BR2_mips || BR2_mipsel || BR2_nios2
-
-config BR2_SOFT_FLOAT
- bool "Use software floating point by default"
- depends on BR2_arm || BR2_armeb || BR2_avr32 || BR2_mips || BR2_mipsel || BR2_powerpc || BR2_nios2
- default $(BR2_PREFER_SOFT_FLOAT)
- help
- If your target CPU does not have a Floating Point Unit (FPU) or a
- kernel FPU emulator, but you still wish to support floating point
- functions, then everything will need to be compiled with soft
- floating point support (-msoft-float).
-
config BR2_USE_SSP
bool "Enable stack protection support"
help
@@ -146,18 +132,6 @@ config BR2_ENABLE_MULTILIB
help
Build libraries to support different ABIs.
-config BR2_VFP_FLOAT
- bool "Use ARM Vector Floating Point unit"
- depends on !BR2_SOFT_FLOAT
- depends on BR2_arm || BR2_armeb
- help
- Setting this option will enable the "-mfpu=vfp" option.
- If your ARM CPU has a Vector Floating Point Unit (VFP)
- and the toolchain supports the option, then the
- code can be optimized.
-
- Most people will answer N.
-
config BR2_CROSS_TOOLCHAIN_TARGET_UTILS
bool "Include target utils in cross toolchain"
default y
--
1.6.3.3
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [Buildroot] [PATCH 4/6] Move BR2_TARGET_OPTIMIZATION to Build Options and rename it
2010-01-12 23:27 [Buildroot] [pull request] Pull request for branch toolchain-config-improvements Thomas Petazzoni
` (2 preceding siblings ...)
2010-01-12 23:27 ` [Buildroot] [PATCH 3/6] Move BR2_SOFT_FLOAT and BR2_VFP_FLOAT to Build options Thomas Petazzoni
@ 2010-01-12 23:27 ` Thomas Petazzoni
2010-01-12 23:27 ` [Buildroot] [PATCH 5/6] Update defconfigs after BR2_TARGET_OPTIMIZATION rename Thomas Petazzoni
2010-01-12 23:27 ` [Buildroot] [PATCH 6/6] toolchain: Clarify configuration option files organization Thomas Petazzoni
5 siblings, 0 replies; 9+ messages in thread
From: Thomas Petazzoni @ 2010-01-12 23:27 UTC (permalink / raw)
To: buildroot
BR2_TARGET_OPTIMIZATION allows to add any CFLAGS for the target
packages building process. Therefore, it is more a Build Option than a
Toolchain Option, that's why we move it to the Build Options menu.
Since it is not restricted to optimization flags, we rename it to
BR2_EXTRA_TARGET_CFLAGS.
Finally, since the -Os optimization flag is already handled by other
Buildroot build options, we remove it from the default value.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
Config.in | 7 +++++++
package/Makefile.in | 5 +++--
toolchain/Config.in.2 | 6 ------
toolchain/gcc/Makefile.in | 1 -
4 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/Config.in b/Config.in
index a658b40..2724045 100644
--- a/Config.in
+++ b/Config.in
@@ -1,3 +1,4 @@
+
#
mainmenu "Buildroot2 Configuration"
@@ -326,6 +327,12 @@ config BR2_VFP_FLOAT
Most people will answer N.
+config BR2_EXTRA_TARGET_CFLAGS
+ string "Extra CFLAGS for target packages"
+ default "-pipe"
+ help
+ Extra CFLAGS to use when building packages for the target.
+
config BR2_PREFER_STATIC_LIB
bool "prefer static libraries"
help
diff --git a/package/Makefile.in b/package/Makefile.in
index e643577..d23a17e 100644
--- a/package/Makefile.in
+++ b/package/Makefile.in
@@ -34,10 +34,11 @@ ifeq ($(BR2_DEBUG_3),y)
TARGET_DEBUGGING=-g3
endif
+EXTRA_TARGET_CFLAGS=$(call qstrip,$(BR2_EXTRA_TARGET_CFLAGS))
#########################################################################
ifeq ($(BR2_TOOLCHAIN_BUILDROOT),y)
-TARGET_CFLAGS=$(TARGET_OPTIMIZATION) $(TARGET_DEBUGGING) \
+TARGET_CFLAGS=$(TARGET_OPTIMIZATION) $(TARGET_DEBUGGING) $(EXTRA_TARGET_CFLAGS) \
-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include
TARGET_LDFLAGS+=-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib
ifeq ($(BR2_TOOLCHAIN_SYSROOT),y)
@@ -91,7 +92,7 @@ TARGET_CXXFLAGS=$(TARGET_CFLAGS)
# else it's an external toolchain
#########################################################################
else
-TARGET_CFLAGS=$(TARGET_OPTIMIZATION) $(TARGET_DEBUGGING) --sysroot $(STAGING_DIR)/
+TARGET_CFLAGS=$(TARGET_OPTIMIZATION) $(TARGET_DEBUGGING) $(EXTRA_TARGET_CFLAGS) --sysroot $(STAGING_DIR)/
TARGET_CXXFLAGS=$(TARGET_CFLAGS)
TARGET_LDFLAGS=--sysroot $(STAGING_DIR)/
endif
diff --git a/toolchain/Config.in.2 b/toolchain/Config.in.2
index 0cb1384..e404657 100644
--- a/toolchain/Config.in.2
+++ b/toolchain/Config.in.2
@@ -116,12 +116,6 @@ config BR2_INSTALL_LIBSTDCPP
support and you want to use the compiler / library then you need
to select this option.
-config BR2_TARGET_OPTIMIZATION
- string "Target Optimizations"
- default "-Os -pipe"
- help
- Optimizations to use when building for the target host.
-
if BR2_TOOLCHAIN_BUILDROOT
source "toolchain/elf2flt/Config.in"
source "toolchain/mklibs/Config.in"
diff --git a/toolchain/gcc/Makefile.in b/toolchain/gcc/Makefile.in
index c3e21cf..66473de 100644
--- a/toolchain/gcc/Makefile.in
+++ b/toolchain/gcc/Makefile.in
@@ -5,7 +5,6 @@
# the top level.
GCC_VERSION:=$(call qstrip,$(BR2_GCC_VERSION))
-TARGET_OPTIMIZATION:=$(call qstrip,$(BR2_TARGET_OPTIMIZATION))
EXTRA_GCC_CONFIG_OPTIONS:=$(call qstrip,$(BR2_EXTRA_GCC_CONFIG_OPTIONS))
ifeq ($(call qstrip,$(BR2_GCC_VERSION_SNAP)),y)
--
1.6.3.3
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [Buildroot] [PATCH 5/6] Update defconfigs after BR2_TARGET_OPTIMIZATION rename
2010-01-12 23:27 [Buildroot] [pull request] Pull request for branch toolchain-config-improvements Thomas Petazzoni
` (3 preceding siblings ...)
2010-01-12 23:27 ` [Buildroot] [PATCH 4/6] Move BR2_TARGET_OPTIMIZATION to Build Options and rename it Thomas Petazzoni
@ 2010-01-12 23:27 ` Thomas Petazzoni
2010-01-12 23:27 ` [Buildroot] [PATCH 6/6] toolchain: Clarify configuration option files organization Thomas Petazzoni
5 siblings, 0 replies; 9+ messages in thread
From: Thomas Petazzoni @ 2010-01-12 23:27 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
configs/arm_toolchain_defconfig | 2 +-
configs/at91rm9200df_defconfig | 2 +-
configs/at91rm9200df_ext_bare_defconfig | 2 +-
configs/at91rm9200df_ext_defconfig | 2 +-
configs/at91sam9260dfc_defconfig | 2 +-
configs/at91sam9260dfc_ext_bare_defconfig | 2 +-
configs/at91sam9260dfc_ext_defconfig | 2 +-
configs/at91sam9260pf_defconfig | 2 +-
configs/at91sam9261ek_defconfig | 2 +-
configs/at91sam9261ek_ext_bare_defconfig | 2 +-
configs/at91sam9261ek_ext_defconfig | 2 +-
configs/at91sam9263ek_defconfig | 2 +-
configs/at91sam9263ek_ext_bare_defconfig | 2 +-
configs/at91sam9263ek_ext_defconfig | 2 +-
configs/at91sam9g20dfc_defconfig | 2 +-
configs/at91sam9g20dfc_ext_bare_defconfig | 2 +-
configs/at91sam9g20dfc_ext_defconfig | 2 +-
configs/atngw100-base_defconfig | 2 +-
configs/atngw100_defconfig | 2 +-
configs/atstk1005_defconfig | 2 +-
configs/atstk100x_defconfig | 2 +-
configs/i386_defconfig | 2 +-
configs/i686_defconfig | 2 +-
configs/integrator926_defconfig | 2 +-
configs/integrator926_huge_defconfig | 2 +-
configs/kb9202_defconfig | 2 +-
configs/v100sc2_defconfig | 2 +-
27 files changed, 27 insertions(+), 27 deletions(-)
diff --git a/configs/arm_toolchain_defconfig b/configs/arm_toolchain_defconfig
index f044e51..136b0d7 100644
--- a/configs/arm_toolchain_defconfig
+++ b/configs/arm_toolchain_defconfig
@@ -291,7 +291,7 @@ BR2_PTHREADS_OLD=y
# BR2_PTHREADS_NATIVE is not set
BR2_GCC_CROSS_CXX=y
BR2_INSTALL_LIBSTDCPP=y
-BR2_TARGET_OPTIMIZATION="-Os -pipe"
+BR2_EXTRA_TARGET_CFLAGS="-pipe"
# BR2_ELF2FLT is not set
# BR2_MKLIBS is not set
# BR2_PACKAGE_SSTRIP_TARGET is not set
diff --git a/configs/at91rm9200df_defconfig b/configs/at91rm9200df_defconfig
index 3d98b0f..c8786a9 100644
--- a/configs/at91rm9200df_defconfig
+++ b/configs/at91rm9200df_defconfig
@@ -306,7 +306,7 @@ BR2_PTHREADS_OLD=y
# BR2_PTHREADS_NATIVE is not set
BR2_GCC_CROSS_CXX=y
BR2_INSTALL_LIBSTDCPP=y
-BR2_TARGET_OPTIMIZATION="-Os -pipe"
+BR2_EXTRA_TARGET_CFLAGS="-pipe"
# BR2_ELF2FLT is not set
# BR2_MKLIBS is not set
BR2_PACKAGE_SSTRIP_TARGET=y
diff --git a/configs/at91rm9200df_ext_bare_defconfig b/configs/at91rm9200df_ext_bare_defconfig
index 84f6b7e..12666a3 100644
--- a/configs/at91rm9200df_ext_bare_defconfig
+++ b/configs/at91rm9200df_ext_bare_defconfig
@@ -218,7 +218,7 @@ BR2_PTHREADS_OLD=y
# BR2_PTHREADS_NATIVE is not set
BR2_GCC_CROSS_CXX=y
BR2_INSTALL_LIBSTDCPP=y
-BR2_TARGET_OPTIMIZATION="-Os -pipe"
+BR2_EXTRA_TARGET_CFLAGS="-pipe"
#
# Package Selection for the target
diff --git a/configs/at91rm9200df_ext_defconfig b/configs/at91rm9200df_ext_defconfig
index 1dea062..386777a 100644
--- a/configs/at91rm9200df_ext_defconfig
+++ b/configs/at91rm9200df_ext_defconfig
@@ -238,7 +238,7 @@ BR2_PTHREADS_OLD=y
# BR2_PTHREADS_NATIVE is not set
BR2_GCC_CROSS_CXX=y
BR2_INSTALL_LIBSTDCPP=y
-BR2_TARGET_OPTIMIZATION="-Os -pipe"
+BR2_EXTRA_TARGET_CFLAGS="-pipe"
#
# Package Selection for the target
diff --git a/configs/at91sam9260dfc_defconfig b/configs/at91sam9260dfc_defconfig
index 1b4094e..3ab9f0c 100644
--- a/configs/at91sam9260dfc_defconfig
+++ b/configs/at91sam9260dfc_defconfig
@@ -324,7 +324,7 @@ BR2_INET_RPC=y
BR2_USE_WCHAR=y
# BR2_SOFT_FLOAT is not set
# BR2_VFP_FLOAT is not set
-BR2_TARGET_OPTIMIZATION="-Os -pipe"
+BR2_EXTRA_TARGET_CFLAGS="-pipe"
BR2_CROSS_TOOLCHAIN_TARGET_UTILS=y
#
diff --git a/configs/at91sam9260dfc_ext_bare_defconfig b/configs/at91sam9260dfc_ext_bare_defconfig
index d99cfa2..835ee14 100644
--- a/configs/at91sam9260dfc_ext_bare_defconfig
+++ b/configs/at91sam9260dfc_ext_bare_defconfig
@@ -216,7 +216,7 @@ BR2_PTHREADS_OLD=y
# BR2_PTHREADS_NATIVE is not set
BR2_GCC_CROSS_CXX=y
BR2_INSTALL_LIBSTDCPP=y
-BR2_TARGET_OPTIMIZATION="-Os -pipe"
+BR2_EXTRA_TARGET_CFLAGS="-pipe"
BR2_TOOLCHAIN_EXTERNAL_PATH="$(GCCROOT)"
BR2_TOOLCHAIN_EXTERNAL_PREFIX="$(ARCH)-linux"
diff --git a/configs/at91sam9260dfc_ext_defconfig b/configs/at91sam9260dfc_ext_defconfig
index 14bdc7a..c4f1343 100644
--- a/configs/at91sam9260dfc_ext_defconfig
+++ b/configs/at91sam9260dfc_ext_defconfig
@@ -246,7 +246,7 @@ BR2_PTHREADS_OLD=y
# BR2_PTHREADS_NATIVE is not set
BR2_GCC_CROSS_CXX=y
BR2_INSTALL_LIBSTDCPP=y
-BR2_TARGET_OPTIMIZATION="-Os -pipe"
+BR2_EXTRA_TARGET_CFLAGS="-pipe"
#
# Package Selection for the target
diff --git a/configs/at91sam9260pf_defconfig b/configs/at91sam9260pf_defconfig
index c668e03..305b349 100644
--- a/configs/at91sam9260pf_defconfig
+++ b/configs/at91sam9260pf_defconfig
@@ -216,7 +216,7 @@ BR2_INET_IPV6=y
BR2_INET_RPC=y
BR2_USE_WCHAR=y
# BR2_SOFT_FLOAT is not set
-BR2_TARGET_OPTIMIZATION="-Os -pipe"
+BR2_EXTRA_TARGET_CFLAGS="-pipe"
BR2_CROSS_TOOLCHAIN_TARGET_UTILS=y
#
diff --git a/configs/at91sam9261ek_defconfig b/configs/at91sam9261ek_defconfig
index 9598085..413f185 100644
--- a/configs/at91sam9261ek_defconfig
+++ b/configs/at91sam9261ek_defconfig
@@ -318,7 +318,7 @@ BR2_INET_RPC=y
BR2_USE_WCHAR=y
# BR2_SOFT_FLOAT is not set
# BR2_VFP_FLOAT is not set
-BR2_TARGET_OPTIMIZATION="-Os -pipe"
+BR2_EXTRA_TARGET_CFLAGS="-pipe"
BR2_CROSS_TOOLCHAIN_TARGET_UTILS=y
#
diff --git a/configs/at91sam9261ek_ext_bare_defconfig b/configs/at91sam9261ek_ext_bare_defconfig
index 4c534a7..aa0904b 100644
--- a/configs/at91sam9261ek_ext_bare_defconfig
+++ b/configs/at91sam9261ek_ext_bare_defconfig
@@ -221,7 +221,7 @@ BR2_PTHREADS_OLD=y
# BR2_PTHREADS_NATIVE is not set
BR2_GCC_CROSS_CXX=y
BR2_INSTALL_LIBSTDCPP=y
-BR2_TARGET_OPTIMIZATION="-Os -pipe"
+BR2_EXTRA_TARGET_CFLAGS="-pipe"
#
# Package Selection for the target
diff --git a/configs/at91sam9261ek_ext_defconfig b/configs/at91sam9261ek_ext_defconfig
index e7da95a..a5a7600 100644
--- a/configs/at91sam9261ek_ext_defconfig
+++ b/configs/at91sam9261ek_ext_defconfig
@@ -277,7 +277,7 @@ BR2_PTHREADS_OLD=y
# BR2_PTHREADS_NATIVE is not set
BR2_GCC_CROSS_CXX=y
BR2_INSTALL_LIBSTDCPP=y
-BR2_TARGET_OPTIMIZATION="-Os -pipe"
+BR2_EXTRA_TARGET_CFLAGS="-pipe"
#
# Package Selection for the target
diff --git a/configs/at91sam9263ek_defconfig b/configs/at91sam9263ek_defconfig
index 145700d..5b232c2 100644
--- a/configs/at91sam9263ek_defconfig
+++ b/configs/at91sam9263ek_defconfig
@@ -311,7 +311,7 @@ BR2_PTHREADS_OLD=y
# BR2_PTHREADS_NATIVE is not set
BR2_GCC_CROSS_CXX=y
BR2_INSTALL_LIBSTDCPP=y
-BR2_TARGET_OPTIMIZATION="-Os -pipe"
+BR2_EXTRA_TARGET_CFLAGS="-pipe"
# BR2_ELF2FLT is not set
# BR2_MKLIBS is not set
# BR2_PACKAGE_SSTRIP_TARGET is not set
diff --git a/configs/at91sam9263ek_ext_bare_defconfig b/configs/at91sam9263ek_ext_bare_defconfig
index 185372c..6035573 100644
--- a/configs/at91sam9263ek_ext_bare_defconfig
+++ b/configs/at91sam9263ek_ext_bare_defconfig
@@ -220,7 +220,7 @@ BR2_PTHREADS_OLD=y
# BR2_PTHREADS_NATIVE is not set
BR2_GCC_CROSS_CXX=y
BR2_INSTALL_LIBSTDCPP=y
-BR2_TARGET_OPTIMIZATION="-Os -pipe"
+BR2_EXTRA_TARGET_CFLAGS="-pipe"
#
# Package Selection for the target
diff --git a/configs/at91sam9263ek_ext_defconfig b/configs/at91sam9263ek_ext_defconfig
index 15b4d3b..ae16d78 100644
--- a/configs/at91sam9263ek_ext_defconfig
+++ b/configs/at91sam9263ek_ext_defconfig
@@ -239,7 +239,7 @@ BR2_PTHREADS_OLD=y
# BR2_PTHREADS_NATIVE is not set
BR2_GCC_CROSS_CXX=y
BR2_INSTALL_LIBSTDCPP=y
-BR2_TARGET_OPTIMIZATION="-Os -pipe"
+BR2_EXTRA_TARGET_CFLAGS="-pipe"
#
# Package Selection for the target
diff --git a/configs/at91sam9g20dfc_defconfig b/configs/at91sam9g20dfc_defconfig
index a6ef10c..c84684e 100644
--- a/configs/at91sam9g20dfc_defconfig
+++ b/configs/at91sam9g20dfc_defconfig
@@ -311,7 +311,7 @@ BR2_PTHREADS_OLD=y
# BR2_PTHREADS_NATIVE is not set
BR2_GCC_CROSS_CXX=y
BR2_INSTALL_LIBSTDCPP=y
-BR2_TARGET_OPTIMIZATION="-Os -pipe"
+BR2_EXTRA_TARGET_CFLAGS="-pipe"
# BR2_ELF2FLT is not set
# BR2_MKLIBS is not set
BR2_PACKAGE_SSTRIP_TARGET=y
diff --git a/configs/at91sam9g20dfc_ext_bare_defconfig b/configs/at91sam9g20dfc_ext_bare_defconfig
index 3feef30..d6f077b 100644
--- a/configs/at91sam9g20dfc_ext_bare_defconfig
+++ b/configs/at91sam9g20dfc_ext_bare_defconfig
@@ -218,7 +218,7 @@ BR2_PTHREADS_OLD=y
# BR2_PTHREADS_NATIVE is not set
BR2_GCC_CROSS_CXX=y
BR2_INSTALL_LIBSTDCPP=y
-BR2_TARGET_OPTIMIZATION="-Os -pipe"
+BR2_EXTRA_TARGET_CFLAGS="-pipe"
#
# Package Selection for the target
diff --git a/configs/at91sam9g20dfc_ext_defconfig b/configs/at91sam9g20dfc_ext_defconfig
index 96d9793..0d17dee 100644
--- a/configs/at91sam9g20dfc_ext_defconfig
+++ b/configs/at91sam9g20dfc_ext_defconfig
@@ -246,7 +246,7 @@ BR2_PTHREADS_OLD=y
# BR2_PTHREADS_NATIVE is not set
BR2_GCC_CROSS_CXX=y
BR2_INSTALL_LIBSTDCPP=y
-BR2_TARGET_OPTIMIZATION="-Os -pipe"
+BR2_EXTRA_TARGET_CFLAGS="-pipe"
#
# Package Selection for the target
diff --git a/configs/atngw100-base_defconfig b/configs/atngw100-base_defconfig
index 6fbc0de..4ea3ecd 100644
--- a/configs/atngw100-base_defconfig
+++ b/configs/atngw100-base_defconfig
@@ -236,7 +236,7 @@ BR2_SOFT_FLOAT=y
BR2_PTHREADS_OLD=y
# BR2_PTHREADS_NATIVE is not set
# BR2_INSTALL_LIBSTDCPP is not set
-BR2_TARGET_OPTIMIZATION="-Os -pipe"
+BR2_EXTRA_TARGET_CFLAGS="-pipe"
# BR2_MKLIBS is not set
# BR2_PACKAGE_SSTRIP_TARGET is not set
# BR2_PACKAGE_SSTRIP_HOST is not set
diff --git a/configs/atngw100_defconfig b/configs/atngw100_defconfig
index 7a6cba4..5e75f3a 100644
--- a/configs/atngw100_defconfig
+++ b/configs/atngw100_defconfig
@@ -247,7 +247,7 @@ BR2_PTHREADS_OLD=y
# BR2_PTHREADS_NATIVE is not set
BR2_GCC_CROSS_CXX=y
BR2_INSTALL_LIBSTDCPP=y
-BR2_TARGET_OPTIMIZATION="-Os -pipe"
+BR2_EXTRA_TARGET_CFLAGS="-pipe"
# BR2_MKLIBS is not set
# BR2_PACKAGE_SSTRIP_TARGET is not set
# BR2_PACKAGE_SSTRIP_HOST is not set
diff --git a/configs/atstk1005_defconfig b/configs/atstk1005_defconfig
index 309ac08..75442bc 100644
--- a/configs/atstk1005_defconfig
+++ b/configs/atstk1005_defconfig
@@ -252,7 +252,7 @@ BR2_PTHREADS_OLD=y
# BR2_PTHREADS_NATIVE is not set
BR2_GCC_CROSS_CXX=y
BR2_INSTALL_LIBSTDCPP=y
-BR2_TARGET_OPTIMIZATION="-Os -pipe"
+BR2_EXTRA_TARGET_CFLAGS="-pipe"
# BR2_MKLIBS is not set
# BR2_PACKAGE_SSTRIP_TARGET is not set
# BR2_PACKAGE_SSTRIP_HOST is not set
diff --git a/configs/atstk100x_defconfig b/configs/atstk100x_defconfig
index b4abff9..16c25cb 100644
--- a/configs/atstk100x_defconfig
+++ b/configs/atstk100x_defconfig
@@ -248,7 +248,7 @@ BR2_PTHREADS_OLD=y
# BR2_PTHREADS_NATIVE is not set
BR2_GCC_CROSS_CXX=y
BR2_INSTALL_LIBSTDCPP=y
-BR2_TARGET_OPTIMIZATION="-Os -pipe"
+BR2_EXTRA_TARGET_CFLAGS="-pipe"
# BR2_MKLIBS is not set
# BR2_PACKAGE_SSTRIP_TARGET is not set
# BR2_PACKAGE_SSTRIP_HOST is not set
diff --git a/configs/i386_defconfig b/configs/i386_defconfig
index 97067c4..b1f22a8 100644
--- a/configs/i386_defconfig
+++ b/configs/i386_defconfig
@@ -246,7 +246,7 @@ BR2_PTHREADS_OLD=y
# BR2_PTHREADS_NATIVE is not set
BR2_GCC_CROSS_CXX=y
BR2_INSTALL_LIBSTDCPP=y
-BR2_TARGET_OPTIMIZATION="-Os -pipe"
+BR2_EXTRA_TARGET_CFLAGS="-pipe"
# BR2_MKLIBS is not set
# BR2_PACKAGE_SSTRIP_TARGET is not set
# BR2_PACKAGE_SSTRIP_HOST is not set
diff --git a/configs/i686_defconfig b/configs/i686_defconfig
index a3a2683..d2ba8f0 100644
--- a/configs/i686_defconfig
+++ b/configs/i686_defconfig
@@ -246,7 +246,7 @@ BR2_PTHREADS_OLD=y
# BR2_PTHREADS_NATIVE is not set
BR2_GCC_CROSS_CXX=y
BR2_INSTALL_LIBSTDCPP=y
-BR2_TARGET_OPTIMIZATION="-Os -pipe"
+BR2_EXTRA_TARGET_CFLAGS="-pipe"
# BR2_MKLIBS is not set
# BR2_PACKAGE_SSTRIP_TARGET is not set
# BR2_PACKAGE_SSTRIP_HOST is not set
diff --git a/configs/integrator926_defconfig b/configs/integrator926_defconfig
index 2d2579b..434e87a 100644
--- a/configs/integrator926_defconfig
+++ b/configs/integrator926_defconfig
@@ -242,7 +242,7 @@ BR2_GCC_SHARED_LIBGCC=y
# BR2_INET_RPC is not set
# BR2_USE_WCHAR is not set
BR2_SOFT_FLOAT=y
-BR2_TARGET_OPTIMIZATION="-Os -pipe -fwrapv"
+BR2_EXTRA_TARGET_CFLAGS="-pipe -fwrapv"
BR2_CROSS_TOOLCHAIN_TARGET_UTILS=y
#
diff --git a/configs/integrator926_huge_defconfig b/configs/integrator926_huge_defconfig
index 380e2e1..7533259 100644
--- a/configs/integrator926_huge_defconfig
+++ b/configs/integrator926_huge_defconfig
@@ -243,7 +243,7 @@ BR2_INET_IPV6=y
BR2_INET_RPC=y
BR2_USE_WCHAR=y
BR2_SOFT_FLOAT=y
-BR2_TARGET_OPTIMIZATION="-Os -pipe -fwrapv"
+BR2_EXTRA_TARGET_CFLAGS="-pipe -fwrapv"
BR2_CROSS_TOOLCHAIN_TARGET_UTILS=y
#
diff --git a/configs/kb9202_defconfig b/configs/kb9202_defconfig
index 608eb86..a5708ce 100644
--- a/configs/kb9202_defconfig
+++ b/configs/kb9202_defconfig
@@ -244,7 +244,7 @@ BR2_GCC_SHARED_LIBGCC=y
# BR2_INET_RPC is not set
# BR2_USE_WCHAR is not set
BR2_SOFT_FLOAT=y
-BR2_TARGET_OPTIMIZATION="-Os -pipe"
+BR2_EXTRA_TARGET_CFLAGS="-pipe"
BR2_CROSS_TOOLCHAIN_TARGET_UTILS=y
#
diff --git a/configs/v100sc2_defconfig b/configs/v100sc2_defconfig
index 336953e..448debc 100644
--- a/configs/v100sc2_defconfig
+++ b/configs/v100sc2_defconfig
@@ -217,7 +217,7 @@ BR2_INET_IPV6=y
BR2_INET_RPC=y
BR2_USE_WCHAR=y
BR2_SOFT_FLOAT=y
-BR2_TARGET_OPTIMIZATION="-Os -pipe"
+BR2_EXTRA_TARGET_CFLAGS="-pipe"
BR2_CROSS_TOOLCHAIN_TARGET_UTILS=y
#
--
1.6.3.3
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [Buildroot] [PATCH 6/6] toolchain: Clarify configuration option files organization
2010-01-12 23:27 [Buildroot] [pull request] Pull request for branch toolchain-config-improvements Thomas Petazzoni
` (4 preceding siblings ...)
2010-01-12 23:27 ` [Buildroot] [PATCH 5/6] Update defconfigs after BR2_TARGET_OPTIMIZATION rename Thomas Petazzoni
@ 2010-01-12 23:27 ` Thomas Petazzoni
5 siblings, 0 replies; 9+ messages in thread
From: Thomas Petazzoni @ 2010-01-12 23:27 UTC (permalink / raw)
To: buildroot
Instead of a mess of Config.in, Config.in.1 and Config.in.2 files, the
organization is now as follows:
* Config.in only provides the Buildroot toolchain vs. external
toolchain choices. Depending on this, it sources either
Config.in.buildroot or Config.in.external files
* Config.in.buildroot provides the Buildroot toolchain configuration
options
* Config.in.external provides the external toolchain configuration
options
Options such as RPC, IPv6, large file, wide char, locale support,
program invocation and so forth are duplicated in Buildroot and
external toolchain support. This allows to provide an option label
that really matches what the option is for.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
toolchain/Config.in | 16 +--
toolchain/Config.in.1 | 9 --
toolchain/{Config.in.2 => Config.in.buildroot} | 60 ++++++------
toolchain/Config.in.external | 128 ++++++++++++++++++++++++
toolchain/external-toolchain/Config.in | 22 ----
toolchain/external-toolchain/Config.in.2 | 17 ---
6 files changed, 165 insertions(+), 87 deletions(-)
delete mode 100644 toolchain/Config.in.1
rename toolchain/{Config.in.2 => Config.in.buildroot} (80%)
create mode 100644 toolchain/Config.in.external
delete mode 100644 toolchain/external-toolchain/Config.in
delete mode 100644 toolchain/external-toolchain/Config.in.2
diff --git a/toolchain/Config.in b/toolchain/Config.in
index ee34e03..c3052fc 100644
--- a/toolchain/Config.in
+++ b/toolchain/Config.in
@@ -16,16 +16,12 @@ config BR2_TOOLCHAIN_EXTERNAL
endchoice
-source "toolchain/Config.in.1"
-source "toolchain/external-toolchain/Config.in"
+if BR2_TOOLCHAIN_BUILDROOT
+source "toolchain/Config.in.buildroot"
+endif
-# we want gdb config in the middle of both source and external
-# toolchains, but mconf won't let us source the same file twice,
-# so put it here instead
-source "toolchain/gdb/Config.in"
-comment "Common Toolchain Options"
-
-source "toolchain/Config.in.2"
-source "toolchain/external-toolchain/Config.in.2"
+if BR2_TOOLCHAIN_EXTERNAL
+source "toolchain/Config.in.external"
+endif
endmenu
diff --git a/toolchain/Config.in.1 b/toolchain/Config.in.1
deleted file mode 100644
index 5c26858..0000000
--- a/toolchain/Config.in.1
+++ /dev/null
@@ -1,9 +0,0 @@
-#
-
-if BR2_TOOLCHAIN_BUILDROOT
-source "toolchain/kernel-headers/Config.in"
-source "toolchain/uClibc/Config.in"
-source "toolchain/binutils/Config.in"
-source "toolchain/gcc/Config.in"
-source "toolchain/ccache/Config.in"
-endif
diff --git a/toolchain/Config.in.2 b/toolchain/Config.in.buildroot
similarity index 80%
rename from toolchain/Config.in.2
rename to toolchain/Config.in.buildroot
index e404657..70ac3ec 100644
--- a/toolchain/Config.in.2
+++ b/toolchain/Config.in.buildroot
@@ -1,43 +1,58 @@
-#
+source "toolchain/kernel-headers/Config.in"
+source "toolchain/uClibc/Config.in"
+source "toolchain/binutils/Config.in"
+source "toolchain/gcc/Config.in"
+source "toolchain/gdb/Config.in"
+source "toolchain/ccache/Config.in"
+
+comment "Toolchain options"
+
config BR2_LARGEFILE
bool "Enable large file (files > 2 GB) support?"
depends on !BR2_cris
help
- If you are building your own toolchain and you want to
+ If you are building your own toolchain and you want to
support files larger than 2GB then enable this option.
- If you have an external binary toolchain that has been
- built with large file support (files > 2GB) then enable
- this option.
config BR2_INET_IPV6
bool "Enable IPv6"
help
- If you are building your own toolchain and you want to
+ If you are building your own toolchain and you want to
enable IPV6 support then enable this option.
- If you have an external binary toolchain that has been
- built with IPV6 support then enable this option.
config BR2_INET_RPC
bool "Enable RPC"
help
Enable RPC. RPC support is needed for nfs.
- If you are building your own toolchain and you want to
+ If you are building your own toolchain and you want to
enable RPC support then enable this option.
- If you have an external binary toolchain that has been
- built with RPC support then enable this option.
config BR2_ENABLE_LOCALE
bool "Enable toolchain locale/i18n support?"
select BR2_USE_WCHAR
help
- If you are building your own toolchain and you want to
+ If you are building your own toolchain and you want to
enable locale/i18n support then enable this option.
- If you have an external binary toolchain that has been
- built with locale/i18n support then enable this option.
+
+config BR2_USE_WCHAR
+ bool "Enable WCHAR support"
+ help
+ If you are building your own toolchain and you want to
+ enable WCHAR support then enable this option.
+
+config BR2_PROGRAM_INVOCATION
+ bool "Enable 'program invocation name'"
+ help
+ Support for the GNU-specific program_invocation_name and
+ program_invocation_short_name strings. Some GNU packages
+ (like tar and coreutils) utilize these for extra useful
+ output, but in general are not required.
+ If you have an external binary toolchain that has been built
+ with program invocation support then enable this option.
config BR2_ENABLE_LOCALE_PREGENERATED
bool "Use pregenerated locale data?"
- depends on BR2_ENABLE_LOCALE && BR2_TOOLCHAIN_BUILDROOT && BROKEN # tarball missing
+ depends on BR2_ENABLE_LOCALE && BROKEN # tarball missing
help
Instead of generating the locale data locally you can optionally
download a pregenerated set of locales.
@@ -87,16 +102,6 @@ choice
bool "Native POSIX Threading (NPTL)"
endchoice
-config BR2_PROGRAM_INVOCATION
- bool "Enable 'program invocation name'"
- help
- Support for the GNU-specific program_invocation_name and
- program_invocation_short_name strings. Some GNU packages
- (like tar and coreutils) utilize these for extra useful
- output, but in general are not required.
- If you have an external binary toolchain that has been built
- with program invocation support then enable this option.
-
config BR2_GCC_CROSS_CXX
bool
help
@@ -107,7 +112,7 @@ config BR2_GCC_CROSS_CXX
config BR2_INSTALL_LIBSTDCPP
bool "Build/install c++ compiler and libstdc++?"
- select BR2_LARGEFILE if (!BR2_GCC_SUPPORTS_SYSROOT && BR2_TOOLCHAIN_BUILDROOT)
+ select BR2_LARGEFILE if !BR2_GCC_SUPPORTS_SYSROOT
select BR2_GCC_CROSS_CXX
help
If you are building your own toolchain and want to build and install
@@ -116,7 +121,6 @@ config BR2_INSTALL_LIBSTDCPP
support and you want to use the compiler / library then you need
to select this option.
-if BR2_TOOLCHAIN_BUILDROOT
source "toolchain/elf2flt/Config.in"
source "toolchain/mklibs/Config.in"
source "toolchain/sstrip/Config.in"
@@ -137,5 +141,3 @@ config BR2_CROSS_TOOLCHAIN_TARGET_UTILS
Answer Y if you want these apps (if built) copied into the
cross toolchain dir under <arch>-linux-uclibc/target_utils/.
-
-endif
diff --git a/toolchain/Config.in.external b/toolchain/Config.in.external
new file mode 100644
index 0000000..060b9bb
--- /dev/null
+++ b/toolchain/Config.in.external
@@ -0,0 +1,128 @@
+config BR2_TOOLCHAIN_EXTERNAL_PATH
+ string "External toolchain path"
+ default "/path/to/staging_dir/usr"
+ help
+ Path to where the external toolchain is installed.
+
+config BR2_TOOLCHAIN_EXTERNAL_PREFIX
+ string "External toolchain prefix"
+ default "$(ARCH)-linux"
+ help
+ This the the external toolchain prefix. For example:
+ armeb-unknown-linux-gnu, mipsel-unknown-linux-gnu, etc.
+
+choice
+ prompt "External toolchain C library"
+ default BR2_TOOLCHAIN_EXTERNAL_UCLIBC
+
+config BR2_TOOLCHAIN_EXTERNAL_UCLIBC
+ bool "uClibc"
+
+config BR2_TOOLCHAIN_EXTERNAL_GLIBC
+ bool "glibc"
+
+endchoice
+
+#
+# Toolchain options with uClibc
+#
+if BR2_TOOLCHAIN_EXTERNAL_UCLIBC
+
+comment "External toolchain features"
+
+config BR2_LARGEFILE
+ bool "Toolchain has large file (files > 2 GB) support?"
+ depends on !BR2_cris
+ help
+ Select this option if your external toolchain has a uClibc
+ configured with large file support.
+
+config BR2_INET_IPV6
+ bool "Toolchain has IPv6?"
+ help
+ Select this option if your external toolchain has a uClibc
+ configured with IPv6 support.
+
+config BR2_INET_RPC
+ bool "Toolchain has RPC?"
+ help
+ Select this option if your external toolchain has a uClibc
+ configured with RPC support.
+
+config BR2_USE_WCHAR
+ bool "Toolchain has WCHAR support?"
+ help
+ Select this option if your external toolchain has a uClibc
+ configured with wide char support.
+
+config BR2_ENABLE_LOCALE
+ bool "Toolchain has locale/i18n support?"
+ select BR2_USE_WCHAR
+ help
+ Select this option if your external toolchain has a uClibc
+ configured with locale support.
+
+config BR2_PROGRAM_INVOCATION
+ bool "Toolchain supports program invocation name?"
+ help
+ Select this option if your external toolchain has a uClibc
+ configured with program invocation support.
+
+endif
+
+#
+# Toolchain options with glibc
+#
+
+if BR2_TOOLCHAIN_EXTERNAL_GLIBC
+
+config BR2_LARGEFILE
+ bool
+ default y
+
+config BR2_INET_IPV6
+ bool
+ default y
+
+config BR2_INET_RPC
+ bool
+ default y
+
+config BR2_ENABLE_LOCALE
+ bool
+ default y
+
+config BR2_USE_WCHAR
+ bool
+ default y
+
+config BR2_PROGRAM_INVOCATION
+ bool
+ default y
+
+endif
+
+#
+# Common toolchain options
+#
+
+comment "Integration options"
+
+config BR2_GCC_CROSS_CXX
+ bool
+
+config BR2_INSTALL_LIBSTDCPP
+ bool "Install libstdc++?"
+ select BR2_LARGEFILE
+ select BR2_GCC_CROSS_CXX
+ help
+ If you have an external toolchain that has been built with C++
+ support and you want to use the compiler / library then you need
+ to select this option.
+
+config BR2_TOOLCHAIN_EXTERNAL_STRIP
+ bool
+ default y
+ prompt "Strip shared libraries"
+ help
+ Strip shared libraries copied from the external toolchain.
diff --git a/toolchain/external-toolchain/Config.in b/toolchain/external-toolchain/Config.in
deleted file mode 100644
index efc8378..0000000
--- a/toolchain/external-toolchain/Config.in
+++ /dev/null
@@ -1,22 +0,0 @@
-#
-
-if BR2_TOOLCHAIN_EXTERNAL
-choice
- prompt "External toolchain C library"
- default BR2_TOOLCHAIN_EXTERNAL_UCLIBC
-
-config BR2_TOOLCHAIN_EXTERNAL_UCLIBC
- bool "uClibc"
-
-config BR2_TOOLCHAIN_EXTERNAL_GLIBC
- bool "glibc"
-
-endchoice
-
-config BR2_TOOLCHAIN_EXTERNAL_STRIP
- bool
- default y
- prompt "Strip shared libraries"
- help
- Strip shared libraries copied from the external toolchain.
-endif
diff --git a/toolchain/external-toolchain/Config.in.2 b/toolchain/external-toolchain/Config.in.2
deleted file mode 100644
index 489558c..0000000
--- a/toolchain/external-toolchain/Config.in.2
+++ /dev/null
@@ -1,17 +0,0 @@
-#
-
-if BR2_TOOLCHAIN_EXTERNAL
-config BR2_TOOLCHAIN_EXTERNAL_PATH
- string "External toolchain path"
- default "/path/to/staging_dir/usr"
- help
- Path to where the external toolchain is installed.
-
-config BR2_TOOLCHAIN_EXTERNAL_PREFIX
- string "External toolchain prefix"
- default "$(ARCH)-linux"
- help
- This the the external toolchain prefix. For example:
- armeb-unknown-linux-gnu, mipsel-unknown-linux-gnu, etc.
-
-endif
--
1.6.3.3
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [Buildroot] [PATCH 3/6] Move BR2_SOFT_FLOAT and BR2_VFP_FLOAT to Build options
2010-01-12 23:27 ` [Buildroot] [PATCH 3/6] Move BR2_SOFT_FLOAT and BR2_VFP_FLOAT to Build options Thomas Petazzoni
@ 2010-01-28 16:26 ` Peter Korsgaard
2010-02-09 21:02 ` Thomas Petazzoni
0 siblings, 1 reply; 9+ messages in thread
From: Peter Korsgaard @ 2010-01-28 16:26 UTC (permalink / raw)
To: buildroot
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
Thomas> The soft floating point related options not only affect how the
Thomas> toolchain is built, but more importantly affect how packages are
Thomas> built. Therefore, just like optimization or stripping options,
Thomas> floating point related options are global, and belong to the Build
Thomas> options menu.
Hmm, couldn't you say the same for ipv6, largefile and locale stuff?
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] [PATCH 3/6] Move BR2_SOFT_FLOAT and BR2_VFP_FLOAT to Build options
2010-01-28 16:26 ` Peter Korsgaard
@ 2010-02-09 21:02 ` Thomas Petazzoni
0 siblings, 0 replies; 9+ messages in thread
From: Thomas Petazzoni @ 2010-02-09 21:02 UTC (permalink / raw)
To: buildroot
On Thu, 28 Jan 2010 17:26:27 +0100
Peter Korsgaard <jacmet@uclibc.org> wrote:
> Thomas> The soft floating point related options not only affect how
> Thomas> the toolchain is built, but more importantly affect how
> Thomas> packages are built. Therefore, just like optimization or
> Thomas> stripping options, floating point related options are
> Thomas> global, and belong to the Build options menu.
>
> Hmm, couldn't you say the same for ipv6, largefile and locale stuff?
Hum, true. I will keep them in the Toolchain part, and will resend the
full patch set.
Do you agree with the other patches of the patch set ?
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2010-02-09 21:02 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-12 23:27 [Buildroot] [pull request] Pull request for branch toolchain-config-improvements Thomas Petazzoni
2010-01-12 23:27 ` [Buildroot] [PATCH 1/6] Move locale purge option to a more logical location Thomas Petazzoni
2010-01-12 23:27 ` [Buildroot] [PATCH 2/6] lzma: Use BR2_INSTALL_LIBSTDCPP instead of BR2_GCC_CROSS_CXX like in other packages Thomas Petazzoni
2010-01-12 23:27 ` [Buildroot] [PATCH 3/6] Move BR2_SOFT_FLOAT and BR2_VFP_FLOAT to Build options Thomas Petazzoni
2010-01-28 16:26 ` Peter Korsgaard
2010-02-09 21:02 ` Thomas Petazzoni
2010-01-12 23:27 ` [Buildroot] [PATCH 4/6] Move BR2_TARGET_OPTIMIZATION to Build Options and rename it Thomas Petazzoni
2010-01-12 23:27 ` [Buildroot] [PATCH 5/6] Update defconfigs after BR2_TARGET_OPTIMIZATION rename Thomas Petazzoni
2010-01-12 23:27 ` [Buildroot] [PATCH 6/6] toolchain: Clarify configuration option files organization Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox