diff options
author | Koen Kooi <koen@dominion.thruhere.net> | 2011-09-16 16:04:15 +0200 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2011-09-16 16:04:15 +0200 |
commit | 58c3fab37d0de2709fa1c270a02e24dadb4e9096 (patch) | |
tree | b683ae0dbc30a92b2a95ebb6758769926016d0eb /recipes-kernel | |
parent | 5dd416b7fc34472f5a620947e146f22991051e45 (diff) | |
download | meta-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')
-rw-r--r-- | recipes-kernel/linux/linux-3.0/patch.sh | 27 |
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 | |||
6 | TAG="v3.0.4" | ||
7 | EXTRATAG="-3.0" | ||
8 | |||
9 | git fetch mainline | ||
10 | git am --abort | ||
11 | git reset --hard ${TAG} | ||
12 | rm export -rf | ||
13 | |||
14 | previous=${TAG} | ||
15 | PATCHSET="pm-wip/voltdm pm-wip/cpufreq bias beagle madc sakoman sgx ulcd omap4" | ||
16 | |||
17 | # apply patches | ||
18 | for patchset in ${PATCHSET} ; do | ||
19 | git am $patchset/* && git tag "${patchset}${EXTRATAG}" -f | ||
20 | done | ||
21 | |||
22 | # export patches and output SRC_URI for them | ||
23 | for 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} | ||
27 | done | ||