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-
21 touch onenand_ipl/board/samsung/universal_c210/start.S
24 if [ "$USER" = "dofmind" ]; then
25 CROSS_COMPILER=arm-none-linux-gnueabi-
28 if [ "$USER" = "prom" ]; then
29 CROSS_COMPILER=/opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-
32 if [ "$USER" = "jaehoon" ]; then
33 CROSS_COMPILER=/usr/local/arm/arm-2009q3/bin/arm-none-linux-gnueabi-
36 if [ "$USER" = "leedonghwa" ]; then
37 CROSS_COMPILER=/opt/toolchains/scratchbox/compilers/arm-linux-gnueabi-gcc4.4.1-glibc2.10.1-2009q3-93/bin/arm-none-linux-gnueabi-
40 if [ "$USER" = "riverful" ]; then
41 CROSS_COMPILER=/opt/arm-2009q3/bin/arm-none-linux-gnueabi-
44 if [ "$USER" = "cwchoi00" ]; then
45 CROSS_COMPILER=/opt/arm-2009q3/bin/arm-none-linux-gnueabi-
48 if [ "$USER" = "donggeun" ]; then
49 CROSS_COMPILER=/scratchbox/compilers/arm-linux-gnueabi-gcc4.4.1-glibc2.10.1-2009q3-93/bin/arm-none-linux-gnueabi-
52 if [ "$USER" = "marek" ]; then
53 CROSS_COMPILER=/home/marek/dev//arm-2008q3/bin/arm-none-linux-gnueabi-
54 TARGET=${TARGET:-s5pc110}
55 make clean clobber unconfig mrproper
56 make ${TARGET}_universal_config
59 if [ "$USER" = "lukma" ]; then
60 CROSS_COMPILER=/home/lukma/work/arm-2009q3/bin/arm-none-eabi-
67 if [ "$1" = "mmc" ]; then
76 if [ "$1" != "mmc" ]; then
79 make ARCH=arm CROSS_COMPILE="$CCACHE $CROSS_COMPILER" $JOBS $OPT
85 SOC=`grep BOARD include/config.mk | awk -F'_' '{print $2}'`
86 IPL_PREFIX=${IPL}_ipl/${IPL}-ipl
88 if [ "$SOC" = "c210" ]; then
89 echo "Use the s-boot instead"
90 elif [ "$SOC" = "c110" ]; then
92 cat ${IPL_PREFIX}-16k-evt0.bin u-boot.bin > u-boot-"$IPL"-evt0.bin
93 cat ${IPL_PREFIX}-16k-fused.bin u-boot.bin > u-boot-"$IPL"-evt1-fused.bin
94 if [ "$IPL" = "mmc" ]; then
95 cat ${IPL_PREFIX}-8k-fused.bin u-boot.bin > u-boot-"$IPL"-evt1-fused.bin
97 # To distinguish previous u-boot-onenand.bin, it uses the evt1 suffix
98 cp u-boot-"$IPL".bin u-boot-"$IPL"-evt1.bin
110 if [ "$IPL" != "mmc" -a -e "$PWD/u-boot-onenand.bin" ]; then
111 size=`ls -al u-boot-onenand.bin | awk -F' ' '{printf $5}'`
112 if [ "$size" -ge "262144" ]; then
113 echo "u-boot-onenand.bin execced the 256KiB 262144 -> $size"
118 if [ "$USER" = "kmpark" ]; then
120 cp -f u-boot.bin u-boot-onenand.bin /tftpboot
125 elif [ "$USER" = "dofmind" ]; then
126 tar cvf system_uboot_evt0.tar u-boot-onenand-evt0.bin
127 tar cvf system_uboot_evt1.tar u-boot-onenand-evt1.bin
128 tar cvf system_uboot_evt1-fused.tar u-boot-onenand-evt1-fused.bin
129 tar cvf system_uboot.tar u-boot-onenand.bin
130 mv -f system_uboot*.tar /home/release
131 elif [ "$USER" = "prom" ]; then
132 tar cvf system_uboot.tar u-boot.bin
133 tar cvf system_uboot_evt0.tar u-boot-onenand-evt0.bin
134 tar cvf system_uboot_evt1.tar u-boot-onenand-evt1.bin
135 tar cvf system_uboot_evt1-fused.tar u-boot-onenand-evt1-fused.bin
136 mv -f system_uboot* /home/share/Work/bin
137 elif [ "$USER" = "jaehoon" ]; then
138 tar cvf system_uboot_evt0.tar u-boot-onenand-evt0.bin
139 tar cvf system_uboot_evt1.tar u-boot-onenand-evt1.bin
140 tar cvf system_uboot_evt1-fused.tar u-boot-onenand-evt1-fused.bin
141 mv -f system_uboot* /home/jaehoon/shared/new/
142 elif [ "$USER" = "leedonghwa" ]; then
143 tar cvf system_uboot_evt0.tar u-boot-onenand-evt0.bin
144 tar cvf system_uboot_evt1.tar u-boot-onenand-evt1.bin
145 tar cvf system_uboot_evt1-fused.tar u-boot-onenand-evt1-fused.bin
146 mv -f system_uboot* /home/leedonghwa/Build-Binaries/
147 elif [ "$USER" = "cwchoi00" ]; then
148 tar cvf system_uboot_evt0.tar u-boot-onenand-evt0.bin
149 tar cvf system_uboot_evt1.tar u-boot-onenand-evt1.bin
150 tar cvf system_uboot_evt1-fused.tar u-boot-onenand-evt1-fused.bin
151 elif [ "$USER" = "donggeun" ]; then
152 tar cvf system_uboot_evt0.tar u-boot-onenand-evt0.bin
153 tar cvf system_uboot_evt1.tar u-boot-onenand-evt1.bin
154 tar cvf system_uboot_evt1-fused.tar u-boot-onenand-evt1-fused.bin
155 mv -f system_uboot*.tar /home/donggeun/workspace/images
156 elif [ "$USER" = "marek" ]; then
157 BOARD=`grep BOARD include/config.mk | awk -F'= ' '{printf $2}'`
160 if [ "$BOARD" = "universal_c110" ] ; then
161 tar cfv universal-uboot-system-${DATE}.tar u-boot-onenand-evt0.bin
162 tar cfv universal-uboot-system-${DATE}-evt1-fused.tar u-boot-onenand-evt1-fused.bin
163 tar cfv universal-uboot-system-${DATE}-evt1.tar u-boot-onenand-evt1.bin
164 cp universal-uboot-system-${DATE}.tar ../image/w1
165 cp universal-uboot-system-${DATE}-evt1-fused.tar ../image/w1
166 cp universal-uboot-system-${DATE}-evt1.tar ../image/w1
168 if [ "$BOARD" = "universal_c210" ] ; then
172 mv s-boot-onenand.bin u-boot-onenand.bin
173 tar cfv universal-uboot-system-${DATE}-c210-sboot.tar u-boot-onenand.bin
174 cp universal-uboot-system-${DATE}-c210-sboot.tar ../image/w1
175 tar cfv universal-uboot-system-${DATE}-c210-raw.tar u-boot.bin
176 cp universal-uboot-system-${DATE}-c210-raw.tar ../image/w1
178 elif [ "$USER" = "lukma" ]; then
179 tar cvf system_uboot_evt0.tar u-boot-onenand-evt0.bin
180 tar cvf system_uboot_evt1.tar u-boot-onenand-evt1.bin
181 tar cvf system_uboot_evt1-fused.tar u-boot-onenand-evt1-fused.bin
182 cp system_uboot_evt1-fused.tar ../image/w1/system_uboot_evt1-fused-g`git log --pretty=oneline -1 --abbrev-commit | cut -c 1-7`-`date +%Y%m%d`.tar