From: Albert ARIBAUD <albert.u.boot@aribaud.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC] [PATCH 0/5] Refactor MAINTAINERS file
Date: Thu, 25 Jul 2013 12:11:29 +0200 [thread overview]
Message-ID: <20130725121129.3084e2bd@lilith> (raw)
In-Reply-To: <20130724043430.1B15D383178@gemini.denx.de>
Hi Wolfgang,
On Wed, 24 Jul 2013 06:34:30 +0200, Wolfgang Denk <wd@denx.de> wrote:
> Dear Albert,
>
> In message <1374611299-16836-1-git-send-email-albert.u.boot@aribaud.net> you wrote:
> > This patch series aims at refactoring MAINTAINERS into an easily
> > processable file.
>
> Thanks! Much appreciated.
>
> > There are not actually five changes as such; the first four patches
> > are step-by-step cleaning so that the last patch can be created
> > essentially by running an AWK script on MAINTAINERS.
>
> Hm, I wonder if we shouldadd (back) a column providing information
> about the SoC type? When searching for - for example - maintainers
> for all i.MX6 boards it's not really helpful to only have a huge list
> of "ARM" boards.
>
> OK, you can argument that we can extract this information using
> "MAKEALL -l", but then we could also omit the architecture column in
> the MAINTAINERS file.
>
> Alternatively, we could drop the MAINTAINERS file and just add the
> status and name/mail address columns to the boards.cfg file. I agree
> that this would become even more unreadabe, but then we'd have all
> information in a single place. [Merging MAINTAINERS into boards.cfg
> could be done automatically using your last file format as input.]
>
> What do you think?
Thanks for your coments. I'd thought about this too but I feared the
change would be too drastic. Happy to see you're considering it.
Merging is feasible. The major change to my current RFC would be that
instead of multiple lines for a board with multiple maintainers (which
build processes based on boards.cfg would have trouble dealing with), I
would keep a single line listing all maintainers' e-mail addresses,
probably separated with commas and no spaces, for consistency with the
options field and to keep script-based parsing easier. Empty options
fields would probably have to be replaced with something like '-',
which is already being used in boards.cfg, e.g. for Vendor, so that
Options and Maintainers fields are easily distinguished.
Of course, active boards boards should be put at the start of the file
and orphans at the end, so that scripts only meant for active boards
could detect when reaching the first orphan board and stop processing
boards.cfg as early as possible.
While we are on the sorting topic, the canonic sorting order for
boards.cfg is, as per its heading comments, "ARCH, CPU, SoC, Vendor,
Target" while the current display order has Target first, and Vendor and
SoC the other way around. We can take this occasion to fix and
homogenize the sorting and display orders. I would suggest adopting a
'progressive refinement' sort and display order:
Status, ARCH, CPU, SoC, Vendor, Board name, Target, Options, Maintainers
This has the benefit that, assuming the tabular column format is kept, a
simple sort command should be enough to keep the entries in order,
rather than the convoluted 'sort -bdf -k2,2 -k3,3 -k6,6 -k5,5 -k1,1'
currently needed.
Another benefit is that this display order groups together 'technical'
fields (ARCH, CPU, and SoC), 'commercial' fields (Vendor and Board
name), and 'U-Boot' fields (Target, Options and Maintainers). One could
argue that by my own logic Status should be in the last group; but
Status is an important sort key for scripts that only want to process
active boards as I described above, and I want to remain able to simply
'sort' boards.cfg, hence the trade-off.
Of course, these changes to the boards.cfg field order would have to
reflect on the scripts that use it. I can take care of uses within the
U-boot repo, but whatever is out there in the wild will have to cope by
itself.
> Best regards,
>
> Wolfgang Denk
Amicalement,
--
Albert.
next prev parent reply other threads:[~2013-07-25 10:11 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-23 20:28 [U-Boot] [RFC] [PATCH 0/5] Refactor MAINTAINERS file Albert ARIBAUD
2013-07-23 20:28 ` [U-Boot] [RFC] [PATCH 1/5] MAINTAINERS: move ARM entries into ARM section Albert ARIBAUD
2013-07-23 20:28 ` [U-Boot] [RFC] [PATCH 2/5] MAINTAINERS: move improperly placed e-mail addresses Albert ARIBAUD
2013-07-23 20:28 ` [U-Boot] [RFC] [PATCH 3/5] MAINTAINERS: remove misplaced comments Albert ARIBAUD
2013-07-23 20:29 ` [U-Boot] [RFC] [PATCH 4/5] MAINTAINERS: remove useless 'header' lines Albert ARIBAUD
2013-07-23 20:29 ` [U-Boot] [RFC] [PATCH 5/5] MAINTAINERS: refactor file for easier processing Albert ARIBAUD
2013-07-23 20:51 ` Otavio Salvador
2013-07-24 5:57 ` Albert ARIBAUD
2013-07-24 4:34 ` [U-Boot] [RFC] [PATCH 0/5] Refactor MAINTAINERS file Wolfgang Denk
2013-07-25 10:11 ` Albert ARIBAUD [this message]
2013-07-26 21:37 ` [U-Boot] [RFC V2 0/9] " Albert ARIBAUD
2013-07-26 21:37 ` [U-Boot] [RFC V2 1/9] MAINTAINERS: move ARM entries into ARM section Albert ARIBAUD
2013-07-26 21:37 ` [U-Boot] [RFC V2 2/9] MAINTAINERS: move improperly placed e-mail addresses Albert ARIBAUD
2013-07-26 21:37 ` [U-Boot] [RFC V2 3/9] MAINTAINERS: remove misplaced comments Albert ARIBAUD
2013-07-26 21:37 ` [U-Boot] [RFC V2 4/9] MAINTAINERS: remove useless 'header' lines Albert ARIBAUD
2013-07-26 21:37 ` [U-Boot] [RFC V2 5/9] MAINTAINERS: refactor file for easier processing Albert ARIBAUD
2013-07-26 21:37 ` [U-Boot] [RFC V2 6/9] tools: add reformat.py and (temporary merge.py) Albert ARIBAUD
2013-07-26 21:37 ` [U-Boot] [RFC V2 7/9] reformat MAINTAINERS and boards.cfg Albert ARIBAUD
2013-07-26 21:37 ` [U-Boot] [RFC V2 8/9] boards.cfg: merge MAINTAINERS and reformat Albert ARIBAUD
2013-07-26 21:37 ` [U-Boot] [RFC V2 9/9] Changes due to boards.cfg reformat Albert ARIBAUD
2013-08-03 14:24 ` [U-Boot] [RFC V2 0/9] Refactor MAINTAINERS file Albert ARIBAUD
2013-08-05 14:28 ` Tom Rini
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=20130725121129.3084e2bd@lilith \
--to=albert.u.boot@aribaud.net \
--cc=u-boot@lists.denx.de \
/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