* [Buildroot] [PATCH] Makefile: don't run "menuconfig" automatically
@ 2017-07-01 8:24 Arnout Vandecappelle
2017-07-01 8:26 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Arnout Vandecappelle @ 2017-07-01 8:24 UTC (permalink / raw)
To: buildroot
Since forever, we run 'menuconfig' automatically on an unconfigured
tree. However, this does not help users that much:
- If they read the documentation, they should already know to run
make menuconfig first.
- If they haven't read the documentation, dropping them in menuconfig
isn't very helpful.
- It's a likely that the user didn't intend to be in an unconfigured
tree (e.g. wrong O= specified), so starting menuconfig (and polluting
this wrong O= directory) is not very helpful.
- It's possible that the user really doesn't want menuconfig, but
instead needs xconfig, or some defconfig, or ...
So, instead of trying to guess what the user needs, print an error and
let the user decide what to do next.
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
Makefile | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index 387ae248c2..d5f5596795 100644
--- a/Makefile
+++ b/Makefile
@@ -816,13 +816,12 @@ check-dependencies:
else # ifeq ($(BR2_HAVE_DOT_CONFIG),y)
-all: menuconfig
-
# Some subdirectories are also package names. To avoid that "make linux"
# on an unconfigured tree produces "Nothing to be done", add an explicit
# rule for it.
+# Also for 'all' we error out and ask the user to configure first.
.PHONY: linux toolchain
-linux toolchain:
+linux toolchain all:
$(error Please configure Buildroot first (e.g. "make menuconfig"))
@exit 1
--
2.13.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] Makefile: don't run "menuconfig" automatically
2017-07-01 8:24 [Buildroot] [PATCH] Makefile: don't run "menuconfig" automatically Arnout Vandecappelle
@ 2017-07-01 8:26 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2017-07-01 8:26 UTC (permalink / raw)
To: buildroot
Hello,
On Sat, 1 Jul 2017 10:24:46 +0200, Arnout Vandecappelle
(Essensium/Mind) wrote:
> Since forever, we run 'menuconfig' automatically on an unconfigured
> tree. However, this does not help users that much:
> - If they read the documentation, they should already know to run
> make menuconfig first.
> - If they haven't read the documentation, dropping them in menuconfig
> isn't very helpful.
> - It's a likely that the user didn't intend to be in an unconfigured
> tree (e.g. wrong O= specified), so starting menuconfig (and polluting
> this wrong O= directory) is not very helpful.
> - It's possible that the user really doesn't want menuconfig, but
> instead needs xconfig, or some defconfig, or ...
>
> So, instead of trying to guess what the user needs, print an error and
> let the user decide what to do next.
>
> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
> ---
> Makefile | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-07-01 8:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-01 8:24 [Buildroot] [PATCH] Makefile: don't run "menuconfig" automatically Arnout Vandecappelle
2017-07-01 8:26 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox