build: fix the script
authorMinkyu Kang <mk7.kang@samsung.com>
Tue, 15 Jun 2010 06:47:51 +0000 (15:47 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Tue, 15 Jun 2010 06:47:51 +0000 (15:47 +0900)
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
build.sh

index a4e458f..4536b17 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -53,7 +53,10 @@ check_ipl()
 
 build_uboot()
 {
-       make ARCH=arm CROSS_COMPILE="$CCACHE $CROSS_COMPILER" $JOBS
+       if [ "$1" != "mmc" ]; then
+               OPT=$*
+       fi
+       make ARCH=arm CROSS_COMPILE="$CCACHE $CROSS_COMPILER" $JOBS $OPT
 }
 
 make_evt_image()
@@ -77,7 +80,7 @@ check_ccache
 check_users
 check_ipl $1
 
-build_uboot
+build_uboot $*
 
 make_evt_image
 make_recovery_image