From: "Kavinaya S" <kavinaya@qti.qualcomm.com>
To: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH v1 1/1] fitimage: Add support for custom compatible string via optional parameter
Date: Mon, 29 Sep 2025 09:02:09 -0700 [thread overview]
Message-ID: <6753.1759161729562174284@lists.openembedded.org> (raw)
In-Reply-To: <CANNYZj9njks8b4yG6O_a24KxCjCEWTYFsfyZCUkcvSchd-6C2Q@mail.gmail.com>
On Mon, Sep 29, 2025 at 08:26 PM, Alexander Kanavin wrote:
>
> COMPATIBLE is really not an appropriate name. It should be much more
> specific, e.g. DTB_CUSTOM_COMPATIBLE, or something even more detailed.
>
Hi Alex, Sure. I will update COMPATIBLE to DTB_CUSTOM_COMPATIBLE
> >
> > - dtbo_loadaddress=None, add_compatible=False):
> > + dtbo_loadaddress=None, add_compatible=False, custom_compatible=False):
>
> custom_compatible is not a boolean parameter, it's a string. If it
> isn't supplied, set the default to None.
>
Sure
> >
> > if add_compatible:
> > - compatible = get_compatible_from_dtb(dtb_path)
> > + if custom_compatible:
> > + # Accept either a string (space-separated) or an iterable of strings
> > + if isinstance(custom_compatible, (list, tuple)):
> > + compatible = list(custom_compatible)
> > + else:
> > + compatible = str(custom_compatible).split()
>
> I don't understand. d.getVar() returns a string. At which point
> custom_compatible turns into a list or a tuple?
>
I will update this logic as well.
> That's why I had asked you to also make tests for this feature.
>
I will add tests as well.
Thanks
Alex
prev parent reply other threads:[~2025-09-29 16:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-29 14:47 [PATCH v2 0/1] Add support for custom compatible string via optional parameter Kavinaya S
2025-09-29 14:47 ` [PATCH v1 1/1] fitimage: " Kavinaya S
2025-09-29 14:56 ` [OE-core] " Alexander Kanavin
2025-09-29 16:02 ` Kavinaya S [this message]
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=6753.1759161729562174284@lists.openembedded.org \
--to=kavinaya@qti.qualcomm.com \
--cc=openembedded-core@lists.openembedded.org \
/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.