gta01-uart-fifo-trigger-sooner.patch
[linux-2.6/openmoko-kernel/knife-kernel.git] / build
blob9fda9c7e3c66bbbc8edb84c745c6a8ebc8cfa1ca
1 #!/bin/sh
3 set -x
5 export CROSS_COMPILE=../../cross/bin/arm-angstrom-linux-gnueabi-
6 make -f synthesize-gta-module-configs.mak
7 make ARCH=arm silentoldconfig
9 VERSION=
10 if [ -d .git ] ; then
11 HEAD=`git show --pretty=oneline | head -n1 | cut -d' ' -f1 | cut -b1-16`
12 BRANCH=`git branch | grep ^\* | cut -d' ' -f2`
13 VERSION=-$BRANCH\_$HEAD
16 if make -j5 ARCH=arm EXTRAVERSION=$VERSION; then
17 ${CROSS_COMPILE}objcopy -O binary -R .note -R .comment -S arch/arm/boot/compressed/vmlinux linux.bin
18 mkimage -A arm -O linux -T kernel -C none -a 30008000 -e 30008000 -n "Openmoko Freerunner Kernel" -d linux.bin uImage.bin
20 # we can see if it is an "moredrivers" build by looking for USB Eth gadget
21 # if it is then keep a stamped copy of last build
23 if [ ! -z "`grep CONFIG_USB_ETH=y .config`" ] ; then
24 rm -f uImage-moredrivers*
25 cp uImage.bin uImage-moredrivers$VERSION.bin
27 exit 0
28 else
29 exit 1