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.3.2/bin/arm-none-linux-gnueabi-
22 if [ "$USER" = "dofmind" ]; then
23 CROSS_COMPILER=/opt/toolchains/arm-2008q3/bin/arm-none-linux-gnueabi-
26 if [ "$USER" = "prom" ]; then
27 CROSS_COMPILER=/opt/toolchains/arm-2008q3/bin/arm-none-linux-gnueabi-
30 if [ "$USER" = "jaehoon" ]; then
31 CROSS_COMPILER=/usr/local/arm/arm-2008q3/bin/arm-none-linux-gnueabi-
34 if [ "$USER" = "dh09.lee" ]; then
35 CROSS_COMPILER=/usr/local/arm/arm-2008q3/bin/arm-none-linux-gnueabi-
42 make ARCH=arm CROSS_COMPILE="$CCACHE $CROSS_COMPILER" $JOBS $*
47 cat onenand_ipl/onenand-ipl-16k-evt0.bin u-boot.bin > u-boot-onenand-evt0.bin
48 # To distinguish previous u-boot-onenand.bin, it uses the evt1 suffix
49 cp u-boot-onenand.bin u-boot-onenand-evt1.bin
59 size=`ls -al u-boot-onenand.bin | awk -F' ' '{printf $5}'`
60 if [ "$size" -ge "262144" ]; then
61 echo "u-boot-onenand.bin execced the 256KiB 262144 -> $size"
65 if [ "$USER" = "kmpark" ]; then
66 ls -al u-boot.bin u-boot-onenand.bin u-boot-onenand-evt0.bin
67 # To prevent wrong program
68 cp -f u-boot-onenand-evt0.bin u-boot-onenand.bin
69 cp -f u-boot.bin u-boot-onenand.bin u-boot-onenand-evt0.bin /tftpboot
74 elif [ "$USER" = "dofmind" ]; then
75 tar cvf system_uboot_evt0.tar u-boot-onenand-evt0.bin
76 tar cvf system_uboot_evt1.tar u-boot-onenand-evt1.bin
77 tar cvf system_uboot.tar u-boot-onenand.bin
78 mv -f system_uboot*.tar /home/work
79 elif [ "$USER" = "prom" ]; then
80 tar cvf system_uboot_evt0.tar u-boot-onenand-evt0.bin
81 tar cvf system_uboot_evt1.tar u-boot-onenand-evt1.bin
82 mv -f system_uboot* /home/share/Work/bin