[ar71xx] remove duplicated includes
[openwrt.git] / target / linux / s3c24xx / patches-2.6.24 / 1255-add-build-git-head-info.patch.patch
1 From 0c67caf29d655f9ce1c53f8e1433c59d86e04193 Mon Sep 17 00:00:00 2001
2 From: Andy Green <andy@openmoko.com>
3 Date: Wed, 6 Aug 2008 20:27:23 +0100
4 Subject: [PATCH] add-build-git-head-info.patch
5
6 This patch adds the branch and truncated head has to the version of the
7 kernel
8
9 # cat /proc/version
10 Linux version 2.6.26-andy-2.6.26:2b3bf342baac52b9-mokodev (agreen@pads.home.warmcat.com) (gcc version 4.1.2) #878 PREEMPT Sun Jul 27 14:45:25 BST 2008
11
12 Note this versioning is visible down /lib/modules
13
14 Signed-off-by: Andy Green <andy@openmoko.com>
15 ---
16 Makefile | 2 +-
17 build | 10 +++++++++-
18 2 files changed, 10 insertions(+), 2 deletions(-)
19
20 diff --git a/Makefile b/Makefile
21 index 189d8ef..e6f7941 100644
22 --- a/Makefile
23 +++ b/Makefile
24 @@ -1,7 +1,7 @@
25 VERSION = 2
26 PATCHLEVEL = 6
27 SUBLEVEL = 24
28 -EXTRAVERSION =
29 +EXTRAVERSION +=
30 NAME = Arr Matey! A Hairy Bilge Rat!
31
32 # *DOCUMENTATION*
33 diff --git a/build b/build
34 index 12e06bf..9c2d561 100755
35 --- a/build
36 +++ b/build
37 @@ -5,7 +5,15 @@ set -x
38 export CROSS_COMPILE=../../cross/bin/arm-angstrom-linux-gnueabi-
39 make -f synthesize-gta-module-configs.mak
40 make ARCH=arm silentoldconfig
41 -if make -j5 ARCH=arm; then
42 +
43 +VERSION=
44 +if [ -d .git ] ; then
45 + HEAD=`git show --pretty=oneline | head -n1 | cut -d' ' -f1 | cut -b1-16`
46 + BRANCH=`git branch | grep ^\* | cut -d' ' -f2`
47 + VERSION=-$BRANCH:$HEAD
48 +fi
49 +
50 +if make -j5 ARCH=arm EXTRAVERSION=$VERSION; then
51 ${CROSS_COMPILE}objcopy -O binary -R .note -R .comment -S arch/arm/boot/compressed/vmlinux linux.bin
52 mkimage -A arm -O linux -T kernel -C none -a 30008000 -e 30008000 -n "Openmoko Kernel Image Neo1973(GTA02)" -d linux.bin uImage.bin
53 exit 0
54 --
55 1.5.6.5
56
This page took 0.05956 seconds and 5 git commands to generate.