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-2009q3/bin/arm-none-linux-gnueabi-
35 if [ "$USER" = "dh09.lee" ]; then
36 CROSS_COMPILER=/usr/local/arm/arm-2008q3/bin/arm-none-linux-gnueabi-
39 if [ "$USER" = "riverful" ]; then
40 CROSS_COMPILER=/opt/arm-2009q3/bin/arm-none-linux-gnueabi-
47 if [ "$1" = "mmc" ]; then
56 if [ "$1" != "mmc" ]; then
59 make ARCH=arm CROSS_COMPILE="$CCACHE $CROSS_COMPILER" $JOBS $OPT
64 cat "$IPL"_ipl/"$IPL"-ipl-16k-evt0.bin u-boot.bin > u-boot-"$IPL"-evt0.bin
65 cat "$IPL"_ipl/"$IPL"-ipl-16k-fused.bin u-boot.bin > u-boot-"$IPL"-evt1-fused.bin
66 # To distinguish previous u-boot-onenand.bin, it uses the evt1 suffix
67 cp u-boot-"$IPL".bin u-boot-"$IPL"-evt1.bin
72 if [ "$IPL" != "mmc" ]; then
73 cat recovery/recovery-evt0.bin u-boot.bin > u-boot-recovery-evt0.bin
74 cat recovery/recovery-fused.bin u-boot.bin > u-boot-recovery-evt1-fused.bin
75 cp u-boot-recovery.bin u-boot-recovery-evt1.bin
88 if [ "$IPL" != "mmc" ]; then
89 size=`ls -al u-boot-onenand.bin | awk -F' ' '{printf $5}'`
90 if [ "$size" -ge "262144" ]; then
91 echo "u-boot-onenand.bin execced the 256KiB 262144 -> $size"
96 if [ "$USER" = "kmpark" ]; then
97 ls -al u-boot.bin u-boot-onenand.bin u-boot-onenand-evt0.bin
98 # To prevent wrong program
99 cp -f u-boot-onenand-evt0.bin u-boot-onenand.bin
100 cp -f u-boot.bin u-boot-onenand.bin u-boot-onenand-evt0.bin /tftpboot
105 elif [ "$USER" = "dofmind" ]; then
106 tar cvf system_uboot_evt0.tar u-boot-onenand-evt0.bin
107 tar cvf system_uboot_evt1.tar u-boot-onenand-evt1.bin
108 tar cvf system_uboot_evt1-fused.tar u-boot-onenand-evt1-fused.bin
109 tar cvf system_uboot.tar u-boot-onenand.bin
110 mv -f system_uboot*.tar /home/release
111 elif [ "$USER" = "prom" ]; then
112 tar cvf system_uboot_evt0.tar u-boot-onenand-evt0.bin
113 tar cvf system_uboot_evt1.tar u-boot-onenand-evt1.bin
114 tar cvf system_uboot_evt1-fused.tar u-boot-onenand-evt1-fused.bin
115 tar cvf system_uboot_recovery_evt0.tar u-boot-recovery-evt0.bin
116 tar cvf system_uboot_recovery_evt1.tar u-boot-recovery-evt1.bin
117 tar cvf system_uboot_recovery_evt1-fused.tar u-boot-recovery-evt1-fused.bin
118 mv -f system_uboot* /home/share/Work/bin