summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2011-09-16 16:04:15 +0200
committerKoen Kooi <koen@dominion.thruhere.net>2011-09-16 16:04:15 +0200
commit58c3fab37d0de2709fa1c270a02e24dadb4e9096 (patch)
treeb683ae0dbc30a92b2a95ebb6758769926016d0eb /recipes-kernel/linux
parent5dd416b7fc34472f5a620947e146f22991051e45 (diff)
downloadmeta-ti-58c3fab37d0de2709fa1c270a02e24dadb4e9096.tar.gz
linux-3.0: add patch helper script
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'recipes-kernel/linux')
-rw-r--r--recipes-kernel/linux/linux-3.0/patch.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-3.0/patch.sh b/recipes-kernel/linux/linux-3.0/patch.sh
new file mode 100644
index 00000000..f3d69da0
--- /dev/null
+++ b/recipes-kernel/linux/linux-3.0/patch.sh
@@ -0,0 +1,27 @@
1#!/bin/bash
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
4# After all the patches are applied it will output a SRC_URI fragment you can copy/paste into a recipe
5
6TAG="v3.0.4"
7EXTRATAG="-3.0"
8
9git fetch mainline
10git am --abort
11git reset --hard ${TAG}
12rm export -rf
13
14previous=${TAG}
15PATCHSET="pm-wip/voltdm pm-wip/cpufreq bias beagle madc sakoman sgx ulcd omap4"
16
17# apply patches
18for patchset in ${PATCHSET} ; do
19 git am $patchset/* && git tag "${patchset}${EXTRATAG}" -f
20done
21
22# export patches and output SRC_URI for them
23for patchset in ${PATCHSET} ; do
24 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 )
26 previous=${patchset}${EXTRATAG}
27done