Re: [OE-core] [PATCH 7/7] kernel-yocto: don't apply config metadata patches twice
From: Bruce Ashfield <hidden>
Date: 2021-10-06 11:14:28
On Wed, Oct 6, 2021 at 5:46 AM Jose Quaresma [off-list ref] wrote:
Hi Bruce, Bruce Ashfield [off-list ref] escreveu no dia quarta, 6/10/2021 à(s) 01:12:quoted
From: Bruce Ashfield <redacted> Signed-off-by: Bruce Ashfield <redacted> --- meta/classes/kernel-yocto.bbclass | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass index 549dfd97a4..1d5a8cdf29 100644 --- a/meta/classes/kernel-yocto.bbclass +++ b/meta/classes/kernel-yocto.bbclass@@ -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)I think that will be useful to have a warning there when the patchdir was supplied
Sure, but no one has ever hit this before in the wild, so there are none known to be in existence, since if they did exist you'd get an error. I'll probably just drop the patch and carry it locally. Bruce
Josequoted
return patch_list -- 2.19.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#156667): https://lists.openembedded.org/g/openembedded-core/message/156667 Mute This Topic: https://lists.openembedded.org/mt/86108495/5052612 Group Owner: openembedded-core+owner@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [quaresma.jose@gmail.com] -=-=-=-=-=-=-=-=-=-=-=--- Best regards, José Quaresma
-- - Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II