diff options
| author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2012-03-26 13:56:26 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-31 17:59:10 +0100 |
| commit | 1482da4f3a4a5a3985f2bf49439a32a7f626f68f (patch) | |
| tree | 043d67b20940b78b4601244e0b68c666ae7eb23a /scripts/bitbake | |
| parent | 43d819c8901db30c359694ef83ceb123909cb298 (diff) | |
| download | poky-1482da4f3a4a5a3985f2bf49439a32a7f626f68f.tar.gz | |
scripts/bitbake: add/fix some comments
Add some comments explaining what this script does, fix one grammatical
error in a comment and make the tar-replacement-native comment give the
full reason why it is needed.
(From OE-Core rev: aa946e1d054d3a0b7097339e0fb74ee60bd94a78)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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" |
