summaryrefslogtreecommitdiffstats
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 17:00:45 +0000
commit0656f57235c9292f5e5dbc7151f74e1bfcff6ebd (patch)
tree8bd49d69564ebaa0aa21a5e913e499dc9e863966 /scripts
parent41a83ccfe50ec69425a4828fb5836d38d3f99e67 (diff)
downloadpoky-0656f57235c9292f5e5dbc7151f74e1bfcff6ebd.tar.gz
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. (From OE-Core rev: dcf6f72c35f7c108e447d01c15df86807e26a88b) 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
4export BB_ENV_EXTRAWHITE="PSEUDO_BUILD PSEUDO_DISABLED $BB_ENV_EXTRAWHITE" 4export BB_ENV_EXTRAWHITE="PSEUDO_BUILD PSEUDO_DISABLED $BB_ENV_EXTRAWHITE"
5 5
6NO_BUILD_OPTS="--version -h --help -p --parse-only -s --show-versions -e --environment -g --graphviz" 6NO_BUILD_OPTS="--version -h --help -p --parse-only -s --show-versions -e --environment -g --graphviz"
7PASSTHROUGH_OPTS="-D -DD -DDD -DDDD -v"
7needpseudo="1" 8needpseudo="1"
8for opt in $@; do 9for opt in $@; do
9for key in $NO_BUILD_OPTS; do 10for key in $NO_BUILD_OPTS; do
@@ -69,7 +70,18 @@ if [ $buildpseudo = "1" ]; then
69 if [ $needtar = "0" ]; then 70 if [ $needtar = "0" ]; then
70 TARTARGET="" 71 TARTARGET=""
71 fi 72 fi
72 bitbake pseudo-native $TARTARGET -c populate_sysroot 73 # Pass through debug options
74 additionalopts=""
75 for opt in $@; do
76 for key in $PASSTHROUGH_OPTS; do
77 if [ $opt = $key ]
78 then
79 additionalopts="$additionalopts $opt"
80 break
81 fi
82 done
83 done
84 bitbake pseudo-native $TARTARGET $additionalopts -c populate_sysroot
73 ret=$? 85 ret=$?
74 if [ "$ret" != "0" ]; then 86 if [ "$ret" != "0" ]; then
75 exit 1 87 exit 1