-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add script to setup up cross-compile with Yocto built tools
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|