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 02/11] toolchain-external: do not pass TOOLCHAIN_EXTERNAL_CFLAGS for kernel headers check
Date: Sun, 8 Jun 2014 18:17:05 +0200	[thread overview]
Message-ID: <20140608161705.GF3266@free.fr> (raw)
In-Reply-To: <1401619668-28062-3-git-send-email-thomas.petazzoni@free-electrons.com>

Thomas, All,

On 2014-06-01 12:47 +0200, Thomas Petazzoni spake thusly:
> When getting the sysroot used for the kernel headers version check,
> passing TOOLCHAIN_EXTERNAL_CFLAGS causes a problem when used with
> multilib toolchains, where only the main sysroot has the header files,
> and the other sysroots only have the libraries.
> 
> Since the kernel headers version used is normally the same for all
> sysroots, this commit solves this problem by removing the
> TOOLCHAIN_EXTERNAL_CFLAGS argument when calling
> toolchain_find_sysroot, so that it returns the main sysroot, in which
> <linux/version.h> can be found for the kernel headers version check.
> 
> Cc: Yann E. MORIN <yann.morin.1998@free.fr>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

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

I don't have a setup handy for testing this, so it's only a reviewed-by.
But I don't expect it to break anything.

Regards,
Yann E. MORIN.

> ---
>  toolchain/toolchain-external/toolchain-external.mk | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/toolchain/toolchain-external/toolchain-external.mk b/toolchain/toolchain-external/toolchain-external.mk
> index 70781db..6816b3f 100644
> --- a/toolchain/toolchain-external/toolchain-external.mk
> +++ b/toolchain/toolchain-external/toolchain-external.mk
> @@ -467,7 +467,7 @@ define TOOLCHAIN_EXTERNAL_CONFIGURE_CMDS
>  		exit 1 ; \
>  	fi ; \
>  	$(call check_kernel_headers_version,\
> -		$(call toolchain_find_sysroot,$(TOOLCHAIN_EXTERNAL_CC) $(TOOLCHAIN_EXTERNAL_CFLAGS)),\
> +		$(call toolchain_find_sysroot,$(TOOLCHAIN_EXTERNAL_CC)),\
>  		$(call qstrip,$(BR2_TOOLCHAIN_HEADERS_AT_LEAST))); \
>  	if test "$(BR2_arm)" = "y" ; then \
>  		$(call check_arm_abi,\
> -- 
> 1.9.3
> 

-- 
.-----------------.--------------------.------------------.--------------------.
|  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:[~2014-06-08 16:17 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-01 10:47 [Buildroot] [PATCH 00/11] Round of external toolchain updates Thomas Petazzoni
2014-06-01 10:47 ` [Buildroot] [PATCH 01/11] toolchain-external: apply kernel headers check to non-custom toolchains Thomas Petazzoni
2014-06-08 16:10   ` Yann E. MORIN
2014-06-01 10:47 ` [Buildroot] [PATCH 02/11] toolchain-external: do not pass TOOLCHAIN_EXTERNAL_CFLAGS for kernel headers check Thomas Petazzoni
2014-06-08 16:17   ` Yann E. MORIN [this message]
2014-06-01 10:47 ` [Buildroot] [PATCH 03/11] toolchain-external: support only one Linaro ARM toolchain at a time Thomas Petazzoni
2014-06-08 16:18   ` Yann E. MORIN
2014-06-01 10:47 ` [Buildroot] [PATCH 04/11] toolchain-external: support only one Linaro AArch64 " Thomas Petazzoni
2014-06-08 16:19   ` Yann E. MORIN
2014-06-01 10:47 ` [Buildroot] [PATCH 05/11] toolchain-external: bump Linaro ARM to 2014.05 Thomas Petazzoni
2014-06-08 16:30   ` Yann E. MORIN
2014-06-01 10:47 ` [Buildroot] [PATCH 06/11] toolchain-external: bump Linaro ARMeb toolchain to 2014.04 Thomas Petazzoni
2014-06-08 16:37   ` Yann E. MORIN
2014-06-01 10:47 ` [Buildroot] [PATCH 07/11] toolchain-external: bump Linaro AArch64 toolchain to 2014.05 Thomas Petazzoni
2014-06-08 16:39   ` Yann E. MORIN
2014-06-01 10:47 ` [Buildroot] [PATCH 08/11] toolchain-external: bump musl external toolchains to 1.1.1 Thomas Petazzoni
2014-06-01 10:58   ` Baruch Siach
2014-06-01 11:02     ` Thomas Petazzoni
2014-06-13 12:49   ` Peter Korsgaard
2014-06-01 10:47 ` [Buildroot] [PATCH 09/11] toolchain-external: add CodeSourcery MIPS 2014.05, remove 2012.09 Thomas Petazzoni
2014-06-08 16:44   ` Yann E. MORIN
2014-06-01 10:47 ` [Buildroot] [PATCH 10/11] toolchain-external: add CodeSourcery PowerPC 2012.03 Thomas Petazzoni
2014-06-08 16:49   ` Yann E. MORIN
2014-06-08 16:54     ` Thomas Petazzoni
2014-06-13 13:00   ` Ryan Barnett
2014-06-01 10:47 ` [Buildroot] [PATCH 11/11] toolchain-external: add ADI Blackfin 2014R1 toolchain, remove 2012R1 Thomas Petazzoni
2014-06-08 17:16   ` Yann E. MORIN

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=20140608161705.GF3266@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