Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 01/15] toolchain/helpers: add check for mandatory uClibc options
Date: Sat, 21 Mar 2015 12:10:05 +0100	[thread overview]
Message-ID: <20150321111005.GA4201@free.fr> (raw)
In-Reply-To: <1426610919-11901-2-git-send-email-gustavo@zacarias.com.ar>

Gustavo, All,

On 2015-03-17 13:48 -0300, Gustavo Zacarias spake thusly:
> We currently only check that the Buildroot configuration matches what is
> available in the toolchain.
> 
> Since we're going to remove the check for LFS and make it a mandatory
> feature, we will lose the corresponding buildroot option, so we won't be
> able to use check_uclibc_feature as-is.
> 
> Introduce a magic value passed as the buildroot option name to recognise
> checks for mandatory uclibc options that do not have a corresponding
> option in buildroot.
> 
> If the buildroot option name is empty then the check is against a
> mandatory uclibc option.
> 
> If a mandatory uclibc option is missing we reject the toolchain as being
> unusable by buildroot.
> 
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>

Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

Regards,
Yann E. MORIN.

> ---
>  toolchain/helpers.mk | 22 +++++++++++++++-------
>  1 file changed, 15 insertions(+), 7 deletions(-)
> 
> diff --git a/toolchain/helpers.mk b/toolchain/helpers.mk
> index 3121da4..5d6390e 100644
> --- a/toolchain/helpers.mk
> +++ b/toolchain/helpers.mk
> @@ -238,6 +238,7 @@ check_musl = \
>  # Check the conformity of Buildroot configuration with regard to the
>  # uClibc configuration of the external toolchain, for a particular
>  # feature.
> +# If 'Buildroot option name' ($2) is empty it means a mandatory option.
>  #
>  # $1: uClibc macro name
>  # $2: Buildroot option name
> @@ -246,13 +247,20 @@ check_musl = \
>  #
>  check_uclibc_feature = \
>  	IS_IN_LIBC=`grep -q "\#define $(1) 1" $(3) && echo y` ; \
> -	if [ "$($(2))" != "y" -a "$${IS_IN_LIBC}" = "y" ] ; then \
> -		echo "$(4) available in C library, please enable $(2)" ; \
> -		exit 1 ; \
> -	fi ; \
> -	if [ "$($(2))" = "y" -a "$${IS_IN_LIBC}" != "y" ] ; then \
> -		echo "$(4) not available in C library, please disable $(2)" ; \
> -		exit 1 ; \
> +	if [ -z "$(2)" ] ; then \
> +		if [ "$${IS_IN_LIBC}" != "y" ] ; then \
> +			echo "$(4) not available in C library, toolchain unsuitable for Buildroot" ; \
> +			exit 1 ; \
> +		fi ; \
> +	else \
> +		if [ "$($(2))" != "y" -a "$${IS_IN_LIBC}" = "y" ] ; then \
> +			echo "$(4) available in C library, please enable $(2)" ; \
> +			exit 1 ; \
> +		fi ; \
> +		if [ "$($(2))" = "y" -a "$${IS_IN_LIBC}" != "y" ] ; then \
> +			echo "$(4) not available in C library, please disable $(2)" ; \
> +			exit 1 ; \
> + 		fi ; \
>  	fi
>  
>  #
> -- 
> 2.0.5
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

  reply	other threads:[~2015-03-21 11:10 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-17 16:48 [Buildroot] [PATCH v2 00/15] Drop non-largefile support Gustavo Zacarias
2015-03-17 16:48 ` [Buildroot] [PATCH v2 01/15] toolchain/helpers: add check for mandatory uClibc options Gustavo Zacarias
2015-03-21 11:10   ` Yann E. MORIN [this message]
2015-03-17 16:48 ` [Buildroot] [PATCH v2 02/15] toolchain/helpers: make LFS mandatory for uclibc toolchains Gustavo Zacarias
2015-03-17 16:48 ` [Buildroot] [PATCH v2 03/15] package/uclibc: default to Y for LARGEFILE Gustavo Zacarias
2015-03-17 16:48 ` [Buildroot] [PATCH v2 04/15] toolchain-common: " Gustavo Zacarias
2015-03-17 16:48 ` [Buildroot] [PATCH v2 05/15] toolchain: remove LARGEFILE selects Gustavo Zacarias
2015-03-21 11:32   ` Yann E. MORIN
2015-03-17 16:48 ` [Buildroot] [PATCH v2 06/15] package infra: drop non-lfs support Gustavo Zacarias
2015-03-17 16:48 ` [Buildroot] [PATCH v2 07/15] configs: drop largefile option Gustavo Zacarias
2015-03-17 16:48 ` [Buildroot] [PATCH v2 08/15] busybox: force lfs build Gustavo Zacarias
2015-03-17 16:48 ` [Buildroot] [PATCH v2 09/15] system: drop largefile depends Gustavo Zacarias
2015-03-17 16:48 ` [Buildroot] [PATCH v2 10/15] boot/gummiboot: " Gustavo Zacarias
2015-03-17 16:48 ` [Buildroot] [PATCH v2 11/15] packages: remove (non-)lfs dependencies and tweaks Gustavo Zacarias
2015-03-17 16:48 ` [Buildroot] [PATCH v2 12/15] docs/manual: remove references to largefile Gustavo Zacarias
2015-03-17 16:48 ` [Buildroot] [PATCH v2 13/15] packages: remove non-lfs enabler patches Gustavo Zacarias
2015-03-17 16:48 ` [Buildroot] [PATCH v2 14/15] package/uclibc: drop BR2_TOOLCHAIN_BUILDROOT_LARGEFILE Gustavo Zacarias
2015-03-17 16:48 ` [Buildroot] [PATCH v2 15/15] toolchain-common: drop BR2_LARGEFILE Gustavo Zacarias
2015-03-19 21:41 ` [Buildroot] [PATCH v2 00/15] Drop non-largefile support Bernd Kuhls

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=20150321111005.GA4201@free.fr \
    --to=yann.morin.1998@free.fr \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox