From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: alex.kanavin@gmail.com, openembedded-core@lists.openembedded.org
Cc: Alexander Kanavin <alex@linutronix.de>
Subject: Re: [OE-core] [PATCH v3 3/3] bitbake-config-build: add a plugin for config fragments
Date: Mon, 09 Dec 2024 17:00:55 +0000 [thread overview]
Message-ID: <c799588bada27abdf2b412115868c5b84c24a0e2.camel@linuxfoundation.org> (raw)
In-Reply-To: <20241118162643.1423409-3-alex.kanavin@gmail.com>
On Mon, 2024-11-18 at 17:26 +0100, Alexander Kanavin via
lists.openembedded.org wrote:
> From: Alexander Kanavin <alex@linutronix.de>
>
> This allows fine-tuning local configurations with pre-frabricated
> configuration snippets in a structured, controlled way. It's also
> an important building block for bitbake-setup.
>
> There are three (and a half) operations (list/enable/disable/disable
> all), and here's the 'list' output:
>
> alex@Zen2:/srv/storage/alex/yocto/build-64$ bitbake-config-build list-fragments
> NOTE: Starting bitbake server...
> Available fragments in selftest layer located in /srv/work/alex/poky/meta-selftest:
>
> selftest/test-fragment (disabled) This is a configuration fragment intended for testing in oe-selftest context
> selftest/more-fragments-here/test-another-fragment (disabled) This is a second configuration fragment intended for testing in oe-selftest context
>
> The tool requires that each fragment contains a one-line summary, and one or more
> lines of description, as BB_CONF_FRAGMENT_SUMMARY[layerid/fragmentname] style metadata.
The other area I've been wondering about is this output. I think we
need to take a quick step back and look at it from a usability
perspective and make sure we're showing the information in the optimal
way.
I'm far from a UI expert, in fact I've been told I shouldn't comment on
such things however I do have some thoughts.
Firstly, I think the "(disabled)" is the wrong way to show that
information. It would be more compact and perhaps more usable to show
the elements sorted into two sections along the lines of:
"""
Enabled fragments:
selftest/test-fragment - This is a configuration fragment intended for testing in oe-selftest context
Unused fragments:
selftest/more-fragments-here/test-another-fragment - This is a second configuration fragment intended for testing in oe-selftest context
"""
Secondly when listing the fragments, the current approach does lend
itself to cut and past but also doesn't group neatly. For example you
could do something like:
selftest/
test-fragment - This is a configuration fragment intended for testing in oe-selftest context
more-fragments-here/test-another-fragment - This is a second configuration fragment intended for testing in oe-selftest context
I'm torn on that but it may be easier for people to read. We should
also think about how terminal line wrapping will effect the output and
try to ensure it remains readable.
As with the previous email, I'm open to other thoughts on this.
Cheers,
Richard
next prev parent reply other threads:[~2024-12-09 17:01 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-18 16:26 [PATCH v3 1/3] patchtest: use HEAD commit as base for the selftest and not master Alexander Kanavin
2024-11-18 16:26 ` [PATCH v3 2/3] bitbake.conf: add an addfragments directive for oe-core and dependent layers Alexander Kanavin
2024-11-18 16:26 ` [PATCH v3 3/3] bitbake-config-build: add a plugin for config fragments Alexander Kanavin
2024-11-18 16:32 ` Patchtest results for " patchtest
2024-12-09 16:33 ` [OE-core] " Richard Purdie
2024-12-10 12:22 ` Alexander Kanavin
2024-12-09 17:00 ` Richard Purdie [this message]
2024-12-10 13:05 ` Alexander Kanavin
2024-12-10 15:27 ` Richard Purdie
2024-12-11 11:24 ` Alexander Kanavin
2024-12-16 16:58 ` Richard Purdie
2024-12-20 17:39 ` Joshua Watt
2024-12-25 15:29 ` Alexander Kanavin
2024-12-25 15:33 ` Joshua Watt
2024-12-27 18:12 ` Joshua Watt
2024-12-27 18:44 ` Alexander Kanavin
2024-12-27 19:47 ` Joshua Watt
2024-11-18 16:33 ` [OE-core] [PATCH v3 1/3] patchtest: use HEAD commit as base for the selftest and not master Trevor Gamblin
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=c799588bada27abdf2b412115868c5b84c24a0e2.camel@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=alex.kanavin@gmail.com \
--cc=alex@linutronix.de \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox