aboutsummaryrefslogtreecommitdiffstats
path: root/module/Makefile.bsd
diff options
context:
space:
mode:
authorRich Ercolani <[email protected]>2022-03-01 08:32:52 -0500
committerBrian Behlendorf <[email protected]>2022-03-01 13:55:12 -0800
commit234e9605c1f2cdf64f13df0697aa5017f416656a (patch)
treed9dfbb6fe36230d07bd2350e09451e03cc7686ce /module/Makefile.bsd
parent669683c4cbcd9c20258ce6641c6c777f29aeb94d (diff)
Explode zstd 1.4.5 into separate upstream files
It's much nicer to import from upstream this way, and compiles faster too. Everything in lib/ is unmodified 1.4.5. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Rich Ercolani <[email protected]> Closes #12978
Diffstat (limited to 'module/Makefile.bsd')
-rw-r--r--module/Makefile.bsd51
1 files changed, 48 insertions, 3 deletions
diff --git a/module/Makefile.bsd b/module/Makefile.bsd
index 5172394e6..695b6630a 100644
--- a/module/Makefile.bsd
+++ b/module/Makefile.bsd
@@ -19,7 +19,9 @@ KMOD= openzfs
${SRCDIR}/zcommon \
${SRCDIR}/zfs \
${SRCDIR}/zstd \
- ${SRCDIR}/zstd/lib
+ ${SRCDIR}/zstd/lib/common \
+ ${SRCDIR}/zstd/lib/compress \
+ ${SRCDIR}/zstd/lib/decompress
@@ -313,7 +315,29 @@ SRCS+= abd.c \
#zstd
SRCS+= zfs_zstd.c \
- zstd.c
+ entropy_common.c \
+ error_private.c \
+ fse_decompress.c \
+ pool.c \
+ zstd_common.c \
+ fse_compress.c \
+ hist.c \
+ huf_compress.c \
+ zstd_compress.c \
+ zstd_compress_literals.c \
+ zstd_compress_sequences.c \
+ zstd_compress_superblock.c \
+ zstd_double_fast.c \
+ zstd_fast.c \
+ zstd_lazy.c \
+ zstd_ldm.c \
+ zstd_opt.c \
+ huf_decompress.c \
+ zstd_ddict.c \
+ zstd_decompress.c \
+ zstd_decompress_block.c
+
+
beforeinstall:
.if ${MK_DEBUG_FILES} != "no"
@@ -373,4 +397,25 @@ CFLAGS.zil.c= -Wno-cast-qual
CFLAGS.zio.c= -Wno-cast-qual
CFLAGS.zrlock.c= -Wno-cast-qual
CFLAGS.zfs_zstd.c= -Wno-cast-qual -Wno-pointer-arith
-CFLAGS.zstd.c= -fno-tree-vectorize -U__BMI__
+CFLAGS.entropy_common.c= -fno-tree-vectorize -U__BMI__
+CFLAGS.error_private.c= -fno-tree-vectorize -U__BMI__
+CFLAGS.fse_decompress.c= -fno-tree-vectorize -U__BMI__
+CFLAGS.pool.c= -fno-tree-vectorize -U__BMI__
+CFLAGS.xxhash.c= -fno-tree-vectorize -U__BMI__
+CFLAGS.zstd_common.c= -fno-tree-vectorize -U__BMI__
+CFLAGS.fse_compress.c= -fno-tree-vectorize -U__BMI__
+CFLAGS.hist.c= -fno-tree-vectorize -U__BMI__
+CFLAGS.huf_compress.c= -fno-tree-vectorize -U__BMI__
+CFLAGS.zstd_compress.c= -fno-tree-vectorize -U__BMI__
+CFLAGS.zstd_compress_literals.c= -fno-tree-vectorize -U__BMI__
+CFLAGS.zstd_compress_sequences.c= -fno-tree-vectorize -U__BMI__
+CFLAGS.zstd_compress_superblock.c= -fno-tree-vectorize -U__BMI__
+CFLAGS.zstd_double_fast.c= -fno-tree-vectorize -U__BMI__
+CFLAGS.zstd_fast.c= -fno-tree-vectorize -U__BMI__
+CFLAGS.zstd_lazy.c= -fno-tree-vectorize -U__BMI__
+CFLAGS.zstd_ldm.c= -fno-tree-vectorize -U__BMI__
+CFLAGS.zstd_opt.c= -fno-tree-vectorize -U__BMI__
+CFLAGS.huf_decompress.c= -fno-tree-vectorize -U__BMI__
+CFLAGS.zstd_ddict.c= -fno-tree-vectorize -U__BMI__
+CFLAGS.zstd_decompress.c= -fno-tree-vectorize -U__BMI__
+CFLAGS.zstd_decompress_block.c= -fno-tree-vectorize -U__BMI__