diff options
author | Darren Hart <dvhart@linux.intel.com> | 2011-07-14 14:05:42 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-14 22:22:59 +0100 |
commit | b975de5ea76c5f8827fb48c0c3c29902872ad3d6 (patch) | |
tree | d011af22fe42f69305c7d2e7061fa727d0fa9536 /scripts/contrib | |
parent | 615f05dc46afa14ea4fca49a551278b92d2c99d3 (diff) | |
download | openembedded-core-b975de5ea76c5f8827fb48c0c3c29902872ad3d6.tar.gz openembedded-core-b975de5ea76c5f8827fb48c0c3c29902872ad3d6.tar.bz2 openembedded-core-b975de5ea76c5f8827fb48c0c3c29902872ad3d6.tar.xz openembedded-core-b975de5ea76c5f8827fb48c0c3c29902872ad3d6.zip |
bb-matrix: correct BB and PM number canonicalization
The bash string operation ${BB##*0} was greedy and in addition to converting
"02" to "2", also converted "20" to "", causing all builds for a BB value ending
in 0 to run with BB_NUMBER_THREADS=1.
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/contrib')
-rwxr-xr-x | scripts/contrib/bb-perf/bb-matrix.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/contrib/bb-perf/bb-matrix.sh b/scripts/contrib/bb-perf/bb-matrix.sh index 64d55137c..b9edd5ff0 100755 --- a/scripts/contrib/bb-perf/bb-matrix.sh +++ b/scripts/contrib/bb-perf/bb-matrix.sh @@ -62,8 +62,8 @@ for BB in $BB_RANGE; do echo "BB=$BB PM=$PM Logging to $BB_LOG" # Export the variables under test and run the bitbake command - export BB_NUMBER_THREADS="${BB##*0}" - export PARALLEL_MAKE="-j ${PM##*0}" + export BB_NUMBER_THREADS=$(echo $BB | sed 's/^0*//') + export PARALLEL_MAKE="-j $(echo $PM | sed 's/^0*//')" /usr/bin/time -f "$BB $PM $TIME_STR" -a -o $RUNTIME_LOG $BB_CMD &> $BB_LOG echo " $(tail -n1 $RUNTIME_LOG)" |