]> code.ossystems Code Review - openembedded-core.git/commitdiff
linux-yocto: fix SRC_URI patching with unified repos
authorBruce Ashfield <bruce.ashfield@gmail.com>
Mon, 11 Mar 2019 04:20:51 +0000 (00:20 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 12 Mar 2019 18:56:37 +0000 (11:56 -0700)
As reported by Paul Barker, my attempt to allow the patching
of kernel meta data broke other repository configurations, since
the meta data patch routing was matching too broadly and the
same repo would end up being patched twice.

Using his suggested fix, we are up and running with both types
of repos again.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel-yocto.bbclass

index bd7a9575831983a855009dd1154c1ae1da03495c..ed9bcfa57c1625e5a6c7b41276f60f8bdbea460b 100644 (file)
@@ -15,7 +15,7 @@ def find_patches(d,subdir):
         patchdir = ''
         if "patchdir" in parm:
             patchdir = parm["patchdir"]
-        if patchdir:
+        if subdir:
             if subdir == patchdir:
                 patch_list.append(local)
         else: