xref: /OK3568_Linux_fs/kernel/lib/zlib_inflate/Makefile (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0-only
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# This is a modified version of zlib, which does all memory
4*4882a593Smuzhiyun# allocation ahead of time.
5*4882a593Smuzhiyun#
6*4882a593Smuzhiyun# This is only the decompression, see zlib_deflate for the
7*4882a593Smuzhiyun# the compression
8*4882a593Smuzhiyun#
9*4882a593Smuzhiyun# Decompression needs to be serialized for each memory
10*4882a593Smuzhiyun# allocation.
11*4882a593Smuzhiyun#
12*4882a593Smuzhiyun# (The upsides of the simplification is that you can't get in
13*4882a593Smuzhiyun# any nasty situations wrt memory management, and that the
14*4882a593Smuzhiyun# uncompression can be done without blocking on allocation).
15*4882a593Smuzhiyun#
16*4882a593Smuzhiyun
17*4882a593Smuzhiyunobj-$(CONFIG_ZLIB_INFLATE) += zlib_inflate.o
18*4882a593Smuzhiyun
19*4882a593Smuzhiyunzlib_inflate-objs := inffast.o inflate.o infutil.o \
20*4882a593Smuzhiyun		     inftrees.o inflate_syms.o
21