forked from scottellis/omap3-pwm
-
Notifications
You must be signed in to change notification settings - Fork 4
/
overo-source-me.txt
37 lines (27 loc) · 1.08 KB
/
overo-source-me.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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=/gum
SYSROOTSDIR=${OETMP}/sysroots
STAGEDIR=${SYSROOTSDIR}/`uname -m`-linux
CROSSBINDIR=${OETMP}/cross/armv7a/bin
export KERNELDIR=${SYSROOTSDIR}/${MACHINE}-angstrom-linux-gnueabi/kernel
PATH=${STAGEDIR}/bin:${PATH}
PATH=${STAGEDIR}/sbin:${PATH}
PATH=${CROSSBINDIR}:${PATH}
PATH=${STAGEDIR}/usr/bin:${PATH}
PATH=${STAGEDIR}/usr/sbin:${PATH}
PATH=${STAGEDIR}/usr/bin/armv7a-angstrom-linux-gnueabi:${PATH}
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