summaryrefslogtreecommitdiffstats
path: root/scripts
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
parent43d819c8901db30c359694ef83ceb123909cb298 (diff)
downloadast2050-yocto-poky-1482da4f3a4a5a3985f2bf49439a32a7f626f68f.zip
ast2050-yocto-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')
-rwxr-xr-xscripts/bitbake16
1 files changed, 13 insertions, 3 deletions
diff --git a/scripts/bitbake b/scripts/bitbake
index 0431d95..3772d82 100755
--- a/scripts/bitbake
+++ b/scripts/bitbake
@@ -1,10 +1,20 @@
#!/bin/sh
+# This is the bitbake wrapper script that ensures everything is set up
+# correctly in the environment, builds pseudo separately if it hasn't
+# already been built, and then runs bitbake within pseudo.
+
export BBFETCH2=True
export BB_ENV_EXTRAWHITE="PSEUDO_BUILD PSEUDO_DISABLED $BB_ENV_EXTRAWHITE"
+# For certain operations (i.e. that won't be actually running any tasks)
+# we don't need pseudo
NO_BUILD_OPTS="--version -h --help -p --parse-only -s --show-versions -e --environment -g --graphviz"
+
+# Some options are useful to pass through to the initial pseudo build if
+# that needs to be run (for debugging)
PASSTHROUGH_OPTS="-D -DD -DDD -DDDD -v"
+
needpseudo="1"
for opt in $@; do
for key in $NO_BUILD_OPTS; do
@@ -29,7 +39,7 @@ if [ "$py_v3_check" != "" ]; then
fi
# Similarly, we now have code that doesn't parse correctly with older
-# versions of Python, and rather than fixing that and be eternally
+# versions of Python, and rather than fixing that and being eternally
# vigilant for any other new feature use, just check the version here.
py_v26_check=`python -c 'import sys; print sys.version_info >= (2,6,0)'`
if [ "$py_v26_check" != "True" ]; then
@@ -53,8 +63,8 @@ float_test() {
echo | awk 'END { exit ( !( '"$1"')); }'
}
-# Tar version 1.24 and onwards handle symlinks in sstate packages correctly
-# but earlier versions do not
+# Tar version 1.24 and onwards handle overwriting symlinks correctly
+# but earlier versions do not; this needs to work properly for sstate
float_test "$TARVERSION > 1.23" && needtar="0"
buildpseudo="1"
OpenPOWER on IntegriCloud