From: Richard Purdie <rpurdie@linux.intel.com>
To: Scott Garman <scott.a.garman@intel.com>
Cc: poky@yoctoproject.org
Subject: Re: [PATCH 1/1] Make poky-qemu and related scripts work with arbitrary SDK locations
Date: Thu, 09 Dec 2010 15:00:26 +0000 [thread overview]
Message-ID: <1291906826.1554.883.camel@rex> (raw)
In-Reply-To: <d101f08a4edaa96f5dff038447f9fc8bf021aa9b.1291785237.git.scott.a.garman@intel.com>
On Tue, 2010-12-07 at 20:59 -0800, Scott Garman wrote:
> diff --git a/scripts/poky-find-native-sysroot b/scripts/poky-find-native-sysroot
> index d8002f9..2262294 100755
> --- a/scripts/poky-find-native-sysroot
> +++ b/scripts/poky-find-native-sysroot
> diff --git a/scripts/poky-qemu b/scripts/poky-qemu
> index bc312e0..67af439 100755
> --- a/scripts/poky-qemu
> +++ b/scripts/poky-qemu
> @@ -31,9 +31,9 @@ usage() {
> echo " serial - enables a serial console on /dev/ttyS0"
> echo ""
> echo "Examples:"
> - echo " $0 qemuarm"
> - echo " $0 qemux86-64 poky-image-sato ext3"
> - echo " $0 path/to/bzImage-qemux86.bin path/to/nfsrootdir/ serial"
> + echo " $MYNAME qemuarm"
> + echo " $MYNAME qemux86-64 poky-image-sato ext3"
> + echo " $MYNAME path/to/bzImage-qemux86.bin path/to/nfsrootdir/ serial"
> exit 1
> }
>
> @@ -213,23 +213,29 @@ setup_tmpdir() {
> echo "before running this script" >&2;
> exit 1; }
>
> - # We have bitbake in PATH, get TMPDIR and BUILD_SYS
> - # from the environment
> + # We have bitbake in PATH, get TMPDIR from bitbake
> TMPDIR=`bitbake -e | grep TMPDIR=\" | cut -d '=' -f2 | cut -d '"' -f2`
> - BUILD_SYS=`bitbake -e | grep BUILD_SYS=\" | cut -d '=' -f2 | cut -d '"' -f2`
> else
> - BUILD_ARCH=`uname -m`
> - BUILD_OS=`uname | tr '[A-Z]' '[a-z]'`
> - BUILD_SYS="$BUILD_ARCH-$BUILD_OS"
> TMPDIR=$BUILDDIR/tmp
> fi
> - if [ -z "$POKY_NATIVE_SYSROOT" ]; then
> - POKY_NATIVE_SYSROOT=$TMPDIR/sysroots/$BUILD_SYS
> - fi
> - CROSSPATH=$POKY_NATIVE_SYSROOT/usr/bin
> fi
> }
Hmm, you remove CROSSPATH yet still reference it later. I think the code
has become confused. I'm going to merge the patch as it improves the
situation compared to how it is at the moment. I'll give some background
though:
There are three things we really want to reference in PATH:
a) The "native" or "nativesdk" tools
b) The "cross" tools, i.e. TARGET_PREFIX-gcc
c) The "cross" tools without the prefix, e.g. "gcc", replacing the
usual gcc you'd find in PATH. This last part is to allow distcc in a
image to use the compiler outside the emulation.
The distcc thing did used to work but I doubt it does at the moment as I
think this has just been reduced to the native case accidentally.
The paths in the sysroot corresponding to these are:
/opt/poky/sysroots/HOST-pokysdk-linux/usr/bin
/opt/poky/sysroots/HOST-pokysdk-linux/usr/bin/TARGET-poky-linux
/opt/poky/sysroots/HOST-pokysdk-linux/usr/libexec/TARGET-poky-linux/gcc/TARGET-poky-linux/GCCVERSION/
and there are similar paths in a Poky build directory.
I hope that helps clear things up a bit.
Cheers,
Richard
next prev parent reply other threads:[~2010-12-09 15:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-08 5:13 [PATCH 0/1] Make poky-qemu and related scripts work with arbitrary SDK locations Scott Garman
2010-12-08 4:59 ` [PATCH 1/1] " Scott Garman
2010-12-09 15:00 ` Richard Purdie [this message]
2010-12-09 21:33 ` Scott Garman
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=1291906826.1554.883.camel@rex \
--to=rpurdie@linux.intel.com \
--cc=poky@yoctoproject.org \
--cc=scott.a.garman@intel.com \
/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.