mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 08:14:15 +08:00
0847d167d0
Select ARCH_HAS_GCOV_PROFILE_ALL and set GCOV_PROFILE = n inside arch/xtensa/boot/lib. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
35 lines
896 B
Makefile
35 lines
896 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Makefile for some libs needed by zImage.
|
|
#
|
|
|
|
zlib := inffast.c inflate.c inftrees.c
|
|
|
|
lib-y += $(zlib:.c=.o) zmem.o
|
|
|
|
ccflags-y := -I $(srctree)/lib/zlib_inflate
|
|
ifdef CONFIG_FUNCTION_TRACER
|
|
CFLAGS_REMOVE_inflate.o = -pg
|
|
CFLAGS_REMOVE_zmem.o = -pg
|
|
CFLAGS_REMOVE_inftrees.o = -pg
|
|
CFLAGS_REMOVE_inffast.o = -pg
|
|
endif
|
|
|
|
KASAN_SANITIZE := n
|
|
KCSAN_SANITIZE := n
|
|
KCOV_INSTRUMENT := n
|
|
GCOV_PROFILE := n
|
|
|
|
CFLAGS_REMOVE_inflate.o += -fstack-protector -fstack-protector-strong
|
|
CFLAGS_REMOVE_zmem.o += -fstack-protector -fstack-protector-strong
|
|
CFLAGS_REMOVE_inftrees.o += -fstack-protector -fstack-protector-strong
|
|
CFLAGS_REMOVE_inffast.o += -fstack-protector -fstack-protector-strong
|
|
|
|
quiet_cmd_copy_zlib = COPY $@
|
|
cmd_copy_zlib = cat $< > $@
|
|
|
|
$(addprefix $(obj)/,$(zlib)): $(obj)/%: $(srctree)/lib/zlib_inflate/%
|
|
$(call cmd,copy_zlib)
|
|
|
|
clean-files := $(zlib)
|