summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-3.0
diff options
context:
space:
mode:
authorJason Kridner <jdk@ti.com>2011-09-16 11:02:10 -0400
committerJason Kridner <jdk@ti.com>2011-09-16 18:06:12 -0400
commitbd27a3f50465d42fcb2366472307bddf461fd92d (patch)
treed4a0b40aed597c5a0934e31e229d12b01572119d /recipes-kernel/linux/linux-3.0
parent14350e83ac1565014650f83eaa522ce9a852cf87 (diff)
downloadmeta-ti-bd27a3f50465d42fcb2366472307bddf461fd92d.tar.gz
linux-3.0: patch.sh: adjusted tags and error handling
Set to stop on errors to avoid continuing to mess up the tree. Adjusted tags to include the major tag first, ie. v3.0.4-sgx, rather than sgx-3.0. Signed-off-by: Jason Kridner <jdk@ti.com> Cc: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'recipes-kernel/linux/linux-3.0')
-rwxr-xr-xrecipes-kernel/linux/linux-3.0/patch.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/recipes-kernel/linux/linux-3.0/patch.sh b/recipes-kernel/linux/linux-3.0/patch.sh
index d4065fec..3e5324e7 100755
--- a/recipes-kernel/linux/linux-3.0/patch.sh
+++ b/recipes-kernel/linux/linux-3.0/patch.sh
@@ -2,12 +2,13 @@
2# (c) 2009 - 2011 Koen Kooi <koen@dominion.thruhere.net> 2# (c) 2009 - 2011 Koen Kooi <koen@dominion.thruhere.net>
3# This script will take a set of directories with patches and make a git tree out of it 3# This script will take a set of directories with patches and make a git tree out of it
4# After all the patches are applied it will output a SRC_URI fragment you can copy/paste into a recipe 4# After all the patches are applied it will output a SRC_URI fragment you can copy/paste into a recipe
5set -e
5 6
6TAG="v3.0.4" 7TAG="v3.0.4"
7EXTRATAG="-3.0" 8EXTRATAG=""
8PATCHPATH=$(dirname $0) 9PATCHPATH=$(dirname $0)
9 10
10git am --abort 11git am --abort || echo "Do you need to make sure the patches apply cleanly first?"
11git reset --hard ${TAG} 12git reset --hard ${TAG}
12rm export -rf 13rm export -rf
13 14
@@ -16,12 +17,13 @@ PATCHSET="pm-wip/voltdm pm-wip/cpufreq bias beagle madc sakoman sgx ulcd omap4"
16 17
17# apply patches 18# apply patches
18for patchset in ${PATCHSET} ; do 19for patchset in ${PATCHSET} ; do
19 git am $PATCHPATH/$patchset/* && git tag "${patchset}${EXTRATAG}" -f 20 git am $PATCHPATH/$patchset/*
21 git tag "${TAG}-${patchset}${EXTRATAG}" -f
20done 22done
21 23
22# export patches and output SRC_URI for them 24# export patches and output SRC_URI for them
23for patchset in ${PATCHSET} ; do 25for patchset in ${PATCHSET} ; do
24 mkdir export/$patchset -p 26 mkdir export/$patchset -p
25 ( cd export/$patchset && git format-patch ${previous}..${patchset}${EXTRATAG} >& /dev/null && for i in *.patch ; do echo " file://${patchset}/$i \\" ; done ) 27 ( cd export/$patchset && git format-patch ${previous}..${TAG}-${patchset}${EXTRATAG} >& /dev/null && for i in *.patch ; do echo " file://${patchset}/$i \\" ; done )
26 previous=${patchset}${EXTRATAG} 28 previous=${TAG}-${patchset}${EXTRATAG}
27done 29done