1c0632867SJohn Baldwin.include <kmod.opts.mk> 2c0632867SJohn Baldwin 3193d9e76SEnji Cooper.PATH: ${SRCTOP}/sys/geom/uzip ${SRCTOP}/sys/net 475261008SMax Khon 575261008SMax KhonKMOD= geom_uzip 68f8cb840SMaxim SobolevSRCS= g_uzip.c g_uzip_zlib.c g_uzip_lzma.c g_uzip_wrkthr.c 78f8cb840SMaxim SobolevSRCS+= g_uzip.h g_uzip_dapi.h g_uzip_lzma.h g_uzip_zlib.h g_uzip_softc.h \ 88f8cb840SMaxim Sobolev g_uzip_wrkthr.h 975261008SMax Khon 10eefd8f96SConrad Meyer# This works for buildkernel, but will disable zstd in geom_uzip out of tree. 11*c3dd45c4SJohn BaldwinSRCS.ZSTDIO+= g_uzip_zstd.c g_uzip_zstd.h 12eefd8f96SConrad MeyerCFLAGS.g_uzip_zstd.c+= -I${SRCTOP}/sys/contrib/zstd/lib/freebsd 13eefd8f96SConrad Meyer 14eefd8f96SConrad Meyer#CFLAGS= -g -DINVARIANT_SUPPORT -DINVARIANTS 158f8cb840SMaxim Sobolev 162b0cabbdSXin LICFLAGS.g_uzip_lzma.c+= -I${SRCTOP}/sys/contrib/xz-embedded/freebsd \ 17193d9e76SEnji Cooper -I${SRCTOP}/sys/contrib/xz-embedded/linux/lib/xz/ 18eefd8f96SConrad MeyerSRCS+= opt_geom.h opt_zstdio.h 198f8cb840SMaxim Sobolev 2075261008SMax Khon.include <bsd.kmod.mk> 21