1 From b79f79448a70b5718db2428939e00150315b5eda Mon Sep 17 00:00:00 2001
2 From: Andy Green <andy@openmoko.com>
3 Date: Wed, 6 Aug 2008 20:46:42 +0100
4 Subject: [PATCH] add-buildkeep-hash-named-copy.patch
6 Keep a copy of last "moredrivers" config kernel built stamped with
7 branch and git head at build time.
9 Signed-off-by: Andy Green <andy@openmoko.com>
12 1 files changed, 9 insertions(+), 1 deletions(-)
14 diff --git a/build b/build
15 index 9c2d561..63bb0fc 100755
20 if make -j5 ARCH=arm EXTRAVERSION=$VERSION; then
21 ${CROSS_COMPILE}objcopy -O binary -R .note -R .comment -S arch/arm/boot/compressed/vmlinux linux.bin
22 - mkimage -A arm -O linux -T kernel -C none -a 30008000 -e 30008000 -n "Openmoko Kernel Image Neo1973(GTA02)" -d linux.bin uImage.bin
23 + mkimage -A arm -O linux -T kernel -C none -a 30008000 -e 30008000 -n "Openmoko Freerunner Kernel" -d linux.bin uImage.bin
25 + # we can see if it is an "moredrivers" build by looking for USB Eth gadget
26 + # if it is then keep a stamped copy of last build
28 + if [ ! -z "`grep CONFIG_USB_ETH=y .config`" ] ; then
29 + rm -f uImage-moredrivers*
30 + cp uImage.bin uImage-moredrivers$VERSION.bin