Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Tom Rini <tom_rini@mentor.com>
To: <openembedded-devel@lists.openembedded.org>
Subject: Re: [PATCH 1/3] bitbake.conf, native*.bbclass: pass --sysroot to TOOLCHAIN_OPTIONS
Date: Thu, 24 Feb 2011 18:21:56 -0700	[thread overview]
Message-ID: <4D670434.6010701@mentor.com> (raw)
In-Reply-To: <1298590758-8843-1-git-send-email-denis@denix.org>

On 02/24/2011 04:39 PM, Denys Dmytriyenko wrote:
> From: Denys Dmytriyenko<denys@ti.com>
>
> Commit 9c5b9db29738a89837917b1a2d8ee5a1cae0b4cc (bitbake.conf: Simplify
> TARGET_CPPFLAGS/LDFLAGS) potentially breaks external toolchains, when their
> default sysroot is different from our sysroot/staging location.
>
> Pass default --sysroot to compiler/linker through TOOLCHAIN_OPTIONS, avoiding
> native and nativesdk packages. This matches the corresponding changes in Poky.
> cross.bbclass was already doing it, since it originated from Poky, AFAIK.
>
> Signed-off-by: Denys Dmytriyenko<denys@ti.com>

Acked-by: Tom Rini <tom_rini@mentor.com>

> ---
>   classes/native.bbclass    |    2 ++
>   classes/nativesdk.bbclass |    2 ++
>   conf/bitbake.conf         |    2 +-
>   3 files changed, 5 insertions(+), 1 deletions(-)
>
> diff --git a/classes/native.bbclass b/classes/native.bbclass
> index 000ad61..b8a792f 100644
> --- a/classes/native.bbclass
> +++ b/classes/native.bbclass
> @@ -37,6 +37,8 @@ CXXFLAGS = "${BUILD_CFLAGS}"
>   LDFLAGS = "${BUILD_LDFLAGS}"
>   LDFLAGS_build-darwin = "-L${STAGING_LIBDIR_NATIVE} "
>
> +TOOLCHAIN_OPTIONS = ""
> +
>   STAGING_BINDIR = "${STAGING_BINDIR_NATIVE}"
>   STAGING_BINDIR_CROSS = "${STAGING_BINDIR_NATIVE}"
>
> diff --git a/classes/nativesdk.bbclass b/classes/nativesdk.bbclass
> index 6f21534..6689399 100644
> --- a/classes/nativesdk.bbclass
> +++ b/classes/nativesdk.bbclass
> @@ -36,6 +36,8 @@ CFLAGS = "${BUILDSDK_CFLAGS}"
>   CXXFLAGS = "${BUILDSDK_CFLAGS}"
>   LDFLAGS = "${BUILDSDK_LDFLAGS}"
>
> +TOOLCHAIN_OPTIONS = ""
> +
>   # Change to place files in SDKPATH
>   prefix = "${SDKPATH}"
>   exec_prefix = "${SDKPATH}"
> diff --git a/conf/bitbake.conf b/conf/bitbake.conf
> index 34f7726..1002c01 100644
> --- a/conf/bitbake.conf
> +++ b/conf/bitbake.conf
> @@ -460,7 +460,7 @@ export PATH
>   ##################################################################
>
>   CCACHE ?= ""
> -TOOLCHAIN_OPTIONS = ""
> +TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR_TARGET}"
>   TOOLCHAIN_PATH ?= "${STAGING_DIR_NATIVE}${prefix_native}/${BASE_PACKAGE_ARCH}"
>   TOOLCHAIN_SYSPATH ?= "${TOOLCHAIN_PATH}/${TARGET_SYS}"
>


-- 
Tom Rini
Mentor Graphics Corporation



      parent reply	other threads:[~2011-02-25  1:23 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-22  1:14 [PATCH 0/1] bitbake.conf: Simplify TARGET_CPPFLAGS/LDFLAGS Tom Rini
2011-02-22  1:14 ` [PATCH] " Tom Rini
2011-02-22  6:21   ` Khem Raj
2011-02-24  4:37     ` Denys Dmytriyenko
2011-02-24 15:57       ` Tom Rini
2011-02-24 16:47         ` Tom Rini
2011-02-24 23:39           ` [PATCH 1/3] bitbake.conf, native*.bbclass: pass --sysroot to TOOLCHAIN_OPTIONS Denys Dmytriyenko
2011-02-24 23:39             ` [PATCH 2/3] ffmpeg: pass --sysroot to configure script directly Denys Dmytriyenko
2011-02-25  1:22               ` Tom Rini
2011-02-24 23:39             ` [PATCH 3/3] gst-ffmpeg: remove 4-year old hack that sets CC directly Denys Dmytriyenko
2011-02-25  1:22               ` Tom Rini
2011-02-25  9:26               ` Koen Kooi
2011-02-25  1:21             ` Tom Rini [this message]

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=4D670434.6010701@mentor.com \
    --to=tom_rini@mentor.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /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