]> git.ipfire.org Git - thirdparty/kernel/linux.git/blame - arch/xtensa/boot/lib/Makefile
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[thirdparty/kernel/linux.git] / arch / xtensa / boot / lib / Makefile
CommitLineData
b2441318 1# SPDX-License-Identifier: GPL-2.0
4bedea94
CZ
2#
3# Makefile for some libs needed by zImage.
4#
5
4f3865fb 6zlib := inffast.c inflate.c inftrees.c
4bedea94 7
e7d163f7
CZ
8lib-y += $(zlib:.c=.o) zmem.o
9
3996eabb 10ccflags-y := -Ilib/zlib_inflate
478ba61a
MF
11ifdef CONFIG_FUNCTION_TRACER
12CFLAGS_REMOVE_inflate.o = -pg
13CFLAGS_REMOVE_zmem.o = -pg
14CFLAGS_REMOVE_inftrees.o = -pg
15CFLAGS_REMOVE_inffast.o = -pg
16endif
17
e7d163f7
CZ
18
19quiet_cmd_copy_zlib = COPY $@
20 cmd_copy_zlib = cat $< > $@
21
22$(addprefix $(obj)/,$(zlib)): $(obj)/%: $(srctree)/lib/zlib_inflate/%
23 $(call cmd,copy_zlib)
24
25clean-files := $(zlib)