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
6 TAG="v3.0.4"
7 EXTRATAG="-3.0"
8 PATCHPATH=$(dirname $0)
10 git am --abort
11 git reset --hard ${TAG}
12 rm export -rf
14 previous=${TAG}
15 PATCHSET="pm-wip/voltdm pm-wip/cpufreq bias beagle madc sakoman sgx ulcd omap4"
17 # apply patches
18 for patchset in ${PATCHSET} ; do
19 git am $PATCHPATH/$patchset/* && git tag "${patchset}${EXTRATAG}" -f
20 done
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