+++ /dev/null
-if [[ -z "${KERNEL_CROSS_BUILD_ENVIRONMENT_SOURCED}" ]]; then
-
- MACHINE=overo
-
- # normally OETMP will be ${OVEROTOP}/tmp, but really it is whatever TMPDIR
- # in ${OVEROTOP}/build/conf/site.conf points to.
- OETMP=${OVEROTOP}/tmp
- # OETMP=/oe5
-
- 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
-