treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / xtensa / boot / lib / Makefile
blobe3d717c7bfa1f6f5a0d4c0725aef0b8749a55dcd
1 # SPDX-License-Identifier: GPL-2.0
3 # Makefile for some libs needed by zImage.
6 zlib := inffast.c inflate.c inftrees.c
8 lib-y += $(zlib:.c=.o) zmem.o
10 ccflags-y := -I $(srctree)/lib/zlib_inflate
11 ifdef CONFIG_FUNCTION_TRACER
12 CFLAGS_REMOVE_inflate.o = -pg
13 CFLAGS_REMOVE_zmem.o = -pg
14 CFLAGS_REMOVE_inftrees.o = -pg
15 CFLAGS_REMOVE_inffast.o = -pg
16 endif
18 KASAN_SANITIZE := n
20 CFLAGS_REMOVE_inflate.o += -fstack-protector -fstack-protector-strong
21 CFLAGS_REMOVE_zmem.o += -fstack-protector -fstack-protector-strong
22 CFLAGS_REMOVE_inftrees.o += -fstack-protector -fstack-protector-strong
23 CFLAGS_REMOVE_inffast.o += -fstack-protector -fstack-protector-strong
25 quiet_cmd_copy_zlib = COPY $@
26 cmd_copy_zlib = cat $< > $@
28 $(addprefix $(obj)/,$(zlib)): $(obj)/%: $(srctree)/lib/zlib_inflate/%
29 $(call cmd,copy_zlib)
31 clean-files := $(zlib)