Build the geom_uncompress(4) module by default.

Fix geom_uncompress(4) module loading.  Don't link zlib.c (which is a module
itself) directly.

The built module was verified and used to read a few mkulzma(8) images on
amd64 to validate some of the informations on the manual page.

While here, don't overwrite CFLAGS.

Reviewed by:	ray
Approved by:	adrian (mentor)
This commit is contained in:
Luiz Otavio O Souza 2014-01-10 20:29:46 +00:00
parent b971a4c9ba
commit 67619a4120
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=260523
3 changed files with 4 additions and 3 deletions

View File

@ -664,4 +664,4 @@ static struct g_class g_uncompress_class = {
};
DECLARE_GEOM_CLASS(g_uncompress_class, g_uncompress);
MODULE_DEPEND(g_uncompress, zlib, 1, 1, 1);

View File

@ -24,6 +24,7 @@ SUBDIR= geom_bde \
geom_shsec \
geom_stripe \
geom_sunlabel \
geom_uncompress \
geom_uzip \
geom_vinum \
geom_virstor \

View File

@ -7,11 +7,11 @@
${.CURDIR}/../../../net
KMOD= geom_uncompress
CFLAGS= -I${.CURDIR}/../../../geom/uncompress/ \
CFLAGS+= -I${.CURDIR}/../../../geom/uncompress/ \
-I${.CURDIR}/../../../contrib/xz-embedded/freebsd \
-I${.CURDIR}/../../../contrib/xz-embedded/linux/lib/xz/
SRCS= g_uncompress.c xz_crc32.c xz_dec_bcj.c xz_dec_lzma2.c xz_dec_stream.c \
xz_malloc.c zlib.c
xz_malloc.c
SRCS+= xz.h xz_config.h xz_lzma2.h xz_malloc.h xz_private.h xz_stream.h zlib.h
.include <bsd.kmod.mk>