diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2013-09-06 18:12:17 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-14 08:20:59 +0100 |
commit | 643252f88983a5eb89957fb53fff46c11c1e6750 (patch) | |
tree | b33384f28f4b1340128927f9ec8f3ed424524737 /scripts/contrib/bb-perf | |
parent | 0acde33c75f90e06516c0b9ce4291921aa9d4e58 (diff) | |
download | poky-643252f88983a5eb89957fb53fff46c11c1e6750.tar.gz |
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>
Diffstat (limited to 'scripts/contrib/bb-perf')
-rwxr-xr-x | scripts/contrib/bb-perf/bb-matrix.sh | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/scripts/contrib/bb-perf/bb-matrix.sh b/scripts/contrib/bb-perf/bb-matrix.sh index 37721fe268..106456584d 100755 --- a/scripts/contrib/bb-perf/bb-matrix.sh +++ b/scripts/contrib/bb-perf/bb-matrix.sh | |||
@@ -63,6 +63,10 @@ for BB in $BB_RANGE; do | |||
63 | date | 63 | date |
64 | echo "BB=$BB PM=$PM Logging to $BB_LOG" | 64 | echo "BB=$BB PM=$PM Logging to $BB_LOG" |
65 | 65 | ||
66 | echo -n " Preparing the work directory... " | ||
67 | rm -rf pseudodone tmp sstate-cache tmp-eglibc &> /dev/null | ||
68 | echo "done" | ||
69 | |||
66 | # Export the variables under test and run the bitbake command | 70 | # Export the variables under test and run the bitbake command |
67 | # Strip any leading zeroes before passing to bitbake | 71 | # Strip any leading zeroes before passing to bitbake |
68 | export BB_NUMBER_THREADS=$(echo $BB | sed 's/^0*//') | 72 | export BB_NUMBER_THREADS=$(echo $BB | sed 's/^0*//') |
@@ -70,12 +74,6 @@ for BB in $BB_RANGE; do | |||
70 | /usr/bin/time -f "$BB $PM $TIME_STR" -a -o $RUNTIME_LOG $BB_CMD &> $BB_LOG | 74 | /usr/bin/time -f "$BB $PM $TIME_STR" -a -o $RUNTIME_LOG $BB_CMD &> $BB_LOG |
71 | 75 | ||
72 | echo " $(tail -n1 $RUNTIME_LOG)" | 76 | echo " $(tail -n1 $RUNTIME_LOG)" |
73 | echo -n " Cleaning up..." | 77 | cp -a tmp/buildstats $RUNDIR/$BB-$PM-buildstats |
74 | mv tmp/buildstats $RUNDIR/$BB-$PM-buildstats | ||
75 | rm -f pseudodone &> /dev/null | ||
76 | rm -rf tmp &> /dev/null | ||
77 | rm -rf sstate-cache &> /dev/null | ||
78 | rm -rf tmp-eglibc &> /dev/null | ||
79 | echo "done" | ||
80 | done | 78 | done |
81 | done | 79 | done |