summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMartin Roth <martinroth@google.com>2017-01-26 10:51:43 -0700
committerMartin Roth <martinroth@google.com>2017-01-27 19:43:24 +0100
commit20aa043b449dc68379f4b64c257a066e17fda4b8 (patch)
tree66c1faed4d32e214840494e0d07a4696c9ec9562 /Makefile
parent017b56558f36540e9e1d9736c9716cbedcc6a729 (diff)
Makefile: Just error out if no .config exists
Currently coreboot runs the 'config' command if no .config file exists. This isn't what anyone wants, and is particularly frustrating for tools that automate the build, where the build just hangs waiting for input. Instead, just show an error message and then exit the build. Change-Id: If9e0c2c26f8273814518589a2f94c5b00fc4cefe Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/18245 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 2c87feb7a7..29730302b0 100644
--- a/Makefile
+++ b/Makefile
@@ -123,8 +123,11 @@ endif
ifeq ($(NOCOMPILE),1)
include $(TOPLEVEL)/Makefile.inc
include $(TOPLEVEL)/payloads/Makefile.inc
-real-all: config
-
+real-all:
+ @echo "Error: Expected config file ($(DOTCONFIG)) not present." >&2
+ @echo "Please specify a config file or run 'make menuconfig' to" >&2
+ @echo "generate a new config file." >&2
+ @exit 1
else
include $(DOTCONFIG)