]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
[contrib][linux] Disable ASM in the kernel
authorNick Terrell <terrelln@fb.com>
Tue, 18 Oct 2022 01:40:06 +0000 (18:40 -0700)
committerNick Terrell <nickrterrell@gmail.com>
Sat, 22 Oct 2022 00:14:31 +0000 (17:14 -0700)
Disable ASM in the kernel for now. It requires a few changes & setup to
get working. Instead of doing it in a zstd version update, I'd prefer to
package that change as a single patch, and propose it separately from
the version update. This makes the version update easier, and reduces
some risk.

contrib/linux-kernel/Makefile
contrib/linux-kernel/linux.mk
contrib/linux-kernel/test/Makefile

index d54ed4c0738f7bea1b5e56c960965ae98e45c240..baa1f24c6a7356736d58b6c492fd3aa48f8514d9 100644 (file)
@@ -56,7 +56,9 @@ libzstd:
                -DZSTD_HAVE_WEAK_SYMBOLS=0 \
                -DZSTD_TRACE=0 \
                -DZSTD_NO_TRACE \
+               -DZSTD_DISABLE_ASM \
                -DZSTD_LINUX_KERNEL
+       rm linux/lib/zstd/decompress/huf_decompress_amd64.S
        mv linux/lib/zstd/zstd.h linux/include/linux/zstd_lib.h
        mv linux/lib/zstd/zstd_errors.h linux/include/linux/
        cp linux_zstd.h linux/include/linux/zstd.h
@@ -104,4 +106,5 @@ test: libzstd
 
 .PHONY: clean
 clean:
-       $(RM) -rf linux test/test test/static_test
+       $(RM) -rf linux
+       $(MAKE) -C test clean
index 00068d2d8e21408e03044543dee8ff8093fdeae9..20f08c644b71a3e93626b8e7c67455c8cace9434 100644 (file)
@@ -29,7 +29,6 @@ zstd_compress-y := \
 
 zstd_decompress-y := \
                zstd_decompress_module.o \
-               decompress/huf_decompress_amd64.o \
                decompress/huf_decompress.o \
                decompress/zstd_ddict.o \
                decompress/zstd_decompress.o \
index be82b3fbac8b3598586d4507e77cabb94effee36..53b0c2a6596e24a33359943de26214c1a9f1c1fb 100644 (file)
@@ -45,4 +45,5 @@ clean:
        $(RM) -f $(LINUX_ZSTDLIB)/*.o
        $(RM) -f $(LINUX_ZSTDLIB)/**/*.o
        $(RM) -f *.o *.a
+       $(RM) -f static_test
        $(RM) -f test