Index: stand/efi/boot1/Makefile =================================================================== --- stand/efi/boot1/Makefile +++ stand/efi/boot1/Makefile @@ -53,6 +53,8 @@ CFLAGS+= -DEFI_DEBUG .endif +.include "${BOOTSRC}/veriexec.mk" + # Always add MI sources and REGULAR efi loader bits .PATH: ${EFISRC}/loader/arch/${MACHINE} .PATH: ${EFISRC}/loader Index: stand/efi/fdt/Makefile =================================================================== --- stand/efi/fdt/Makefile +++ stand/efi/fdt/Makefile @@ -9,6 +9,8 @@ SRCS= efi_fdt.c +.include "${BOOTSRC}/veriexec.mk" + # EFI library headers CFLAGS+= -I${EFISRC}/include CFLAGS+= -I${EFISRC}/include/${MACHINE} Index: stand/efi/libefi/Makefile =================================================================== --- stand/efi/libefi/Makefile +++ stand/efi/libefi/Makefile @@ -67,4 +67,6 @@ CFLAGS+= -DTERM_EMU +.include "${BOOTSRC}/veriexec.mk" + .include Index: stand/fdt/Makefile =================================================================== --- stand/fdt/Makefile +++ stand/fdt/Makefile @@ -17,4 +17,6 @@ CFLAGS+= -Wformat -Wall +.include "${BOOTSRC}/veriexec.mk" + .include Index: stand/ficl.mk =================================================================== --- stand/ficl.mk +++ stand/ficl.mk @@ -17,6 +17,4 @@ CFLAGS+= -I${FICLSRC} -I${FICLSRC}/${FICL_CPUARCH} -I${LDRSRC} CFLAGS+= -DBF_DICTSIZE=30000 -.if ${MK_LOADER_VERIEXEC} != "no" -CFLAGS+= -DLOADER_VERIEXEC -I${SRCTOP}/lib/libsecureboot/h -.endif +.include "${BOOTSRC}/veriexec.mk" Index: stand/i386/libfirewire/Makefile =================================================================== --- stand/i386/libfirewire/Makefile +++ stand/i386/libfirewire/Makefile @@ -8,6 +8,8 @@ SRCS+= firewire.c fwohci.c dconsole.c SRCS+= dcons.c fwcrom.c +.include "${BOOTSRC}/veriexec.mk" + CFLAGS+= -D_BOOT CFLAGS+= -I${LDRSRC} Index: stand/i386/libi386/Makefile =================================================================== --- stand/i386/libi386/Makefile +++ stand/i386/libi386/Makefile @@ -17,6 +17,8 @@ .PATH: ${SYSDIR}/teken SRCS+= teken.c +.include "${BOOTSRC}/veriexec.mk" + BOOT_COMCONSOLE_PORT?= 0x3f8 CFLAGS+= -DCOMPORT=${BOOT_COMCONSOLE_PORT} Index: stand/liblua/Makefile =================================================================== --- stand/liblua/Makefile +++ stand/liblua/Makefile @@ -40,8 +40,7 @@ .if ${MACHINE_CPUARCH} == "amd64" && ${DO32:U0} == 0 CFLAGS+= -fPIC .endif -.if ${MK_LOADER_VERIEXEC} == "yes" -CFLAGS+= -I${SRCTOP}/lib/libsecureboot/h -DLOADER_VERIEXEC -.endif + +.include "${BOOTSRC}/veriexec.mk" .include Index: stand/loader.mk =================================================================== --- stand/loader.mk +++ stand/loader.mk @@ -90,16 +90,7 @@ .error Unknown interpreter ${LOADER_INTERP} .endif -.if ${MK_LOADER_VERIEXEC} != "no" -CFLAGS+= -DLOADER_VERIEXEC -I${SRCTOP}/lib/libsecureboot/h -.if ${MK_LOADER_VERIEXEC_VECTX} != "no" -CFLAGS+= -DLOADER_VERIEXEC_VECTX -.endif -.endif - -.if ${MK_LOADER_VERIEXEC_PASS_MANIFEST} != "no" -CFLAGS+= -DLOADER_VERIEXEC_PASS_MANIFEST -I${SRCTOP}/lib/libsecureboot/h -.endif +.include "${BOOTSRC}/veriexec.mk" .if defined(BOOT_PROMPT_123) CFLAGS+= -DBOOT_PROMPT_123 Index: stand/veriexec.mk =================================================================== --- /dev/null +++ stand/veriexec.mk @@ -0,0 +1,10 @@ +.if ${MK_LOADER_VERIEXEC} != "no" +CFLAGS+= -DLOADER_VERIEXEC -I${SRCTOP}/lib/libsecureboot/h +.if ${MK_LOADER_VERIEXEC_VECTX} != "no" +CFLAGS+= -DLOADER_VERIEXEC_VECTX +.endif +.endif + +.if ${MK_LOADER_VERIEXEC_PASS_MANIFEST} != "no" +CFLAGS+= -DLOADER_VERIEXEC_PASS_MANIFEST -I${SRCTOP}/lib/libsecureboot/h +.endif