Skip to content

Commit

Permalink
Add script to setup up cross-compile with Yocto built tools
Browse files Browse the repository at this point in the history
  • Loading branch information
Syntro committed Dec 30, 2012
1 parent 3efa54a commit 282ce3e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions yocto-cross-env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
MACHINE=overo

# export an alternative OETMP before sourcing this file if you
# don't want the default
if [[ -z "${OETMP}" ]]; then
OETMP=${OVEROTOP}/tmp
fi

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

export KERNELDIR=${SYSROOTSDIR}/${MACHINE}/usr/src/kernel

PATH=${PATH}:${STAGEDIR}/bin:${STAGEDIR}/bin/armv7a-vfp-neon-poky-linux-gnueabi

unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE

export ARCH="arm"
export CROSS_COMPILE="arm-poky-linux-gnueabi-"
export CC="arm-poky-linux-gnueabi-gcc"
export LD="arm-poky-linux-gnueabi-ld"
export STRIP="arm-poky-linux-gnueabi-strip"
export AR="arm-poky-linux-gnueabi-ar"

0 comments on commit 282ce3e

Please sign in to comment.