From 9fc96407e2279f0178faf27c3b0ae5b3f7341264 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Sun, 27 Nov 2022 19:04:16 -0700 Subject: [PATCH] Makefile: Add printall as a NOCOMPILE target Previously, running "make printall" when there was no .config available, the system would give an error that printall wasn't a valid target. This is because it was only in an invalid if clause. This change adds it to the other branch of the if clause so it will print out a notice of what the issue is. Signed-off-by: Martin Roth Change-Id: I20670ae875be67ac2edf877c53de4702c4fc7c7d Reviewed-on: https://review.coreboot.org/c/coreboot/+/70057 Tested-by: build bot (Jenkins) Reviewed-by: Jakub Czapiga Reviewed-by: Angel Pons --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 58cd85b7d3..e81799276b 100644 --- a/Makefile +++ b/Makefile @@ -148,13 +148,14 @@ include $(TOPLEVEL)/payloads/Makefile.inc include $(TOPLEVEL)/util/testing/Makefile.inc -include $(TOPLEVEL)/site-local/Makefile.inc include $(TOPLEVEL)/tests/Makefile.inc -real-all: +printall real-all: @echo "Error: Trying to build, but NOCOMPILE is set." >&2 @echo " Please file a bug with the following information:" @echo "- MAKECMDGOALS: $(MAKECMDGOALS)" >&2 @echo "- HAVE_DOTCONFIG: $(HAVE_DOTCONFIG)" >&2 @echo "- HAVE_KCONFIG_MAKEFILE_REAL: $(HAVE_KCONFIG_MAKEFILE_REAL)" >&2 @exit 1 + else ifneq ($(UNIT_TEST),1)