git: d11df0599d9d - stable/13 - kboot: Add ZFS support build glue
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 24 Jan 2023 22:14:31 UTC
The branch stable/13 has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=d11df0599d9de9404bae4517440856dd7c0eee7d
commit d11df0599d9de9404bae4517440856dd7c0eee7d
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2023-01-13 21:20:48 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-01-24 21:49:47 +0000
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
(cherry picked from commit 42e37d8caf9da4628734f0c44c989583873b3ae6)
---
stand/kboot/Makefile | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/stand/kboot/Makefile b/stand/kboot/Makefile
index 5fe444cdf8c5..35d71cb064fc 100644
--- a/stand/kboot/Makefile
+++ b/stand/kboot/Makefile
@@ -5,6 +5,7 @@ LOADER_CD9660_SUPPORT?= yes
LOADER_MSDOS_SUPPORT?= no
LOADER_EXT2FS_SUPPORT?= yes
LOADER_UFS_SUPPORT?= yes
+LOADER_ZFS_SUPPORT?= yes
LOADER_NET_SUPPORT?= no
LOADER_NFS_SUPPORT?= no
LOADER_TFTP_SUPPORT?= no
@@ -34,6 +35,12 @@ SRCS= \
vers.c
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"