diff options
author | Martin Roth <gaumless@gmail.com> | 2022-11-27 19:04:16 -0700 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-12-05 14:42:19 +0000 |
commit | 9fc96407e2279f0178faf27c3b0ae5b3f7341264 (patch) | |
tree | f4747321d1cb93c5126c4c56c21759e416bfad10 | |
parent | 5161b2ffa76a5cb06a6c646cc12bc575fcdfe306 (diff) |
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 <gaumless@gmail.com>
Change-Id: I20670ae875be67ac2edf877c53de4702c4fc7c7d
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70057
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Jakub Czapiga <jacz@semihalf.com>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |