瀏覽代碼

Makefile: don't run "menuconfig" automatically

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>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Arnout Vandecappelle 8 年之前
父節點
當前提交
c3493069f2
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      Makefile

+ 2 - 3
Makefile

@@ -811,13 +811,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