From f330528786fb02f1771c76818ffc8f1793f5d2f7 Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Tue, 1 Oct 2013 13:55:27 -0400 Subject: Conditionalize overriding the security policy. Make OVERRIDE_SECURITY_POLICY a build option. Signed-off-by: Peter Jones --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 581be0ac..311a2c9b 100644 --- a/Makefile +++ b/Makefile @@ -21,6 +21,10 @@ CFLAGS = -ggdb -O0 -fno-stack-protector -fno-strict-aliasing -fpic \ "-DDEFAULT_LOADER=L\"$(DEFAULT_LOADER)\"" \ "-DDEFAULT_LOADER_CHAR=\"$(DEFAULT_LOADER)\"" \ $(EFI_INCLUDES) + +ifneq ($(origin OVERRIDE_SECURITY_POLICY), undefined) + CFLAGS += -DOVERRIDE_SECURITY_POLICY +endif ifeq ($(ARCH),x86_64) CFLAGS += -DEFI_FUNCTION_WRAPPER -DGNU_EFI_USE_MS_ABI endif -- cgit v1.2.3