diff options
author | Andy Green <andy@openmoko.com> | 2008-11-19 17:10:46 +0000 |
---|---|---|
committer | Andy Green <agreen@pads.home.warmcat.com> | 2008-11-19 17:10:46 +0000 |
commit | 29a443a7173d2c8d17b655ece87e55efdf3f465e (patch) | |
tree | f5c144c5474c4db683b4e93913b23ea1697999bb /build | |
parent | 594a4cf10ea8516d0117f96f483c7c5dc181024e (diff) |
add-buildkeep-hash-named-copy.patch
Keep a copy of last "moredrivers" config kernel built stamped with
branch and git head at build time.
Signed-off-by: Andy Green <andy@openmoko.com>
Diffstat (limited to 'build')
-rwxr-xr-x | build | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -13,7 +13,15 @@ fi if make -j5 ARCH=arm CONFIG_DEBUG_SECTION_MISMATCH=y EXTRAVERSION=$VERSION; then ${CROSS_COMPILE}objcopy -O binary -R .note -R .comment -S arch/arm/boot/compressed/vmlinux linux.bin - mkimage -A arm -O linux -T kernel -C none -a 30008000 -e 30008000 -n "Openmoko Kernel Image Neo1973(GTA02)" -d linux.bin uImage.bin + mkimage -A arm -O linux -T kernel -C none -a 30008000 -e 30008000 -n "Openmoko Freerunner Kernel" -d linux.bin uImage.bin + + # we can see if it is an "moredrivers" build by looking for USB Eth gadget + # if it is then keep a stamped copy of last build + + if [ ! -z "`grep CONFIG_USB_ETH=y .config`" ] ; then + rm -f uImage-moredrivers* + cp uImage.bin uImage-moredrivers$VERSION.bin + fi exit 0 else exit 1 |