Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 1/5] support/scripts/gen-bootlin-toolchains: add new script to support Bootlin toolchains
Date: Thu, 13 Aug 2020 23:41:19 +0200	[thread overview]
Message-ID: <20200813234119.45c18d04@windsurf.home> (raw)
In-Reply-To: <20200813212112.GK13263@scaer>

On Thu, 13 Aug 2020 23:21:12 +0200
"Yann E. MORIN" <yann.morin.1998@free.fr> wrote:

> > We create a single external toolchain package, with a Kconfig "choice"
> > as a sub-option to select the toolchain variant to be used. The script
> > contains a Python dict that provides the mapping between the
> > toolchains provided by toolchains.bootlin.com, and the architecture
> > options/variants they are applicable to.  
> 
> I think it would be much better if that metadata were to be available on
> and served by toolchains.bootlin.com, possibly as a json blob (which
> maps very well to, and looks very much like, the python dict). Maybe one
> small json blurb for each toolchain.

What metadata exactly should be provided ? The only metadata that is
not provided by toolchains.bootlin.com today is which toolchain is
applicable to which Buildroot architecture variants.

But that is really Buildroot's business. I don't see why
toolchains.bootlin.com should maintain that sort of metadata. What if
then OpenEmbedded, PTXdist and OpenWrt also want to have their "custom
metadata" stored on toolchains.bootlin.com ?

> That way, when you add or remove toolchains, you are also responsible
> for updating that metadata on your side, and then the script is more
> generic.
> 
> Otherwise, that script will get out of sync when / if you change the
> configuration of a toolchain (e.g. if the x86-i686 toolchain bumps to at
> least i486 instead of i386).

Yes, I agree the script needs to be maintained, but what you're asking
is to push the "Buildroot integration complexity" to a project that is
in essence not related to Buildroot (beyond the fact that the
toolchains are generated by Buildroot of course).

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

  reply	other threads:[~2020-08-13 21:41 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-09 19:38 [Buildroot] [PATCH v2 0/5] Bootlin toolchains integration into Buildroot Thomas Petazzoni
2020-08-09 19:38 ` [Buildroot] [PATCH v2 1/5] support/scripts/gen-bootlin-toolchains: add new script to support Bootlin toolchains Thomas Petazzoni
2020-08-13 11:41   ` Titouan Christophe
2020-08-13 21:21   ` Yann E. MORIN
2020-08-13 21:41     ` Thomas Petazzoni [this message]
2020-08-13 22:38       ` Romain Naour
2020-08-13 22:06   ` Yann E. MORIN
2020-08-13 22:52     ` Romain Naour
2020-08-13 23:11     ` Titouan Christophe
2020-08-09 19:38 ` [Buildroot] [PATCH v2 2/5] support/testing/tests/toolchain/test_external: support non-ELF toolchains Thomas Petazzoni
2020-08-13 21:30   ` Yann E. MORIN
2020-08-09 19:38 ` [Buildroot] [PATCH v2 3/5] toolchain/toolchain-external/toolchain-external-bootlin: add auto-generated files Thomas Petazzoni
2020-08-09 19:38 ` [Buildroot] [PATCH v2 4/5] toolchain/toolchain-external/toolchain-external-bootlin: finalize package addition Thomas Petazzoni
2020-08-09 19:38 ` [Buildroot] [PATCH v2 5/5] support/testing/test/toolchain/test_external_bootlin: new test cases Thomas Petazzoni
2020-08-13 22:43   ` Romain Naour

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=20200813234119.45c18d04@windsurf.home \
    --to=thomas.petazzoni@bootlin.com \
    --cc=buildroot@busybox.net \
    /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