diff options
Diffstat (limited to 'scripts/bitbake')
-rwxr-xr-x | scripts/bitbake | 16 |
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 | |||
3 | export BBFETCH2=True | 7 | export BBFETCH2=True |
4 | export BB_ENV_EXTRAWHITE="PSEUDO_BUILD PSEUDO_DISABLED $BB_ENV_EXTRAWHITE" | 8 | export 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 | ||
6 | NO_BUILD_OPTS="--version -h --help -p --parse-only -s --show-versions -e --environment -g --graphviz" | 12 | NO_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) | ||
7 | PASSTHROUGH_OPTS="-D -DD -DDD -DDDD -v" | 16 | PASSTHROUGH_OPTS="-D -DD -DDD -DDDD -v" |
17 | |||
8 | needpseudo="1" | 18 | needpseudo="1" |
9 | for opt in $@; do | 19 | for opt in $@; do |
10 | for key in $NO_BUILD_OPTS; do | 20 | for key in $NO_BUILD_OPTS; do |
@@ -29,7 +39,7 @@ if [ "$py_v3_check" != "" ]; then | |||
29 | fi | 39 | fi |
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. |
34 | py_v26_check=`python -c 'import sys; print sys.version_info >= (2,6,0)'` | 44 | py_v26_check=`python -c 'import sys; print sys.version_info >= (2,6,0)'` |
35 | if [ "$py_v26_check" != "True" ]; then | 45 | if [ "$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 |
58 | float_test "$TARVERSION > 1.23" && needtar="0" | 68 | float_test "$TARVERSION > 1.23" && needtar="0" |
59 | 69 | ||
60 | buildpseudo="1" | 70 | buildpseudo="1" |