Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] bb-matrix: correct BB and PM number canonicalization
@ 2011-07-14 21:05 Darren Hart
  2011-07-14 21:05 ` [PATCH 1/1] " Darren Hart
  0 siblings, 1 reply; 2+ messages in thread
From: Darren Hart @ 2011-07-14 21:05 UTC (permalink / raw)
  To: openembedded-core; +Cc: Darren Hart

The following changes since commit f7fd215749e12852378a3a1cce7d316078ead54d:

  perl: Use SITEINFO variables not functions (2011-07-14 15:40:48 +0100)

are available in the git repository at:
  git://git.pokylinux.org/poky-contrib dvhart/bb-perf
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=dvhart/bb-perf

Darren Hart (1):
  bb-matrix: correct BB and PM number canonicalization

 scripts/contrib/bb-perf/bb-matrix.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)




^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 1/1] bb-matrix: correct BB and PM number canonicalization
  2011-07-14 21:05 [PATCH 0/1] bb-matrix: correct BB and PM number canonicalization Darren Hart
@ 2011-07-14 21:05 ` Darren Hart
  0 siblings, 0 replies; 2+ messages in thread
From: Darren Hart @ 2011-07-14 21:05 UTC (permalink / raw)
  To: openembedded-core; +Cc: Darren Hart

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>
---
 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 64d5513..b9edd5f 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)"
-- 
1.7.1




^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-07-14 21:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-14 21:05 [PATCH 0/1] bb-matrix: correct BB and PM number canonicalization Darren Hart
2011-07-14 21:05 ` [PATCH 1/1] " Darren Hart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox