From b0fd11a1bfb5d1517252fdf8b8935b9597aa3f88 Mon Sep 17 00:00:00 2001 From: Sebastian Gottschall Date: Fri, 1 May 2020 14:31:12 +0400 Subject: [PATCH] include zstd in freebsd makefile Signed-off-by: Sebastian Gottschall --- module/Makefile.bsd | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/module/Makefile.bsd b/module/Makefile.bsd index 6d76796f51ed..994b98c9501a 100644 --- a/module/Makefile.bsd +++ b/module/Makefile.bsd @@ -16,7 +16,12 @@ KMOD= openzfs ${SRCDIR}/os/freebsd/zfs \ ${SRCDIR}/unicode \ ${SRCDIR}/zcommon \ - ${SRCDIR}/zfs + ${SRCDIR}/zfs \ + ${SRCDIR}/zstd \ + ${SRCDIR}/../contrib/zstd/common \ + ${SRCDIR}/../contrib/zstd/compress \ + ${SRCDIR}/../contrib/zstd/decompress + CFLAGS+= -I${INCDIR} @@ -24,6 +29,11 @@ CFLAGS+= -I${INCDIR}/spl CFLAGS+= -I${INCDIR}/os/freebsd CFLAGS+= -I${INCDIR}/os/freebsd/spl CFLAGS+= -I${INCDIR}/os/freebsd/zfs +CFLAGS+= -I${INCDIR}/contrib/zstd +CFLAGS+= -I${INCDIR}/contrib/zstd/common +CFLAGS+= -I${INCDIR}/contrib/zstd/compress +CFLAGS+= -I${INCDIR}/contrib/zstd/decompress +CFLAGS+= -I${INCDIR}/include/sys/zstd CFLAGS+= -include ${INCDIR}/os/freebsd/spl/sys/ccompile.h CFLAGS+= -D__KERNEL__ -DFREEBSD_NAMECACHE -DBUILDING_ZFS -D__BSD_VISIBLE=1 @@ -289,6 +299,29 @@ SRCS+= aggsum.c \ zthr.c \ zvol.c +#zstd +SRCS+= zstd.c \ + zstd_common.c \ + fse_decompress.c \ + entropy_common.c \ + error_private.c \ + xxhash.c \ + zstd_compress.c \ + zstd_compress_literals.c \ + zstd_compress_sequences.c \ + fse_compress.c \ + hist.c \ + huf_compress.c \ + zstd_double_fast.c \ + zstd_fast.c \ + zstd_lazy.c \ + zstd_ldm.c \ + zstd_opt.c \ + zstd_ddict.c \ + zstd_decompress.c \ + zstd_decompress_block.c \ + huf_decompress.c + beforeinstall: .if ${MK_DEBUG_FILES} != "no" mtree -eu \