[S5PC100] modifiled prefix S5PC -> S5P
[kernel/u-boot.git] / build.sh
1 #!/bin/sh -x
2
3 # Set default cross compiler
4 CROSS_COMPILER=/opt/toolchains/arm-2007q3/bin/arm-none-linux-gnueabi-
5
6 # Check this system has ccache
7 check_ccache()
8 {
9         type ccache
10         if [ "$?" -eq "0" ]; then
11                 CCACHE=ccache
12         fi
13 }
14
15 build_uboot()
16 {
17 #make ARCH=arm CROSS_COMPILE="$CCACHE $CROSS_COMPILER" $JOBS $* -j 4
18         make ARCH=arm CROSS_COMPILE="$CCACHE $CROSS_COMPILER" $JOBS $*
19 }
20
21 check_ccache
22
23 build_uboot $*