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>
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
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