diff --git a/module/Makefile.bsd b/module/Makefile.bsd index 6d76796f51e..994b98c9501 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 \