From 4438ffbe80061ae72717a8817b6bf0d663274afa Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Wed, 30 Aug 2023 00:59:25 +0200 Subject: Support custom EfiGuard driver filenames by specifing `-D EFIGUARD_DRIVER_FILENAME="something.efi"`. * useful for testing multiple EfiGuard builds Signed-off-by: Toni Uhlig --- EfiGuardPkg.dsc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'EfiGuardPkg.dsc') diff --git a/EfiGuardPkg.dsc b/EfiGuardPkg.dsc index ce7b6d0..d2bf50f 100644 --- a/EfiGuardPkg.dsc +++ b/EfiGuardPkg.dsc @@ -83,6 +83,9 @@ !if $(EAC_COMPAT_MODE) == 1 *_*_*_CC_FLAGS = -D EAC_COMPAT_MODE=1 !endif +!ifdef $(EFIGUARD_DRIVER_FILENAME) + *_*_*_CC_FLAGS = -D EFIGUARD_DRIVER_FILENAME=\"$(EFIGUARD_DRIVER_FILENAME)\" +!endif # Source files are UTF-8 without BOM. MSVC will convert other encodings to this without asking, so this is not really a choice MSFT:*_*_*_CC_FLAGS = /utf-8 -- cgit v1.2.3