All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denys Dmytriyenko <denis@denix.org>
To: Randolph Sapp <rs@ti.com>
Cc: Peter Kjellerstedt <peter.kjellerstedt@axis.com>,
	Martin Jansa <martin.jansa@gmail.com>, "afd@ti.com" <afd@ti.com>,
	"detheridge@ti.com" <detheridge@ti.com>,
	"reatmon@ti.com" <reatmon@ti.com>,
	"alexandre.belloni@bootlin.com" <alexandre.belloni@bootlin.com>,
	"openembedded-core@lists.openembedded.org"
	<openembedded-core@lists.openembedded.org>
Subject: Re: [OE-core][PATCH] kernel-devicetree: allow specification of dtb directory
Date: Mon, 8 May 2023 14:32:25 -0400	[thread overview]
Message-ID: <20230508183225.GQ9226@denix.org> (raw)
In-Reply-To: <175D3DFC66A1C041.2502@lists.openembedded.org>

On Mon, May 08, 2023 at 02:18:57PM -0400, Denys Dmytriyenko wrote:
> On Mon, May 08, 2023 at 01:13:58PM -0500, Randolph Sapp wrote:
> > On 5/8/23 01:13, Peter Kjellerstedt wrote:
> > >That is most certainly a good alternative.
> > >
> > >//Peter
> > >
> > >*From:*Martin Jansa <martin.jansa@gmail.com>
> > >*Sent:* den 8 maj 2023 00:20
> > >*To:* Peter Kjellerstedt <peter.kjellerstedt@axis.com>
> > >*Cc:* rs@ti.com; afd@ti.com; detheridge@ti.com; reatmon@ti.com;
> > >denis@denix.org; alexandre.belloni@bootlin.com;
> > >openembedded-core@lists.openembedded.org
> > >*Subject:* Re: [OE-core][PATCH] kernel-devicetree: allow
> > >specification of dtb directory
> > >
> > >or
> > >
> > >if "${@'true' if oe.types.boolean(d.getVar('KERNEL_DTBVENDORED'))
> > >else 'false'} <mailto:$%7b@'true'%20if%20oe.types.boolean(d.getVar('KERNEL_DTBVENDORED'))%20else%20'false'%7d>";
> > >then
> > >
> > >to avoid test as well (like systemd recipes is using) and I did
> > >here as well in:
> > >
> > >https://git.openembedded.org/openembedded-core-contrib/commit/?h=jansa/master&id=e2a6da5202a6671113758f9746ddbd8141a75757 <https://git.openembedded.org/openembedded-core-contrib/commit/?h=jansa/master&id=e2a6da5202a6671113758f9746ddbd8141a75757>
> > >
> > >On Sun, May 7, 2023 at 10:49 PM Peter Kjellerstedt
> > ><peter.kjellerstedt@axis.com <mailto:peter.kjellerstedt@axis.com>>
> > >wrote:
> > >
> > >    [ Outlook does not support commenting inline for HTML mails, thus
> > >    I’m top posting…]
> > >
> > >    The problem is `==`, which is a bashism. POSIX shells (like dash)
> > >    only support `=`. When it comes to quoting, you typically want to
> > >    quote shell variables in tests in case they are empty. OTOH, static
> > >    strings without whitespace or other special characters do not need
> > >    quoting. So the correct way to write the if statements is:
> > >
> > >                    if [ "${KERNEL_DTBVENDORED}" = false ]; then
> > >
> > >    (In this case it is actually a bitbake variable being quoted, but
> > >    unless you can guarantee it is not empty, the same rule applies.)
> > >
> > >    //Peter

<snip>


> > Ah, my bad. I need to figure out a way to get shellcheck to run on
> > bash blocks in bb recipes. Would save everyone some time. I'll
> > submit a V2 with your modifications Martin!
> 
> No V2 - it already got merged into master. Moreover, due to this oversight, it 
> defaults to "vendored" DT install in some builds, where bash is not the system 
> shell...
> 
> We should merge Martin's fix from his contrib tree ASAP.

BTW, there are other nuisances with this change:

https://patchwork.yoctoproject.org/project/ti/patch/20230508181551.2404141-1-denis@denix.org/

Not sure how common the use of third level in KERNEL_DTBDEST dir structure is, 
maybe we should add a third level generic glob to OE-Core to be safe...

-- 
Denys


  parent reply	other threads:[~2023-05-08 18:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-05 16:36 [OE-core][PATCH] kernel-devicetree: allow specification of dtb directory rs
2023-05-06  9:09 ` Martin Jansa
2023-05-07 20:49   ` Peter Kjellerstedt
2023-05-07 22:19     ` Martin Jansa
2023-05-08  6:13       ` Peter Kjellerstedt
2023-05-08 18:13         ` [EXTERNAL] " Randolph Sapp
2023-05-08 18:18           ` Denys Dmytriyenko
     [not found]           ` <175D3DFC66A1C041.2502@lists.openembedded.org>
2023-05-08 18:32             ` Denys Dmytriyenko [this message]
2023-05-08 18:42               ` [EXTERNAL] " Randolph Sapp

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230508183225.GQ9226@denix.org \
    --to=denis@denix.org \
    --cc=afd@ti.com \
    --cc=alexandre.belloni@bootlin.com \
    --cc=detheridge@ti.com \
    --cc=martin.jansa@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=peter.kjellerstedt@axis.com \
    --cc=reatmon@ti.com \
    --cc=rs@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.