aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/geom/geom_uzip
diff options
context:
space:
mode:
Diffstat (limited to 'sys/modules/geom/geom_uzip')
-rw-r--r--sys/modules/geom/geom_uzip/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/sys/modules/geom/geom_uzip/Makefile b/sys/modules/geom/geom_uzip/Makefile
new file mode 100644
index 000000000000..958da0c9d214
--- /dev/null
+++ b/sys/modules/geom/geom_uzip/Makefile
@@ -0,0 +1,21 @@
+
+.include <kmod.opts.mk>
+
+.PATH: ${SRCTOP}/sys/geom/uzip ${SRCTOP}/sys/net
+
+KMOD= geom_uzip
+SRCS= g_uzip.c g_uzip_zlib.c g_uzip_lzma.c g_uzip_wrkthr.c
+SRCS+= g_uzip.h g_uzip_dapi.h g_uzip_lzma.h g_uzip_zlib.h g_uzip_softc.h \
+ g_uzip_wrkthr.h
+
+# This works for buildkernel, but will disable zstd in geom_uzip out of tree.
+SRCS.ZSTDIO+= g_uzip_zstd.c g_uzip_zstd.h
+CFLAGS.g_uzip_zstd.c+= -I${SRCTOP}/sys/contrib/zstd/lib/freebsd
+
+#CFLAGS= -g -DINVARIANT_SUPPORT -DINVARIANTS
+
+CFLAGS.g_uzip_lzma.c+= -I${SRCTOP}/sys/contrib/xz-embedded/freebsd \
+ -I${SRCTOP}/sys/contrib/xz-embedded/linux/lib/xz/
+SRCS+= opt_geom.h opt_zstdio.h
+
+.include <bsd.kmod.mk>