-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathoe-setup.sh
35 lines (27 loc) · 960 Bytes
/
oe-setup.sh
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
#!/bin/sh
# Set this to your working directory
export LOCAL_BUILD_DIR=`pwd`
# The location of the bitbake tool
BB_DIR=/tools/bitbake
# The location of the OpenEmbedded directory
export OPENEMBEDDED_DIR=/tools/openembedded
addpath () {
if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then
if [ "$2" = "after" ] ; then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
fi
}
if [ -n "$USE_SDEV_TOOLCHAIN" ]; then
export TOOLCHAIN_DIR=/mnt/sdev/tools/toolchain/arm/armv5te
addpath "$TOOLCHAIN_DIR/bin"
echo "You'll need to edit local.conf to set TOOLCHAIN_OPTIONS"
fi
addpath "$BB_DIR/bin"
export BBPATH=$LOCAL_BUILD_DIR:$OPENEMBEDDED_DIR
export BB_ENV_EXTRAWHITE="LOCAL_BUILD_DIR OPENEMBEDDED_DIR TOOLCHAIN_DIR MACHINE DUST_EXTRA_INSTALL"
# on first run, make sure there's a staging directory so we don't get errors
# about a missing lock file directory
[ -d "$LOCAL_BUILD_DIR/tmp/staging" ] || mkdir -p "$LOCAL_BUILD_DIR/tmp/staging"