blob: a1e0d3fbd552fdccbfaaf68e87d3b413dcbb0900 (
plain)
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
37
38
39
40
41
42
43
44
45
46
|
# 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
|