build: add my individual settings
authorMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 7 Oct 2010 11:19:12 +0000 (13:19 +0200)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 7 Oct 2010 11:21:30 +0000 (13:21 +0200)
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
build.sh

index d99dc74..1b4ff81 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -49,6 +49,13 @@ check_users()
                CROSS_COMPILER=/scratchbox/compilers/arm-linux-gnueabi-gcc4.4.1-glibc2.10.1-2009q3-93/bin/arm-none-linux-gnueabi-
                JOBS="-j 5"
        fi
+       if [ "$USER" = "marek" ]; then
+               CROSS_COMPILER=/home/marek/dev//arm-2008q3/bin/arm-none-linux-gnueabi-
+               TARGET=${TARGET:-s5pc110}
+               make clean clobber unconfig mrproper
+               make ${TARGET}_universal_config
+               JOBS="-j 2"
+       fi
 }
 
 check_ipl()
@@ -142,4 +149,26 @@ elif [ "$USER" = "donggeun" ]; then
        tar cvf system_uboot_evt1.tar u-boot-onenand-evt1.bin
        tar cvf system_uboot_evt1-fused.tar u-boot-onenand-evt1-fused.bin
        mv -f system_uboot*.tar /home/donggeun/workspace/images
+elif [ "$USER" = "marek" ]; then
+       BOARD=`grep BOARD include/config.mk | awk -F'= ' '{printf $2}'`
+       DATE=`date +%Y%m%d`
+       echo $BOARD
+       if [ "$BOARD" = "universal_c110" ] ; then
+               tar cfv universal-uboot-system-${DATE}.tar u-boot-onenand-evt0.bin
+               tar cfv universal-uboot-system-${DATE}-evt1-fused.tar u-boot-onenand-evt1-fused.bin
+               tar cfv universal-uboot-system-${DATE}-evt1.tar u-boot-onenand-evt1.bin
+               cp universal-uboot-system-${DATE}.tar ../image/w1
+               cp universal-uboot-system-${DATE}-evt1-fused.tar ../image/w1
+               cp universal-uboot-system-${DATE}-evt1.tar ../image/w1
+       fi
+       if [ "$BOARD" = "universal_c210" ] ; then
+               pushd ../s-boot
+               ./build.sh
+               popd
+               mv s-boot-onenand.bin u-boot-onenand.bin
+               tar cfv universal-uboot-system-${DATE}-c210-sboot.tar u-boot-onenand.bin
+               cp universal-uboot-system-${DATE}-c210-sboot.tar ../image/w1
+               tar cfv universal-uboot-system-${DATE}-c210-raw.tar u-boot.bin
+               cp universal-uboot-system-${DATE}-c210-raw.tar ../image/w1
+       fi
 fi