arm-trusted-firmware/lib
Masahiro Yamada c43d68510e zlib: add gunzip() support
This commit adds some more files to use zlib from TF.

To use zlib, ->zalloc and ->zfree hooks are needed.  The implementation
depends on the system.  For user-space, the libc provides malloc() and
friends.  Unfortunately, ARM Trusted Firmware does not provide malloc()
or any concept of dynamic memory allocation.

I implemented very simple calloc() and free() for this.  Stupidly,
zfree() never frees memory, but it works enough for this.

The purpose of using zlib is to implement gunzip() - this function
takes compressed data from in_buf, then dumps the decompressed data
to oub_buf.  The work_buf is used for memory allocation during the
decompress.  Upon exit, it updates in_buf and out_buf.  If successful,
in_buf points to the end of input data, out_buf to the end of the
decompressed data.

To use this feature, you need to do:

 - include lib/zlib/zlib.mk from your platform.mk

 - add $(ZLIB_SOURCES) to your BL*_SOURCES

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
2018-02-02 00:18:54 +09:00
..
aarch32 ARMv7: division support for missing __aeabi_*divmod 2017-11-08 14:42:07 +01:00
aarch64 Introduce functions to disable the MMU in EL1 2017-10-17 12:02:37 +01:00
compiler-rt Import ctzdi2.c from LLVM compiler-rt 2017-07-26 09:28:23 +01:00
coreboot coreboot: Add support for CBMEM console 2018-01-19 15:21:12 -08:00
cpus Merge pull request #1228 from dp-arm/dp/cve_2017_5715 2018-01-25 00:06:50 +00:00
el3_runtime Enable SVE for Non-secure world 2017-11-30 17:45:09 +00:00
extensions AMU: Remove unnecessary WARN() 2018-01-15 15:07:06 +00:00
libfdt Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
locks ARMv7 does not support STL instruction 2017-11-08 13:49:29 +01:00
optee Add Trusted OS extra image parsing support for ARM standard platforms 2017-08-09 18:06:05 +08:00
pmf Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
psci Add PubSub events for CPU powerdown/powerup 2018-01-11 10:33:41 +00:00
semihosting Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
stack_protector Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
stdlib Use standard UNIX file:line format in assert 2017-07-19 05:57:40 +01:00
utils Add mem_region utility functions 2017-09-25 13:32:20 +01:00
xlat_tables Merge pull request #1145 from etienne-lms/rfc-armv7-2 2017-11-23 23:41:24 +00:00
xlat_tables_v2 xlat v2: Correctly unmap regions on map error 2018-01-10 15:39:37 +00:00
zlib zlib: add gunzip() support 2018-02-02 00:18:54 +09:00