Current build status with annotated tickets for failures
[nslu2-linux/master.git] / setup-env
bloba1e0d3fbd552fdccbfaaf68e87d3b413dcbb0900
1 # setup up the environment for a bitbake build.  This is used
2 # by the makefile and may also be directly sourced from an
3 # interactive shell.  The makefile uses 'env -i' to ensure
4 # no variables are inherited apart from CCACHE_DISABLE and
5 # CCACHE_DIR
7 # topdir must exist in the directory and define TOPDIR to
8 # the full path name of the working directory
9 . ./conf/topdir.conf
10 test -n "$TOPDIR" -a -d "$TOPDIR" || {
11         echo "environment: TOPDIR not defined" >&2
12         exit 1
16 # the following must match the definitions in common/conf/site.conf
17 export PYTHONPATH="${TOPDIR}/bitbake/lib"
18 export BBPATH="${TOPDIR}:${TOPDIR}/openembedded:${TOPDIR}/bitbake"
19 export PATH="${TOPDIR}/bitbake/bin:${PATH}"
20 export LD_LIBRARY_PATH=
21 export LANG=C
22 #NOTE: if you add export definitions here add them below too!
24 # unset the following (unnecessary for the makefile, but safe)
25 unset LC_CTYPE
26 unset CC
27 unset CXX
28 unset MFLAGS
29 unset MAKEFLAGS
30 unset DISTRO
31 unset MACHINE
32 unset MAKE_TARGET
34 # make bb into a 'safe' bitbake
35 alias bb-safe="env -i \
36         HOME='${HOME}' \
37         PYTHONPATH='${PYTHONPATH}' \
38         BBPATH='${BBPATH}' \
39         PATH='${PATH}' \
40         LD_LIBRARY_PATH='${LD_LIBRARY_PATH}' \
41         LANG='${LANG}' \
42         '${TOPDIR}/bitbake/bin/bitbake'"
43 alias bb="'${TOPDIR}/bitbake/bin/bitbake'"
45 # remove TOPDIR - not required
46 unset TOPDIR