[oe-commits] Ulf Samuelsson : Do not comment away the real work\!
git version control
git at git.openembedded.org
Thu Aug 13 08:24:44 UTC 2009
Module: openembedded.git
Branch: ulf/linux-2.6.30.2
Commit: 5ce9fa6dc2c0bae20302b0d57da2ac8139fb3307
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=5ce9fa6dc2c0bae20302b0d57da2ac8139fb3307
Author: Ulf Samuelsson <ulf.samuelsson at atmel.com>
Date: Thu Aug 13 10:24:34 2009 +0200
Do not comment away the real work\!
---
scripts/MAKEALL | 22 +++++++---------------
1 files changed, 7 insertions(+), 15 deletions(-)
diff --git a/scripts/MAKEALL b/scripts/MAKEALL
index d76552b..3d5e9c4 100755
--- a/scripts/MAKEALL
+++ b/scripts/MAKEALL
@@ -2,8 +2,8 @@
TOPDIR=`pwd`
LOGFILE=build.log
OLDLOG=old.log
-#METHOD=do_rebuild
-METHOD=do_build
+METHOD=do_rebuild
+#METHOD=do_build
function log_time()
@@ -33,18 +33,14 @@ function prepare ()
function action ()
{
- printf "%-40s\n" "$1 using boards/build-$1/conf/local.conf" | tee -a ${LOGFILE} | tee -a $2.log
+ printf "%-40s\n" "Using 'boards/build-$1/conf/local.conf'" | tee -a ${LOGFILE} | tee -a $2.log
-# printf "%-50s\n" "Start building $2 at" | tee -a ${LOGFILE} | tee -a $2.log
log_time "$1 start building $2 at" $2
-# bitbake $2 > build.log 2>&1 || touch FAIL
-
-# printf "%-50s\n" "Stop building $2 at" | tee -a ${LOGFILE} | tee -a $2.log
+ bitbake $2 > build.log 2>&1 || touch FAIL
log_time "$1 stop building $2 at" $2
-# printf "%-50s\n" "Start building u-boot at" | tee -a ${LOGFILE} | tee -a $2.log
log_time "$1 start building u-boot at" $2
-# bitbake u-boot > u-boot.log 2>&1 || touch FAIL
+ bitbake u-boot > u-boot.log 2>&1 || touch FAIL
}
@@ -61,7 +57,7 @@ function remove_tmp ()
rm -fr tmp/usr ; printf "7"
rm -fr tmp/work ; printf "8"
rm -fr tmp ; printf "9"
- printf "%-10s\n" "[DONE]" | tee -a ${LOGFILE} | tee -a $2.log
+ printf "%-10s\n" " [DONE]" | tee -a ${LOGFILE} | tee -a $2.log
}
function do_rebuild ()
@@ -88,12 +84,8 @@ function build_board ()
{
printf "******************************************************************\n"
-# printf "%-50s" "$1 started at" | tee -a ${LOGFILE} | tee -a $2.log
- log_time "$1 started at" $2
+ log_time "$1 started at" $2
${METHOD} $1 $2
-
-
-# printf "%-50s" "$1 completed at" | tee -a ${LOGFILE} | tee -a $2.log
log_time_sts "$1 completed at" $2
}
More information about the Openembedded-commits
mailing list