From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [RFC] external toolchain scanner
Date: Mon, 16 Jan 2017 08:48:12 +1100 [thread overview]
Message-ID: <20170116084812.5e7bafeb@free-electrons.com> (raw)
In-Reply-To: <fd01b978-5aea-2794-047c-968c7697b1bb@mind.be>
Hello,
On Fri, 13 Jan 2017 00:43:16 +0100, Arnout Vandecappelle wrote:
> * make menuconfig
> * make
> -> error "Incorrect toolchain settings detected. An updated config file has
> been generated in $(CONFIG_DIR)/config.toolchain. Copy it to
> $(CONFIG_DIR)/.config and run 'make menuconfig' to verify."
> * Copy
> * make menuconfig
> * make
>
> Or perhaps even better, add an option
> BR2_TOOLCHAIN_EXTERNAL_CUSTOM_AUTODISCOVER. This option would disable all the
> other options except BR2_TOOLCHAIN_EXTRA_EXTERNAL_LIBS, and also disable all the
> other menus. This option would run the autodiscovery and overwrite the .config
> file (removing the CUSTOM_AUTODISCOVER option again). So it would force the
> following scenario:
>
> * make menuconfig
> * make
> * make menuconfig
> * make
>
> But it's probably best to implement the first scenario and see where we go from
> there.
To be honest, I find all of this very complicated, and even more
confusing than what we have today. Using custom external toolchain is
already an "advanced" feature, which users just getting started with
Buildroot are unlikely to use. To me, using custom external toolchain
is a bit of an advanced functionality, and people who need that will
surely be able to understand the information they need to fill in
"menuconfig" to make Buildroot "accept" the toolchain.
> >> I would rather that we work toward this goal, which would be a
> >> termendous improvement on what we currently have.
> > I agree that emitting 5 errors at once, rather than emitting 1 error a time for
> > 5 iterations, is an improvement on a disagreeable situation. I bet you can guess
> > what I'll say next, though: when you look at the bigger picture, we shouldn't be
> > in this situation to begin with. :-) When we already know the answers, we should
> > tell the user, not the other way around.
>
> But perhaps that would be an easier first step. Instead of just reporting one
> single error, report all errors and the correct config options so the user can
> edit the .config file and add them.
Yes. *This* would be useful.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
next prev parent reply other threads:[~2017-01-15 21:48 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-23 1:32 [Buildroot] [RFC] external toolchain scanner Hollis Blanchard
2016-11-23 6:23 ` Baruch Siach
2016-12-07 18:14 ` Hollis Blanchard
2016-12-08 21:02 ` Yann E. MORIN
2016-12-19 20:07 ` Hollis Blanchard
2017-01-09 23:07 ` Hollis Blanchard
2017-01-12 17:32 ` Yann E. MORIN
2017-01-12 22:12 ` Hollis Blanchard
2017-01-12 23:43 ` Arnout Vandecappelle
2017-01-15 21:48 ` Thomas Petazzoni [this message]
2017-01-16 14:54 ` Peter Korsgaard
2017-01-16 18:36 ` Hollis Blanchard
-- strict thread matches above, loose matches on Subject: below --
2016-11-23 6:34 Blanchard, Hollis
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=20170116084812.5e7bafeb@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