summaryrefslogtreecommitdiffstats
path: root/scripts/bitbake
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-03-26 13:56:26 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-31 17:59:10 +0100
commit1482da4f3a4a5a3985f2bf49439a32a7f626f68f (patch)
tree043d67b20940b78b4601244e0b68c666ae7eb23a /scripts/bitbake
parent43d819c8901db30c359694ef83ceb123909cb298 (diff)
downloadpoky-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-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"