chore: update to use Arm word across TF-AAlign entire TF-A to use Arm in copyright header.Change-Id: Ief9992169efdab61d0da6bd8c5180de7a4bc2244Signed-off-by: Govindraj Raja <govindraj.raja@arm.co
chore: update to use Arm word across TF-AAlign entire TF-A to use Arm in copyright header.Change-Id: Ief9992169efdab61d0da6bd8c5180de7a4bc2244Signed-off-by: Govindraj Raja <govindraj.raja@arm.com>
show more ...
Standardise header guards across codebaseAll identifiers, regardless of use, that start with two underscores arereserved. This means they can't be used in header guards.The style that this proje
Standardise header guards across codebaseAll identifiers, regardless of use, that start with two underscores arereserved. This means they can't be used in header guards.The style that this project is now to use the full name of the file incapital letters followed by 'H'. For example, for a file called"uart_example.h", the header guard is UART_EXAMPLE_H.The exceptions are files that are imported from other projects:- CryptoCell driver- dt-bindings folders- zlib headersChange-Id: I50561bf6c88b491ec440d0c8385c74650f3c106eSigned-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
zlib: add gunzip() supportThis commit adds some more files to use zlib from TF.To use zlib, ->zalloc and ->zfree hooks are needed. The implementationdepends on the system. For user-space, the
zlib: add gunzip() supportThis commit adds some more files to use zlib from TF.To use zlib, ->zalloc and ->zfree hooks are needed. The implementationdepends on the system. For user-space, the libc provides malloc() andfriends. 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 functiontakes compressed data from in_buf, then dumps the decompressed datato oub_buf. The work_buf is used for memory allocation during thedecompress. 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 thedecompressed data.To use this feature, you need to do: - include lib/zlib/zlib.mk from your platform.mk - add $(ZLIB_SOURCES) to your BL*_SOURCESSigned-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>