aboutsummaryrefslogtreecommitdiff
path: root/stand/defs.mk
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2017-12-16 21:33:21 +0000
committerWarner Losh <imp@FreeBSD.org>2017-12-16 21:33:21 +0000
commit4927bbce9d278e0d4097fd785c6585b7136b80c9 (patch)
tree0240afc41e9b21412b5a89649059bbff72a833ac /stand/defs.mk
parentf3324c472297193e98486c14115becd7d3c24de0 (diff)
downloadsrc-4927bbce9d278e0d4097fd785c6585b7136b80c9.tar.gz
src-4927bbce9d278e0d4097fd785c6585b7136b80c9.zip
Move loader-only defines to loader.mk from defs.mk
Produces the same .o's, verified with md5. Sponsored by: Netflix
Notes
Notes: svn path=/head/; revision=326914
Diffstat (limited to 'stand/defs.mk')
-rw-r--r--stand/defs.mk51
1 files changed, 2 insertions, 49 deletions
diff --git a/stand/defs.mk b/stand/defs.mk
index c7976e28e5a7..9b79e668469d 100644
--- a/stand/defs.mk
+++ b/stand/defs.mk
@@ -50,52 +50,6 @@ CFLAGS+= -I${BOOTOBJ}/libsa
CFLAGS+= -I${SASRC} -D_STANDALONE
CFLAGS+= -I${SYSDIR}
-# Filesystem support
-.if ${LOADER_CD9660_SUPPORT:Uno} == "yes"
-CFLAGS+= -DLOADER_CD9660_SUPPORT
-.endif
-.if ${LOADER_EXT2FS_SUPPORT:Uno} == "yes"
-CFLAGS+= -DLOADER_EXT2FS_SUPPORT
-.endif
-.if ${LOADER_MSDOS_SUPPORT:Uno} == "yes"
-CFLAGS+= -DLOADER_MSDOS_SUPPORT
-.endif
-.if ${LOADER_NANDFS_SUPPORT:U${MK_NAND}} == "yes"
-CFLAGS+= -DLOADER_NANDFS_SUPPORT
-.endif
-.if ${LOADER_UFS_SUPPORT:Uyes} == "yes"
-CFLAGS+= -DLOADER_UFS_SUPPORT
-.endif
-
-# Compression
-.if ${LOADER_GZIP_SUPPORT:Uno} == "yes"
-CFLAGS+= -DLOADER_GZIP_SUPPORT
-.endif
-.if ${LOADER_BZIP2_SUPPORT:Uno} == "yes"
-CFLAGS+= -DLOADER_BZIP2_SUPPORT
-.endif
-
-# Network related things
-.if ${LOADER_NET_SUPPORT:Uno} == "yes"
-CFLAGS+= -DLOADER_NET_SUPPORT
-.endif
-.if ${LOADER_NFS_SUPPORT:Uno} == "yes"
-CFLAGS+= -DLOADER_NFS_SUPPORT
-.endif
-.if ${LOADER_TFTP_SUPPORT:Uno} == "yes"
-CFLAGS+= -DLOADER_TFTP_SUPPORT
-.endif
-
-# Disk and partition support
-.if ${LOADER_DISK_SUPPORT:Uyes} == "yes"
-CFLAGS+= -DLOADER_DISK_SUPPORT
-.if ${LOADER_GPT_SUPPORT:Uyes} == "yes"
-CFLAGS+= -DLOADER_GPT_SUPPORT
-.endif
-.if ${LOADER_MBR_SUPPORT:Uyes} == "yes"
-CFLAGS+= -DLOADER_MBR_SUPPORT
-.endif
-
# GELI Support, with backward compat hooks (mostly)
.if defined(HAVE_GELI)
.if defined(LOADER_NO_GELI_SUPPORT)
@@ -110,9 +64,8 @@ MK_LOADER_GELI=yes
CFLAGS+= -DLOADER_GELI_SUPPORT
CFLAGS+= -I${BOOTSRC}/geli
LIBGELIBOOT= ${BOOTOBJ}/geli/libgeliboot.a
-.endif
-.endif
-.endif
+.endif # MK_LOADER_GELI
+.endif # HAVE_GELI
# Machine specific flags for all builds here