All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Korsgaard <jacmet@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 01/15] toolchain: Improve C library option selection
Date: Sat, 11 Dec 2010 23:14:36 +0100	[thread overview]
Message-ID: <87oc8slzxv.fsf@macbook.be.48ers.dk> (raw)
In-Reply-To: <ca79dc87ecbeff3cfc20427c3ec3a54ca3a98c94.1291541115.git.thomas.petazzoni@free-electrons.com> (Thomas Petazzoni's message of "Sun, 5 Dec 2010 10:25:28 +0100")

>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

 Thomas> Turn BR2_LARGEFILE, BR2_INET_IPV6, BR2_INET_RPC, BR2_USE_WCHAR,
 Thomas> BR2_ENABLE_LOCALE and BR2_PROGRAM_INVOCATION into hidden options.

 Thomas> Then, for Buildroot toolchains, external toolchains and Crosstool-NG
 Thomas> toolchains, provide visible options that selects the hidden options.

 Thomas> This allows :

 Thomas>  * To show a different label and help text in the case of Buildroot
 Thomas>    toolchain (do you want to enable feature X ?) and in the case of
 Thomas>    external toolchain (is feature X available in your toolchain ?)

 Thomas>  * To not show any option when a glibc external toolchain is selected
 Thomas>    (since glibc is assumed to support all of largefile, IPv6, RPC,
 Thomas>    WCHAR, locale and program invocation) and have them all selected in
 Thomas>    that case.

 Thomas> There is some amount of duplication between Buildroot toolchain config
 Thomas> options and Crosstool-NG toolchain config options, because kconfig
 Thomas> doesn't allow to source the same Config.in file twice (even if under
 Thomas> mutually exclusive conditions). This duplication is more readable that
 Thomas> the hack that consists in splitting files in multiple pieces.

This breaks the toolchain setup of people's existing .config's, but OK -
Perhaps add a note about it in the commit message though.


 Thomas> +++ b/toolchain/toolchain-buildroot/Config.in.2
 Thomas> +config BR2_TOOLCHAIN_BUILDROOT_LOCALE
 Thomas> +	bool "Enable toolchain locale/i18n support"
 Thomas> +	select BR2_TOOLCHAIN_BUILDROOT_WCHAR
 Thomas> +	select BR2_ENABLE_LOCALE
 Thomas> +	help
 Thomas> +	  Enable this option if you want your toolchain to support
 Thomas> +	  localization and internationalization.
 Thomas> +
 Thomas> +config BR2_TOOLCHAIN_BUILDROOT_PROGRAM_INVOCATION
 Thomas> +	bool "Enable 'program invocation name'"

The other places we have 'Enable ... SUPPORT'


 Thomas> +++ b/toolchain/toolchain-external/Config.in
 Thomas> @@ -10,9 +10,68 @@ config BR2_TOOLCHAIN_EXTERNAL_UCLIBC
 
 Thomas>  config BR2_TOOLCHAIN_EXTERNAL_GLIBC
 Thomas>  	bool "glibc"
 Thomas> +	select BR2_LARGEFILE
 Thomas> +	select BR2_INET_IPV6
 Thomas> +	select BR2_INET_RPC
 Thomas> +	select BR2_USE_WCHAR
 Thomas> +	select BR2_ENABLE_LOCALE
 Thomas> +	select BR2_PROGRAM_INVOCATION
 
 Thomas>  endchoice
 
 Thomas> +if BR2_TOOLCHAIN_EXTERNAL_UCLIBC
 Thomas> +
 Thomas> +config BR2_TOOLCHAIN_EXTERNAL_LARGEFILE
 Thomas> +	bool "Toolchain has large file support ?"

We normally don't do spaces before question mark (several places in this
file).

-- 
Bye, Peter Korsgaard

  reply	other threads:[~2010-12-11 22:14 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-05  9:25 [Buildroot] [pull request] Pull request for branch for-2011.02/toolchain-improvements Thomas Petazzoni
2010-12-05  9:25 ` [Buildroot] [PATCH 01/15] toolchain: Improve C library option selection Thomas Petazzoni
2010-12-11 22:14   ` Peter Korsgaard [this message]
2010-12-12 10:51     ` Thomas Petazzoni
2010-12-05  9:25 ` [Buildroot] [PATCH 02/15] toolchain: remove ending semi-colon in helpers Thomas Petazzoni
2010-12-05  9:25 ` [Buildroot] [PATCH 03/15] toolchain: add support for external toolchain profiles and download Thomas Petazzoni
2010-12-11 22:26   ` Peter Korsgaard
2010-12-12 11:04     ` Thomas Petazzoni
2010-12-05  9:25 ` [Buildroot] [PATCH 04/15] toolchain: remove toolchain-specific stripping Thomas Petazzoni
2010-12-05  9:25 ` [Buildroot] [PATCH 05/15] toolchain: rework C++ options Thomas Petazzoni
2010-12-11 22:38   ` Peter Korsgaard
2010-12-12 11:24     ` Thomas Petazzoni
2010-12-12 10:25   ` Yann E. MORIN
2010-12-12 13:33     ` Thomas Petazzoni
2010-12-05  9:25 ` [Buildroot] [PATCH 06/15] toolchain: move Stack Protection Support option Thomas Petazzoni
2010-12-05  9:25 ` [Buildroot] [PATCH 07/15] ltp-testsuite: bump version and use autotargets Thomas Petazzoni
2010-12-11 22:42   ` Peter Korsgaard
2010-12-12 11:31     ` Thomas Petazzoni
2010-12-12 22:21       ` Peter Korsgaard
2010-12-12 22:46         ` Thomas Petazzoni
2010-12-12 22:53           ` Peter Korsgaard
2010-12-05  9:25 ` [Buildroot] [PATCH 08/15] toolchain: rework thread options Thomas Petazzoni
2010-12-11 22:45   ` Peter Korsgaard
2010-12-12 11:34     ` Thomas Petazzoni
2010-12-05  9:25 ` [Buildroot] [PATCH 09/15] toolchain: check that the thread option selection is correct Thomas Petazzoni
2010-12-05  9:25 ` [Buildroot] [PATCH 10/15] gcc: disable libgomp when thread support is disabled Thomas Petazzoni
2010-12-05  9:25 ` [Buildroot] [PATCH 11/15] uclibc: add patch for uClibc snapshot to fix build issue Thomas Petazzoni
2010-12-05  9:25 ` [Buildroot] [PATCH 12/15] toolchain: BR2_NEEDS_GETTEXT must be y when uClibc is used Thomas Petazzoni
2010-12-05  9:25 ` [Buildroot] [PATCH 13/15] toolchain: expose thread options in the Crosstool-NG backend Thomas Petazzoni
2010-12-11 22:50   ` Peter Korsgaard
2010-12-12 10:37   ` Yann E. MORIN
2010-12-12 13:35     ` Thomas Petazzoni
2010-12-05  9:25 ` [Buildroot] [PATCH 14/15] toolchain: more verbose in crosstool-ng backend Thomas Petazzoni
2010-12-05  9:25 ` [Buildroot] [PATCH 15/15] package: pass TARGET_MAKE_ENV at install/clean/uninstall steps Thomas Petazzoni
2010-12-11 22:55 ` [Buildroot] [pull request] Pull request for branch for-2011.02/toolchain-improvements Peter Korsgaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87oc8slzxv.fsf@macbook.be.48ers.dk \
    --to=jacmet@uclibc.org \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.