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
7 # topdir must exist in the directory and define TOPDIR to
8 # the full path name of the working directory
10 test -n "$TOPDIR" -a -d "$TOPDIR" || {
11 echo "environment: TOPDIR not defined" >&2
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=
22 #NOTE: if you add export definitions here add them below too!
24 # unset the following (unnecessary for the makefile, but safe)
34 # make bb into a 'safe' bitbake
35 alias bb-safe="env -i \
37 PYTHONPATH='${PYTHONPATH}' \
40 LD_LIBRARY_PATH='${LD_LIBRARY_PATH}' \
42 '${TOPDIR}/bitbake/bin/bitbake'"
43 alias bb="'${TOPDIR}/bitbake/bin/bitbake'"
45 # remove TOPDIR - not required