3 # Set default cross compiler
4 CROSS_COMPILER=/opt/toolchains/arm-2008q3/bin/arm-none-linux-gnueabi-
6 # Check this system has ccache
10 if [ "$?" -eq "0" ]; then
18 if [ "$USER" = "kmpark" ]; then
19 #CROSS_COMPILER=/pub/toolchains/gcc-4.4.1/bin/arm-none-linux-gnueabi-
20 CROSS_COMPILER=/scratchbox/compilers/arm-linux-gnueabi-gcc4.4.1-glibc2.10.1-2009q3-93/bin/arm-none-linux-gnueabi-
23 if [ "$USER" = "dofmind" ]; then
24 CROSS_COMPILER=arm-none-linux-gnueabi-
27 if [ "$USER" = "prom" ]; then
28 CROSS_COMPILER=/opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-
31 if [ "$USER" = "jaehoon" ]; then
32 CROSS_COMPILER=/usr/local/arm/arm-2008q3/bin/arm-none-linux-gnueabi-
35 if [ "$USER" = "dh09.lee" ]; then
36 CROSS_COMPILER=/usr/local/arm/arm-2008q3/bin/arm-none-linux-gnueabi-
43 make ARCH=arm CROSS_COMPILE="$CCACHE $CROSS_COMPILER" $JOBS $*
48 cat onenand_ipl/onenand-ipl-16k-evt0.bin u-boot.bin > u-boot-onenand-evt0.bin
49 cat onenand_ipl/onenand-ipl-16k-fused.bin u-boot.bin > u-boot-onenand-evt1-fused.bin
50 # To distinguish previous u-boot-onenand.bin, it uses the evt1 suffix
51 cp u-boot-onenand.bin u-boot-onenand-evt1.bin
56 cat recovery/recovery-evt0.bin u-boot.bin > u-boot-recovery-evt0.bin
57 cat recovery/recovery-fused.bin u-boot.bin > u-boot-recovery-evt1-fused.bin
58 cp u-boot-recovery.bin u-boot-recovery-evt1.bin
69 size=`ls -al u-boot-onenand.bin | awk -F' ' '{printf $5}'`
70 if [ "$size" -ge "262144" ]; then
71 echo "u-boot-onenand.bin execced the 256KiB 262144 -> $size"
75 if [ "$USER" = "kmpark" ]; then
76 ls -al u-boot.bin u-boot-onenand.bin u-boot-onenand-evt0.bin
77 # To prevent wrong program
78 cp -f u-boot-onenand-evt0.bin u-boot-onenand.bin
79 cp -f u-boot.bin u-boot-onenand.bin u-boot-onenand-evt0.bin /tftpboot
84 elif [ "$USER" = "dofmind" ]; then
85 tar cvf system_uboot_evt0.tar u-boot-onenand-evt0.bin
86 tar cvf system_uboot_evt1.tar u-boot-onenand-evt1.bin
87 tar cvf system_uboot_evt1-fused.tar u-boot-onenand-evt1-fused.bin
88 tar cvf system_uboot.tar u-boot-onenand.bin
89 mv -f system_uboot*.tar /home/work
90 elif [ "$USER" = "prom" ]; then
91 tar cvf system_uboot_evt0.tar u-boot-onenand-evt0.bin
92 tar cvf system_uboot_evt1.tar u-boot-onenand-evt1.bin
93 tar cvf system_uboot_evt1-fused.tar u-boot-onenand-evt1-fused.bin
94 tar cvf system_uboot_recovery_evt0.tar u-boot-recovery-evt0.bin
95 tar cvf system_uboot_recovery_evt1.tar u-boot-recovery-evt1.bin
96 tar cvf system_uboot_recovery_evt1-fused.tar u-boot-recovery-evt1-fused.bin
97 mv -f system_uboot* /home/share/Work/bin