diff options
author | merge <null@invalid> | 2008-12-05 09:59:34 +0000 |
---|---|---|
committer | Andy Green <agreen@pads.home.warmcat.com> | 2008-12-05 09:59:34 +0000 |
commit | 361fff778b7c4d2c78f28833415335148d86a1aa (patch) | |
tree | e616c940a691b9ff548b1aaeb747eae8a1342509 /build | |
parent | 5adc83c203167f77dd9b975ee275e3014287d6c7 (diff) |
MERGE-via-pending-tracking-hist-MERGE-via-stable-tracking-build-fix-path-to-toolchain-on-1228470136
pending-tracking-hist top was MERGE-via-stable-tracking-build-fix-path-to-toolchain-on-1228470136 / 21b67ab8e79998b0a534263282dab1dda0f11b00 ... parent commitmessage:
From: merge <null@invalid>
MERGE-via-stable-tracking-hist-build-fix-path-to-toolchain-on
stable-tracking-hist top was build-fix-path-to-toolchain-on / ca14ba894df9b28822066c578dde48d7dbe931de ... parent commitmessage:
From: Andy Green <andy@openmoko.com>
build-fix-path-to-toolchain-one-at-last.patch
Signed-off-by: Andy Green <andy@openmoko.com>
Diffstat (limited to 'build')
-rwxr-xr-x | build | 27 |
1 files changed, 26 insertions, 1 deletions
@@ -1,10 +1,20 @@ #!/bin/sh +# +# Kernel building helper script (C)2008 Openmoko, Inc +# Andy Green <andy@openmoko.org> +# +# Licensed under GPLv3 or later +# # set -x -export CROSS_COMPILE=../../cross/bin/arm-angstrom-linux-gnueabi- +export CROSS_COMPILE=/usr/local/openmoko/arm/bin/arm-angstrom-linux-gnueabi- make ARCH=arm silentoldconfig +# +# figure out what we are building +# + PRODUCT= if [ ! -z "`grep CONFIG_MACH_NEO1973_GTA01=y .config`" ] ; then @@ -32,6 +42,11 @@ if [ -z "$PRODUCT" ] ; then exit 1 fi +# +# get the branch and head hash for the version we are building to +# allow source tracability +# + VERSION= if [ -d .git ] ; then HEAD=`git show --pretty=oneline | head -n1 | cut -d' ' -f1 | cut -b1-16` @@ -42,7 +57,17 @@ fi echo $MKIMAGECMD +# +# actually make it +# + if make -j5 ARCH=arm CONFIG_DEBUG_SECTION_MISMATCH=y EXTRAVERSION=$VERSION; then + + # + # if the build is happy, postprocess it by strip and with U-Boot header wrapper + # you can get mkimage from U-Boot or Qi build + # + ${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 $START -e $START -n "OM $PRODUCT $BRANCH""_$HEAD" -d linux.bin uImage-$PRODUCT.bin |