# setup up the environment for a bitbake build. This is used # by the makefile and may also be directly sourced from an # interactive shell. The makefile uses 'env -i' to ensure # no variables are inherited apart from CCACHE_DISABLE and # CCACHE_DIR # # topdir must exist in the directory and define TOPDIR to # the full path name of the working directory . ./conf/topdir.conf test -n "$TOPDIR" -a -d "$TOPDIR" || { echo "environment: TOPDIR not defined" >&2 exit 1 } # # the following must match the definitions in common/conf/site.conf export PYTHONPATH="${TOPDIR}/bitbake/lib" export BBPATH="${TOPDIR}:${TOPDIR}/openembedded:${TOPDIR}/bitbake" export PATH="${TOPDIR}/bitbake/bin:${PATH}" export LD_LIBRARY_PATH= export LANG=C #NOTE: if you add export definitions here add them below too! # # unset the following (unnecessary for the makefile, but safe) unset LC_CTYPE unset CC unset CXX unset MFLAGS unset MAKEFLAGS unset DISTRO unset MACHINE unset MAKE_TARGET # # make bb into a 'safe' bitbake alias bb-safe="env -i \ HOME='${HOME}' \ PYTHONPATH='${PYTHONPATH}' \ BBPATH='${BBPATH}' \ PATH='${PATH}' \ LD_LIBRARY_PATH='${LD_LIBRARY_PATH}' \ LANG='${LANG}' \ '${TOPDIR}/bitbake/bin/bitbake'" alias bb="'${TOPDIR}/bitbake/bin/bitbake'" # # remove TOPDIR - not required unset TOPDIR