]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel-yocto: don't apply config metadata patches twice
authorBruce Ashfield <bruce.ashfield@gmail.com>
Wed, 6 Oct 2021 00:12:46 +0000 (20:12 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 7 Oct 2021 14:06:01 +0000 (15:06 +0100)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel-yocto.bbclass

index 549dfd97a4e7b25741765cd60c2566fcd113dd60..1d5a8cdf29a9c98a92031fa0ee0e5691983352e4 100644 (file)
@@ -36,7 +36,10 @@ def find_patches(d,subdir):
             if subdir == patchdir:
                 patch_list.append(local)
         else:
-            patch_list.append(local)
+            # skip the patch if a patchdir was supplied, it won't be handled
+            # properly
+            if not patchdir:
+                patch_list.append(local)
 
     return patch_list