summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2013-10-01 14:03:16 -0400
committerPeter Jones <pjones@redhat.com>2013-10-01 14:03:16 -0400
commitbb2fe4cfb3fc050e4ef0dbb6af0c53a4f75200c9 (patch)
tree048d338958abf211b5e4148f77b8630f9cadea4e /Makefile
parent417077f8de33214b2942f5a6d8ff6af217b4f5dd (diff)
downloadefi-boot-shim-bb2fe4cfb3fc050e4ef0dbb6af0c53a4f75200c9.tar.gz
efi-boot-shim-bb2fe4cfb3fc050e4ef0dbb6af0c53a4f75200c9.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