Skip to contentSkip to conversation

linux-yocto: fix SRC_URI patching with unified repos

PATCH New [email protected] 1 participant 1 message Mar 11, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-yocto: fix SRC_URI patching with unified repos

From: Bruce Ashfield <[email protected]>

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.

---
 meta/classes/kernel-yocto.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/kernel-yocto.bbclass +1 -1
index bd7a957583..ed9bcfa57c 100644
@@ -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:
Signature · 1 line
2.19.1