summaryrefslogtreecommitdiffstats
path: root/scripts/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/bitbake')
-rwxr-xr-xscripts/bitbake16
1 files changed, 13 insertions, 3 deletions
diff --git a/scripts/bitbake b/scripts/bitbake
index 0431d9531a..3772d826fe 100755
--- a/scripts/bitbake
+++ b/scripts/bitbake
@@ -1,10 +1,20 @@
1#!/bin/sh 1#!/bin/sh
2 2
3# This is the bitbake wrapper script that ensures everything is set up
4# correctly in the environment, builds pseudo separately if it hasn't
5# already been built, and then runs bitbake within pseudo.
6
3export BBFETCH2=True 7export BBFETCH2=True
4export BB_ENV_EXTRAWHITE="PSEUDO_BUILD PSEUDO_DISABLED $BB_ENV_EXTRAWHITE" 8export BB_ENV_EXTRAWHITE="PSEUDO_BUILD PSEUDO_DISABLED $BB_ENV_EXTRAWHITE"
5 9
10# For certain operations (i.e. that won't be actually running any tasks)
11# we don't need pseudo
6NO_BUILD_OPTS="--version -h --help -p --parse-only -s --show-versions -e --environment -g --graphviz" 12NO_BUILD_OPTS="--version -h --help -p --parse-only -s --show-versions -e --environment -g --graphviz"
13
14# Some options are useful to pass through to the initial pseudo build if
15# that needs to be run (for debugging)
7PASSTHROUGH_OPTS="-D -DD -DDD -DDDD -v" 16PASSTHROUGH_OPTS="-D -DD -DDD -DDDD -v"
17
8needpseudo="1" 18needpseudo="1"
9for opt in $@; do 19for opt in $@; do
10for key in $NO_BUILD_OPTS; do 20for key in $NO_BUILD_OPTS; do
@@ -29,7 +39,7 @@ if [ "$py_v3_check" != "" ]; then
29fi 39fi
30 40
31# Similarly, we now have code that doesn't parse correctly with older 41# Similarly, we now have code that doesn't parse correctly with older
32# versions of Python, and rather than fixing that and be eternally 42# versions of Python, and rather than fixing that and being eternally
33# vigilant for any other new feature use, just check the version here. 43# vigilant for any other new feature use, just check the version here.
34py_v26_check=`python -c 'import sys; print sys.version_info >= (2,6,0)'` 44py_v26_check=`python -c 'import sys; print sys.version_info >= (2,6,0)'`
35if [ "$py_v26_check" != "True" ]; then 45if [ "$py_v26_check" != "True" ]; then
@@ -53,8 +63,8 @@ float_test() {
53 echo | awk 'END { exit ( !( '"$1"')); }' 63 echo | awk 'END { exit ( !( '"$1"')); }'
54} 64}
55 65
56# Tar version 1.24 and onwards handle symlinks in sstate packages correctly 66# Tar version 1.24 and onwards handle overwriting symlinks correctly
57# but earlier versions do not 67# but earlier versions do not; this needs to work properly for sstate
58float_test "$TARVERSION > 1.23" && needtar="0" 68float_test "$TARVERSION > 1.23" && needtar="0"
59 69
60buildpseudo="1" 70buildpseudo="1"