Move loader-only defines to loader.mk from defs.mk
Produces the same .o's, verified with md5. Sponsored by: Netflix
This commit is contained in:
parent
f3324c4722
commit
4927bbce9d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=326914
@ -50,52 +50,6 @@ CFLAGS+= -I${BOOTOBJ}/libsa
|
|||||||
CFLAGS+= -I${SASRC} -D_STANDALONE
|
CFLAGS+= -I${SASRC} -D_STANDALONE
|
||||||
CFLAGS+= -I${SYSDIR}
|
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)
|
# GELI Support, with backward compat hooks (mostly)
|
||||||
.if defined(HAVE_GELI)
|
.if defined(HAVE_GELI)
|
||||||
.if defined(LOADER_NO_GELI_SUPPORT)
|
.if defined(LOADER_NO_GELI_SUPPORT)
|
||||||
@ -110,9 +64,8 @@ MK_LOADER_GELI=yes
|
|||||||
CFLAGS+= -DLOADER_GELI_SUPPORT
|
CFLAGS+= -DLOADER_GELI_SUPPORT
|
||||||
CFLAGS+= -I${BOOTSRC}/geli
|
CFLAGS+= -I${BOOTSRC}/geli
|
||||||
LIBGELIBOOT= ${BOOTOBJ}/geli/libgeliboot.a
|
LIBGELIBOOT= ${BOOTOBJ}/geli/libgeliboot.a
|
||||||
.endif
|
.endif # MK_LOADER_GELI
|
||||||
.endif
|
.endif # HAVE_GELI
|
||||||
.endif
|
|
||||||
|
|
||||||
# Machine specific flags for all builds here
|
# Machine specific flags for all builds here
|
||||||
|
|
||||||
|
@ -69,6 +69,53 @@ CFLAGS+= -DBOOT_PROMPT_123
|
|||||||
SRCS+= install.c
|
SRCS+= install.c
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
# 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
|
||||||
|
.endif
|
||||||
|
|
||||||
.if defined(HAVE_ZFS)
|
.if defined(HAVE_ZFS)
|
||||||
CFLAGS+= -DLOADER_ZFS_SUPPORT
|
CFLAGS+= -DLOADER_ZFS_SUPPORT
|
||||||
CFLAGS+= -I${ZFSSRC}
|
CFLAGS+= -I${ZFSSRC}
|
||||||
|
Loading…
Reference in New Issue
Block a user