mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-04-20 11:42:57 +00:00
The patch helper script is included in the metadata Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
28 lines
844 B
Bash
28 lines
844 B
Bash
#!/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="mainline/master"
|
|
EXTRATAG="-3.1"
|
|
|
|
git fetch mainline
|
|
git am --abort
|
|
git reset --hard ${TAG}
|
|
rm export -rf
|
|
|
|
previous=${TAG}
|
|
PATCHSET="beagle madc sgx"
|
|
|
|
# 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
|