1 # SPDX-License-Identifier: GPL-2.0 2 # 3 # Makefile for some libs needed by zImage. 4 # 5 6 zlib := inffast.c inflate.c inftrees.c 7 8 lib-y += $(zlib:.c=.o) zmem.o 9 10 ccflags-y := -I $(srctree)/lib/zlib_infl 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 17 18 KASAN_SANITIZE := n 19 KCSAN_SANITIZE := n 20 KCOV_INSTRUMENT := n 21 GCOV_PROFILE := n 22 23 CFLAGS_REMOVE_inflate.o += -fstack-protector - 24 CFLAGS_REMOVE_zmem.o += -fstack-protector -fst 25 CFLAGS_REMOVE_inftrees.o += -fstack-protector 26 CFLAGS_REMOVE_inffast.o += -fstack-protector - 27 28 quiet_cmd_copy_zlib = COPY $@ 29 cmd_copy_zlib = cat $< > $@ 30 31 $(addprefix $(obj)/,$(zlib)): $(obj)/%: $(srct 32 $(call cmd,copy_zlib) 33 34 clean-files := $(zlib)
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.