162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ci#
362306a36Sopenharmony_ci# This is a modified version of zlib, which does all memory
462306a36Sopenharmony_ci# allocation ahead of time.
562306a36Sopenharmony_ci#
662306a36Sopenharmony_ci# This is only the decompression, see zlib_deflate for the
762306a36Sopenharmony_ci# the compression
862306a36Sopenharmony_ci#
962306a36Sopenharmony_ci# Decompression needs to be serialized for each memory
1062306a36Sopenharmony_ci# allocation.
1162306a36Sopenharmony_ci#
1262306a36Sopenharmony_ci# (The upsides of the simplification is that you can't get in
1362306a36Sopenharmony_ci# any nasty situations wrt memory management, and that the
1462306a36Sopenharmony_ci# uncompression can be done without blocking on allocation).
1562306a36Sopenharmony_ci#
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ciobj-$(CONFIG_ZLIB_INFLATE) += zlib_inflate.o
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_cizlib_inflate-objs := inffast.o inflate.o infutil.o \
2062306a36Sopenharmony_ci		     inftrees.o inflate_syms.o
21