Author: imp
Date: Sun Oct 22 03:52:12 2017
New Revision: 324843
URL: https://svnweb.freebsd.org/changeset/base/324843

Log:
  Stopgap fix to the mistmatch between LOADER_GELI_SUPPORT and
  LOADER_NO_GELI_SUPPORT. To disable geli support in the loader, define
  LOADER_GELI_SUPPORT=no. Proper warnings for for old build options to
  follow.
  
  Sponsored by: Netflix

Modified:
  head/sys/boot/Makefile.amd64
  head/sys/boot/Makefile.i386
  head/sys/boot/i386/gptboot/Makefile
  head/sys/boot/i386/gptzfsboot/Makefile
  head/sys/boot/i386/libi386/Makefile

Modified: head/sys/boot/Makefile.amd64
==============================================================================
--- head/sys/boot/Makefile.amd64        Sun Oct 22 03:52:08 2017        
(r324842)
+++ head/sys/boot/Makefile.amd64        Sun Oct 22 03:52:12 2017        
(r324843)
@@ -5,7 +5,7 @@ SUBDIR+=                libsa32
 SUBDIR+=               zfs
 SUBDIR+=               userboot
 
-.if !defined(LOADER_NO_GELI_SUPPORT)
+.if ${LOADER_GELI_SUPPORT:Uyes} == "yes"
 SUBDIR+=               geli
 .endif
 

Modified: head/sys/boot/Makefile.i386
==============================================================================
--- head/sys/boot/Makefile.i386 Sun Oct 22 03:52:08 2017        (r324842)
+++ head/sys/boot/Makefile.i386 Sun Oct 22 03:52:12 2017        (r324843)
@@ -4,6 +4,6 @@ SUBDIR+=                efi
 SUBDIR+=               libsa32
 SUBDIR+=               zfs
 
-.if !defined(LOADER_NO_GELI_SUPPORT)
+.if ${LOADER_GELI_SUPPORT:Uyes} == "yes"
 SUBDIR+=               geli
 .endif

Modified: head/sys/boot/i386/gptboot/Makefile
==============================================================================
--- head/sys/boot/i386/gptboot/Makefile Sun Oct 22 03:52:08 2017        
(r324842)
+++ head/sys/boot/i386/gptboot/Makefile Sun Oct 22 03:52:12 2017        
(r324843)
@@ -41,7 +41,7 @@ CFLAGS+=-DBOOTPROG=\"gptboot\" \
 
 CFLAGS.gcc+=   --param max-inline-insns-single=100
 
-.if !defined(LOADER_NO_GELI_SUPPORT)
+.if ${LOADER_GELI_SUPPORT:Uyes} == "yes"
 CFLAGS+=       -DLOADER_GELI_SUPPORT
 CFLAGS+=       -I${.CURDIR}/../../geli
 CFLAGS+=       -I${.CURDIR}/../../..

Modified: head/sys/boot/i386/gptzfsboot/Makefile
==============================================================================
--- head/sys/boot/i386/gptzfsboot/Makefile      Sun Oct 22 03:52:08 2017        
(r324842)
+++ head/sys/boot/i386/gptzfsboot/Makefile      Sun Oct 22 03:52:12 2017        
(r324843)
@@ -48,7 +48,7 @@ CFLAGS+=      -Wno-tentative-definition-incomplete-type
 # Do not unroll skein loops, reduce code size
 CFLAGS+=       -DSKEIN_LOOP=111
 
-.if !defined(LOADER_NO_GELI_SUPPORT)
+.if ${LOADER_GELI_SUPPORT:Uyes} == "yes"
 CFLAGS+=       -DLOADER_GELI_SUPPORT
 CFLAGS+=       -I${.CURDIR}/../../geli
 LIBGELIBOOT=   ${.OBJDIR}/../../geli/libgeliboot.a

Modified: head/sys/boot/i386/libi386/Makefile
==============================================================================
--- head/sys/boot/i386/libi386/Makefile Sun Oct 22 03:52:08 2017        
(r324842)
+++ head/sys/boot/i386/libi386/Makefile Sun Oct 22 03:52:12 2017        
(r324843)
@@ -25,7 +25,7 @@ CFLAGS+=      -DCOMSPEED=${BOOT_COMCONSOLE_SPEED}
 CFLAGS+= -DDISK_DEBUG
 .endif
 
-.if !defined(LOADER_NO_GELI_SUPPORT)
+.if ${LOADER_GELI_SUPPORT:Uyes} == "yes"
 # Decrypt encrypted drives
 CFLAGS+= -DLOADER_GELI_SUPPORT
 CFLAGS+= -I${.CURDIR}/../../geli
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to