From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io1-f52.google.com (mail-io1-f52.google.com [209.85.166.52]) by mx.groups.io with SMTP id smtpd.web08.15968.1611082486596687232 for ; Tue, 19 Jan 2021 10:54:46 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=L2NWt8v+; spf=pass (domain: gmail.com, ip: 209.85.166.52, mailfrom: tomasz.dziendzielski@gmail.com) Received: by mail-io1-f52.google.com with SMTP id h11so1892331ioh.11 for ; Tue, 19 Jan 2021 10:54:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=awajYC8QbTZESG60ObznkU1YvDt2nJAX4kXFRjYgxL0=; b=L2NWt8v+OH9ljVW0KxNRLhcfz2EI1LFrEUY2v1L7oFkkeLgdI+6V9QDyRF6dEu86Fn 7cK78PhiA9Hw6d2pb90jbU/q5BrLAI6lYbXI5JhZDgHy+JeM+jHZCsGM5TsbVnkyXCYs XZsgNBA16xYFO+q9uPVcYDam3rITT3EOwAKxCYPgKKVKEs4cicNhAx477vhPLi3PNPqd iTlDS51wfOsd0xpo8YR1lH6DCMp+SYt1xDPmpzsAfp150q4a/iA2Q14GRxhyUaJh7HP+ kOKyg25DzxTaM7cl4tKl72GNL8Swoe//WZ7RTjL7wo+Ua77qarN/7ftbPD/cr3qllH9h BGfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=awajYC8QbTZESG60ObznkU1YvDt2nJAX4kXFRjYgxL0=; b=Tp3uYuQoy8l5FB51+cPZ1PK2qlamaH8i7UcFYM2DL2Efbp1Px2Py336BL3DC/qnrEN Lm+uLaLIOtqP1ShqydC8OFQj1uzau+gv0MiW/OTJojn0t7fnPwHc1EqJe19mQ4BxYZTG vyjtlpZCRHiR6DmbWhlDHWP/22DbW58xQlJlShj/X9dDM/sFGdZItUJwLismAjugWhK8 BfbJhXT/TGKSw7jeVzd/gmVXFGueS0CZqlzyS6FRymLyv+niKS5J2Eqpi2Sv4u98Yfse uSyN/BCzUdJTBqLNjdIRCplKP7jt/CHa+MiO79YInu9W2QVZyqG9sHKPzZJ8IqxuCnSX optw== X-Gm-Message-State: AOAM5303TzOlVz4bKH1V0zc/cLx+nEc3RYCWua+daUhb/XDQfBhf1pkO VMn2Zq6Vfb7sU/1TjxrZ4WYin1RHXQ78lATSUzU= X-Google-Smtp-Source: ABdhPJzgU4U92YqoiKC5BGaBo9gd4rmpoPsXSBeox1+5CdJniDjdNghW/diXlGh62edq5pKpNneRagiBFi9G8wRKNoc= X-Received: by 2002:a02:3b4e:: with SMTP id i14mr4738496jaf.36.1611082485813; Tue, 19 Jan 2021 10:54:45 -0800 (PST) MIME-Version: 1.0 References: <20210119155325.351554-1-tomasz.dziendzielski@gmail.com> <107314c0428cf791bc195dd27d3cfe11bb9a4c3e.camel@linuxfoundation.org> <75dd1f1859c454c2f3ddf14707292f5ab444a834.camel@linuxfoundation.org> In-Reply-To: <75dd1f1859c454c2f3ddf14707292f5ab444a834.camel@linuxfoundation.org> From: "Tomasz Dziendzielski" Date: Tue, 19 Jan 2021 19:57:15 +0100 Message-ID: Subject: Re: [OE-core] [PATCH] devtool: Fix source extraction for gcc shared source To: Richard Purdie Cc: openembedded-core Content-Type: multipart/alternative; boundary="0000000000004555b705b9455f27" --0000000000004555b705b9455f27 Content-Type: text/plain; charset="UTF-8" >Try checking if the "task" flag is set for "do_patch" Good idea, thanks! It's working correctly. I can see both 'noexec' and 'task' flags can be set separately, so to make it more general (and make it work for similar recipes without sources) I will check both 'noexec' and 'task' flags. I will submit another patchset with suggested change (see below) and with another condition check to not affect kernel build.: diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py index 8b80fb8bfa..6f4cbbe219 100644 --- a/scripts/lib/devtool/standard.py +++ b/scripts/lib/devtool/standard.py - if 'noexec' in (d.getVarFlags(task, False) or []): + if 'noexec' in (d.getVarFlags(task, False) or []) or 'task' not in (d.getVarFlags(task, False) or []): ... - if 'noexec' in (d.getVarFlags('do_patch', False) or []): + if not is_kernel_yocto and ('noexec' in (d.getVarFlags('do_patch', False) or []) or 'task' not in (d.getVarFlags('do_patch', False) or []): Best regards, Tomasz Dziendzielski --0000000000004555b705b9455f27 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
>Try checking if the "task" flag is set = for "do_patch"
Good idea, thanks! It's working corr= ectly. I can see both 'noexec' and 'task' flags can be set= separately, so to make it more general (and make it work for similar recip= es without sources) I will check both 'noexec' and 'task' f= lags.
I will submit another patchset with suggested change=C2= =A0 (see below) and with another condition check to not affect kernel build= .:

diff --git a/scripts/lib/devtool/standard.= py b/scripts/lib/devtool/standard.py
index 8b80fb8bfa..6f4cbbe219 100644=
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/stan= dard.py
=C2=A0
- =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0if 'noexec' in (d.getVarFlags(task, False) or []):
+ =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if 'n= oexec' in (d.getVarFlags(task, False) or []) or 'task' not in (= d.getVarFlags(task, False) or []):
...
- =C2=A0 =C2=A0 =C2=A0 =C2=A0i= f 'noexec' in (d.getVarFlags('do_patch', False) or []):
= + =C2=A0 =C2=A0 =C2=A0 =C2=A0if not is_kernel_yocto and ('noexec' i= n (d.getVarFlags('do_patch', False) or []) or 'task' not in= (d.getVarFlags('do_patch', False) or []):

Best r= egards,
Tomasz Dziendzielski
--0000000000004555b705b9455f27--