Skip to content

Commit

Permalink
include zstd in freebsd makefile
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Gottschall <s.gottschall@dd-wrt.com>
  • Loading branch information
BrainSlayer committed May 1, 2020
1 parent e045d7e commit b0fd11a
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion module/Makefile.bsd
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,24 @@ 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}
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
Expand Down Expand Up @@ -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 \
Expand Down

0 comments on commit b0fd11a

Please sign in to comment.