diff options
Diffstat (limited to 'recipes-kernel/linux/linux-3.0/patch.sh')
-rwxr-xr-x | recipes-kernel/linux/linux-3.0/patch.sh | 12 |
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 |
5 | set -e | ||
5 | 6 | ||
6 | TAG="v3.0.4" | 7 | TAG="v3.0.4" |
7 | EXTRATAG="-3.0" | 8 | EXTRATAG="" |
8 | PATCHPATH=$(dirname $0) | 9 | PATCHPATH=$(dirname $0) |
9 | 10 | ||
10 | git am --abort | 11 | git am --abort || echo "Do you need to make sure the patches apply cleanly first?" |
11 | git reset --hard ${TAG} | 12 | git reset --hard ${TAG} |
12 | rm export -rf | 13 | rm 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 |
18 | for patchset in ${PATCHSET} ; do | 19 | for 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 | ||
20 | done | 22 | done |
21 | 23 | ||
22 | # export patches and output SRC_URI for them | 24 | # export patches and output SRC_URI for them |
23 | for patchset in ${PATCHSET} ; do | 25 | for 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} |
27 | done | 29 | done |