From 58c3fab37d0de2709fa1c270a02e24dadb4e9096 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Fri, 16 Sep 2011 16:04:15 +0200 Subject: linux-3.0: add patch helper script Signed-off-by: Koen Kooi --- recipes-kernel/linux/linux-3.0/patch.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 recipes-kernel/linux/linux-3.0/patch.sh (limited to 'recipes-kernel') 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 @@ +#!/bin/bash +# (c) 2009 - 2011 Koen Kooi +# 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 -- cgit v1.2.3-54-g00ecf