Cross-compiler Toolchain and OpenEmbedded

Hi!

I recently start building the filesystem for Beagle Board through
OpenEmbedded, but now I also want to change its kernel using the steps
shown here: http://elinux dot org/BeagleBoard#Linux_kernel. To do that
I need the staging and the cross-compiler toolchain directories, but I
can't find them.
The top level directories that appear after doing the console-image
are:

$ find tmp -maxdepth 2 -type d
tmp
tmp/work
tmp/work/armv7a-angstrom-linux-gnueabi
tmp/work/i686-linux
tmp/work/beagleboard-angstrom-linux-gnueabi
tmp/work/all-angstrom-linux-gnueabi
tmp/download
tmp/download/sources
tmp/pstage
tmp/pstage/angstromglibc
tmp/pstage/pstaging_lists
tmp/rootfs
tmp/deploy
tmp/deploy/glibc
tmp/pkgdata
tmp/pkgdata/armv7a-angstrom-linux-gnueabi
tmp/pkgdata/i686-linux
tmp/pkgdata/beagleboard-angstrom-linux-gnueabi
tmp/pkgdata/all-angstrom-linux-gnueabi
tmp/stamps
tmp/stamps/armv7a-angstrom-linux-gnueabi
tmp/stamps/i686-linux
tmp/stamps/beagleboard-angstrom-linux-gnueabi
tmp/stamps/all-angstrom-linux-gnueabi
tmp/sysroots
tmp/sysroots/armv7a-angstrom-linux-gnueabi
tmp/sysroots/i686-linux
tmp/sysroots/beagleboard-angstrom-linux-gnueabi
tmp/cache
tmp/cache/glibc
tmp/usr
tmp/usr/lib

Usually the cross-compiler toolchain is in the tmp/cross directory and
the staging in the /tmp/staging directory.

Can someone help me? Thanks in advance.

OE structure changed a bit recently. I use something like this for OE
with
Gumstix boards. I modified for beagleboards, but didn't actually test
it.

if [[ -z "${KERNEL_CROSS_BUILD_ENVIRONMENT_SOURCED}" ]]; then

    MACHINE=beagleboard

    # normally OETMP will be ${OETREE}/tmp, but really it is whatever
TMPDIR
    # in ${OETREE}/build/conf/local.conf points to.
    OETMP=${OETREE}/tmp
    # OETMP=/beagle

    SYSROOTSDIR=${OETMP}/sysroots
    STAGEDIR=${SYSROOTSDIR}/`uname -m`-linux/usr

    export KERNELDIR=${SYSROOTSDIR}/${MACHINE}-angstrom-linux-gnueabi/
kernel

    PATH=${PATH}:${STAGEDIR}/bin:${STAGEDIR}/armv7a/bin

    unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE

    export ARCH="arm"
    export CROSS_COMPILE="arm-angstrom-linux-gnueabi-"
    export CC="arm-angstrom-linux-gnueabi-gcc"
    export LD="arm-angstrom-linux-gnueabi-ld"
    export STRIP="arm-angstrom-linux-gnueabi-strip"

    export KERNEL_CROSS_BUILD_ENVIRONMENT_SOURCED="true"

    echo "Altered environment for cross building a kernel module with
OE tools."
else
    echo "Cross build environment already configured."
fi

Hi!

I recently start building the filesystem for Beagle Board through
OpenEmbedded, but now I also want to change its kernel using the steps
shown here: http://elinux dot org/BeagleBoard#Linux_kernel. To do that
I need the staging and the cross-compiler toolchain directories, but I
can't find them.

Those instructions are a bit behind the OE mechanism.

Try looking using
   tmp/sysroots/armv7a-angstrom-linux-gnueabi/bin
   tmp/sysroots/i686-linux/usr/bin

Thank you scottellis and Gary. It's working.