summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8283d56f..1698186d 100644
--- a/Makefile
+++ b/Makefile
@@ -69,13 +69,21 @@ ifneq ($(origin FALLBACK_VERBOSE_WAIT), undefined)
CFLAGS += -DFALLBACK_VERBOSE_WAIT=$(FALLBACK_VERBOSE_WAIT)
endif
-all: confcheck $(TARGETS)
+all: confcheck certcheck $(TARGETS)
confcheck:
ifneq ($(origin EFI_PATH),undefined)
$(error EFI_PATH is no longer supported, you must build using the supplied copy of gnu-efi)
endif
+certcheck:
+ifneq ($(origin VENDOR_CERT_FILE), undefined)
+ @if grep -q "BEGIN" $(VENDOR_CERT_FILE); then \
+ echo "$(VENDOR_CERT_FILE) is PEM-format, convert to DER!"; \
+ exit 1; \
+ fi
+endif
+
compile_commands.json : Makefile Make.rules Make.defaults
make clean
bear -- make COMPILER=clang test all