5 export CROSS_COMPILE
=..
/..
/cross
/bin
/arm-angstrom-linux-gnueabi-
6 make -f synthesize-gta-module-configs.mak
7 make ARCH
=arm silentoldconfig
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