Masahiro Yamada | 55a040e | 2018-01-26 11:42:01 +0900 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
| 7 | ZLIB_PATH := lib/zlib |
| 8 | |
| 9 | # Imported from zlib 1.2.11 (do not modify them) |
| 10 | ZLIB_SOURCES := $(addprefix $(ZLIB_PATH)/, \ |
| 11 | adler32.c \ |
| 12 | crc32.c \ |
| 13 | inffast.c \ |
| 14 | inflate.c \ |
| 15 | inftrees.c \ |
| 16 | zutil.c) |
| 17 | |
| 18 | # Implemented for TF |
| 19 | ZLIB_SOURCES += $(addprefix $(ZLIB_PATH)/, \ |
| 20 | tf_gunzip.c) |
| 21 | |
| 22 | INCLUDES += -Iinclude/lib/zlib |
| 23 | |
| 24 | # REVISIT: the following flags need not be given globally |
| 25 | TF_CFLAGS += -DZ_SOLO -DDEF_WBITS=31 |