summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5dd416b)
raw | patch | inline | side by side (parent: 5dd416b)
author | Koen Kooi <koen@dominion.thruhere.net> | |
Fri, 16 Sep 2011 14:04:15 +0000 (16:04 +0200) | ||
committer | Koen Kooi <koen@dominion.thruhere.net> | |
Fri, 16 Sep 2011 14:04:15 +0000 (16:04 +0200) |
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
recipes-kernel/linux/linux-3.0/patch.sh | [new file with mode: 0644] | patch | blob |
diff --git a/recipes-kernel/linux/linux-3.0/patch.sh b/recipes-kernel/linux/linux-3.0/patch.sh
--- /dev/null
@@ -0,0 +1,27 @@
+#!/bin/bash
+# (c) 2009 - 2011 Koen Kooi <koen@dominion.thruhere.net>
+# This script will take a set of directories with patches and make a git tree out of it
+# After all the patches are applied it will output a SRC_URI fragment you can copy/paste into a recipe
+
+TAG="v3.0.4"
+EXTRATAG="-3.0"
+
+git fetch mainline
+git am --abort
+git reset --hard ${TAG}
+rm export -rf
+
+previous=${TAG}
+PATCHSET="pm-wip/voltdm pm-wip/cpufreq bias beagle madc sakoman sgx ulcd omap4"
+
+# apply patches
+for patchset in ${PATCHSET} ; do
+ git am $patchset/* && git tag "${patchset}${EXTRATAG}" -f
+done
+
+# export patches and output SRC_URI for them
+for patchset in ${PATCHSET} ; do
+ mkdir export/$patchset -p
+ ( cd export/$patchset && git format-patch ${previous}..${patchset}${EXTRATAG} >& /dev/null && for i in *.patch ; do echo " file://${patchset}/$i \\" ; done )
+ previous=${patchset}${EXTRATAG}
+done