bb-matrix: Clean before, rather than after, building
This makes sure the the first build starts from a clean state. Otherwise one could have the first build affected by any leftover state from a previous build. This also leaves a working state behind after the final build. (From OE-Core rev: f8f86ac88aa1bba99ba28762cfbd97d3721da7d9) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
0acde33c75
commit
643252f889
|
@ -63,6 +63,10 @@ for BB in $BB_RANGE; do
|
||||||
date
|
date
|
||||||
echo "BB=$BB PM=$PM Logging to $BB_LOG"
|
echo "BB=$BB PM=$PM Logging to $BB_LOG"
|
||||||
|
|
||||||
|
echo -n " Preparing the work directory... "
|
||||||
|
rm -rf pseudodone tmp sstate-cache tmp-eglibc &> /dev/null
|
||||||
|
echo "done"
|
||||||
|
|
||||||
# Export the variables under test and run the bitbake command
|
# Export the variables under test and run the bitbake command
|
||||||
# Strip any leading zeroes before passing to bitbake
|
# Strip any leading zeroes before passing to bitbake
|
||||||
export BB_NUMBER_THREADS=$(echo $BB | sed 's/^0*//')
|
export BB_NUMBER_THREADS=$(echo $BB | sed 's/^0*//')
|
||||||
|
@ -70,12 +74,6 @@ for BB in $BB_RANGE; do
|
||||||
/usr/bin/time -f "$BB $PM $TIME_STR" -a -o $RUNTIME_LOG $BB_CMD &> $BB_LOG
|
/usr/bin/time -f "$BB $PM $TIME_STR" -a -o $RUNTIME_LOG $BB_CMD &> $BB_LOG
|
||||||
|
|
||||||
echo " $(tail -n1 $RUNTIME_LOG)"
|
echo " $(tail -n1 $RUNTIME_LOG)"
|
||||||
echo -n " Cleaning up..."
|
cp -a tmp/buildstats $RUNDIR/$BB-$PM-buildstats
|
||||||
mv tmp/buildstats $RUNDIR/$BB-$PM-buildstats
|
|
||||||
rm -f pseudodone &> /dev/null
|
|
||||||
rm -rf tmp &> /dev/null
|
|
||||||
rm -rf sstate-cache &> /dev/null
|
|
||||||
rm -rf tmp-eglibc &> /dev/null
|
|
||||||
echo "done"
|
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue