From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] auto-detecting toolchain metadata?
Date: Tue, 22 Nov 2016 09:29:19 +0100 [thread overview]
Message-ID: <20161122092919.502273aa@free-electrons.com> (raw)
In-Reply-To: <6e24245a-9c73-ea34-e899-f19f16346d0e@mentor.com>
Hello,
On Mon, 21 Nov 2016 17:04:57 -0800, Hollis Blanchard wrote:
> > with that output to be used as a base defconfig, then that would be
> > tremendously useful, indeed.
> My use case is slightly different; I already have a defconfig; I just
> want this script to replace the toolchain-related bits of it. Would
> editing defconfig "in place" (e.g. create .defconfig.new, copy it over
> the original) be acceptable?
How are you going to filter out all the toolchain-related options from
the original defconfig? It's not like all of them are prefixed by
"BR2_TOOLCHAIN" for example. So I hardly see how you can achieve what
you want in a reliable way.
> > And probably not very dificult to do either...
> Here's one complexity: once we know the version, which GCC_AT_LEAST_X_Y
> should be emitted? (Probably the same question for the other "AT_LEAST"
> variables too.)
>
> We could make a new list that matches toolchain/toolchain-common.in, but
> that will undoubtedly lead to mismatches in the future...
>
> We could just auto generate every major/minor version from 4.0 up to
> <toolchain version>, but then how many minors for each major? 10? That
> would yield 4.0 -> 4.10, 5.0 -> 5.10, 6.0 -> 6.10, ...
For gcc versions >= 5, we don't have an option for each minor version.
So it's actually pretty easy:
if major < 5:
option = BR2_TOOLCHAIN_GCC_AT_LEAST_<major>_<minor>
else
option = BR2_TOOLCHAIN_GCC_AT_LEAST_<major>
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
next prev parent reply other threads:[~2016-11-22 8:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-01 18:39 [Buildroot] auto-detecting toolchain metadata? Hollis Blanchard
2016-11-01 18:46 ` Yann E. MORIN
2016-11-01 20:27 ` Thomas Petazzoni
2016-11-22 1:04 ` Hollis Blanchard
2016-11-22 8:29 ` Thomas Petazzoni [this message]
2016-11-22 15:44 ` Hollis Blanchard
2016-11-22 15:49 ` Thomas Petazzoni
2016-11-22 16:12 ` Hollis Blanchard
2016-11-22 16:21 ` Thomas Petazzoni
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=20161122092919.502273aa@free-electrons.com \
--to=thomas.petazzoni@free-electrons.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