summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2013-10-01 13:55:27 -0400
committerPeter Jones <pjones@redhat.com>2013-10-01 14:03:16 -0400
commitf330528786fb02f1771c76818ffc8f1793f5d2f7 (patch)
tree048d338958abf211b5e4148f77b8630f9cadea4e /Makefile
parent4537217422a4e1bf145e135d89284cf7887ad826 (diff)
downloadefi-boot-shim-f330528786fb02f1771c76818ffc8f1793f5d2f7.tar.gz
efi-boot-shim-f330528786fb02f1771c76818ffc8f1793f5d2f7.zip
Conditionalize overriding the security policy.
Make OVERRIDE_SECURITY_POLICY a build option. Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
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