summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-02-14 13:22:24 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-21 14:54:57 +0000
commitdcf6f72c35f7c108e447d01c15df86807e26a88b (patch)
tree6ea32ef288c94fd0af0fc1b9163c0311dbbf19f9 /scripts
parente5ad03093dfc4364d1407183f458df79f347c7a1 (diff)
downloadopenembedded-core-dcf6f72c35f7c108e447d01c15df86807e26a88b.tar.gz
openembedded-core-dcf6f72c35f7c108e447d01c15df86807e26a88b.tar.bz2
openembedded-core-dcf6f72c35f7c108e447d01c15df86807e26a88b.zip
scripts/bitbake: pass through debug options to initial pseudo build
If you specify -D or -v options to the bitbake wrapper script, and the initial pseudo build needs to be done, it's useful to pass these options through to that command so that you can debug the initial pseudo build as well. 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/bitbake14
1 files changed, 13 insertions, 1 deletions
diff --git a/scripts/bitbake b/scripts/bitbake
index 1c8d4ebe19..dda3b261de 100755
--- a/scripts/bitbake
+++ b/scripts/bitbake
@@ -4,6 +4,7 @@ export BBFETCH2=True
export BB_ENV_EXTRAWHITE="PSEUDO_BUILD PSEUDO_DISABLED $BB_ENV_EXTRAWHITE"
NO_BUILD_OPTS="--version -h --help -p --parse-only -s --show-versions -e --environment -g --graphviz"
+PASSTHROUGH_OPTS="-D -DD -DDD -DDDD -v"
needpseudo="1"
for opt in $@; do
for key in $NO_BUILD_OPTS; do
@@ -69,7 +70,18 @@ if [ $buildpseudo = "1" ]; then
if [ $needtar = "0" ]; then
TARTARGET=""
fi
- bitbake pseudo-native $TARTARGET -c populate_sysroot
+ # Pass through debug options
+ additionalopts=""
+ for opt in $@; do
+ for key in $PASSTHROUGH_OPTS; do
+ if [ $opt = $key ]
+ then
+ additionalopts="$additionalopts $opt"
+ break
+ fi
+ done
+ done
+ bitbake pseudo-native $TARTARGET $additionalopts -c populate_sysroot
ret=$?
if [ "$ret" != "0" ]; then
exit 1