kboot: Add ZFS support build glue
Now that all the pieces are in place, allow kboot to be built with ZFS support. Sponsored by: Netflix Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D38009
This commit is contained in:
parent
f20ecce33a
commit
42e37d8caf
@ -5,6 +5,7 @@ LOADER_CD9660_SUPPORT?= yes
|
|||||||
LOADER_MSDOS_SUPPORT?= no
|
LOADER_MSDOS_SUPPORT?= no
|
||||||
LOADER_EXT2FS_SUPPORT?= yes
|
LOADER_EXT2FS_SUPPORT?= yes
|
||||||
LOADER_UFS_SUPPORT?= yes
|
LOADER_UFS_SUPPORT?= yes
|
||||||
|
LOADER_ZFS_SUPPORT?= yes
|
||||||
LOADER_NET_SUPPORT?= no
|
LOADER_NET_SUPPORT?= no
|
||||||
LOADER_NFS_SUPPORT?= no
|
LOADER_NFS_SUPPORT?= no
|
||||||
LOADER_TFTP_SUPPORT?= no
|
LOADER_TFTP_SUPPORT?= no
|
||||||
@ -34,6 +35,12 @@ SRCS= \
|
|||||||
vers.c
|
vers.c
|
||||||
|
|
||||||
CFLAGS.gfx_fb_stub.c += -I${SRCTOP}/contrib/pnglite -I${SRCTOP}/sys/teken
|
CFLAGS.gfx_fb_stub.c += -I${SRCTOP}/contrib/pnglite -I${SRCTOP}/sys/teken
|
||||||
|
.if ${MK_LOADER_ZFS} != "no"
|
||||||
|
CFLAGS+= -I${ZFSSRC}
|
||||||
|
CFLAGS+= -I${SYSDIR}/contrib/openzfs/include
|
||||||
|
CFLAGS+= -I${SYSDIR}/contrib/openzfs/include/os/freebsd/zfs
|
||||||
|
HAVE_ZFS=yes
|
||||||
|
.endif
|
||||||
|
|
||||||
.include "${BOOTSRC}/fdt.mk"
|
.include "${BOOTSRC}/fdt.mk"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user