clean-move-defconfigs-stable.patch
[linux-2.6/openmoko-kernel/knife-kernel.git] / build-mw
blob666c968a3390f29f90d9a6cfc21b8ce4e575f770
1 #!/bin/sh
3 oedir=/u/moko/build/tmp
4 export CROSS_COMPILE=${oedir}/cross/bin/arm-angstrom-linux-gnueabi-
6 make ARCH=arm silentoldconfig
8 if [ -d .git ] ; then
9 HEAD=`git show --pretty=oneline | head -n1 | cut -d' ' -f1 | cut -b1-8`
10 BRANCH=`git branch | grep ^\* | cut -d' ' -f2`
11 export HOSTNAME_OVERRIDE=mw-g${HEAD}_${BRANCH}
14 if make -j3 ARCH=arm; then
15 ${CROSS_COMPILE}objcopy -O binary -R .note -R .comment -S arch/arm/boot/compressed/vmlinux linux.bin
16 ${oedir}/staging/i686-linux/usr/bin/mkimage -A arm -O linux -T kernel -C none -a 30008000 -e 30008000 -n "Openmoko Freerunner Kernel" -d linux.bin uImage.bin
17 exit 0
18 else
19 exit 1