summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/kernel-yocto.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes-recipe/kernel-yocto.bbclass')
-rw-r--r--meta/classes-recipe/kernel-yocto.bbclass30
1 files changed, 25 insertions, 5 deletions
diff --git a/meta/classes-recipe/kernel-yocto.bbclass b/meta/classes-recipe/kernel-yocto.bbclass
index cb9cd26b09..9a86616dad 100644
--- a/meta/classes-recipe/kernel-yocto.bbclass
+++ b/meta/classes-recipe/kernel-yocto.bbclass
@@ -176,12 +176,32 @@ do_kernel_metadata() {
176 # kernel source tree, where they'll be used later. 176 # kernel source tree, where they'll be used later.
177 check_git_config 177 check_git_config
178 patches="${@" ".join(find_patches(d,'kernel-meta'))}" 178 patches="${@" ".join(find_patches(d,'kernel-meta'))}"
179 for p in $patches; do 179 if [ -n "$patches" ]; then
180 ( 180 (
181 cd ${WORKDIR}/kernel-meta 181 cd ${WORKDIR}/kernel-meta
182 git am -s $p 182
183 ) 183 # take the SRC_URI patches, and create a series file
184 done 184 # this is required to support some better processing
185 # of issues with the patches
186 rm -f series
187 for p in $patches; do
188 cp $p .
189 echo "$(basename $p)" >> series
190 done
191
192 # process the series with kgit-s2q, which is what is
193 # handling the rest of the kernel. This allows us
194 # more flexibility for handling failures or advanced
195 # mergeing functinoality
196 message=$(kgit-s2q --gen -v --patches ${WORKDIR}/kernel-meta 2>&1)
197 if [ $? -ne 0 ]; then
198 # setup to try the patch again
199 kgit-s2q --prev
200 bberror "Problem applying patches to: ${WORKDIR}/kernel-meta"
201 bbfatal_log "\n($message)"
202 fi
203 )
204 fi
185 fi 205 fi
186 206
187 sccs_from_src_uri="${@" ".join(find_sccs(d))}" 207 sccs_from_src_uri="${@" ".join(find_sccs(d))}"