aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorAndy Green <andy@openmoko.com>2008-11-19 17:11:15 +0000
committerAndy Green <andy@openmoko.com>2008-11-19 17:11:15 +0000
commite5889dbde9d009145dd76ff7abf8f24c81bd5f64 (patch)
tree142e4ed9d624cdf254721cc203ce7336b2dfbdf0 /build
parent53f86232db551ce11d653041866363731d06a3d8 (diff)
add-build-script-name-based-on-64xx-or-24xx-config.patch
Signed-off-by: Andy Green <andy@openmoko.com>
Diffstat (limited to 'build')
-rwxr-xr-xbuild16
1 files changed, 14 insertions, 2 deletions
diff --git a/build b/build
index d0155ec9750..694913d2c8c 100755
--- a/build
+++ b/build
@@ -1,6 +1,6 @@
#!/bin/sh
-set -x
+# set -x
export CROSS_COMPILE=../../cross/bin/arm-angstrom-linux-gnueabi-
make ARCH=arm silentoldconfig
@@ -11,9 +11,21 @@ if [ -d .git ] ; then
VERSION=-$BRANCH\_$HEAD
fi
+if [ ! -z "`grep CONFIG_ARCH_S3C64XX=y .config`" ] ; then
+ START=50008000
+ PRODUCT=GTA03
+fi
+
+if [ ! -z "`grep CONFIG_ARCH_S3C2410=y .config`" ] ; then
+ START=50008000
+ PRODUCT=FR
+fi
+
+echo $MKIMAGECMD
+
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 Freerunner Kernel" -d linux.bin uImage.bin
+ mkimage -A arm -O linux -T kernel -C none -a $START -e $START -n "OM $PRODUCT $BRANCH""_$HEAD" -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