2024-09-09 08:52:07 +00:00
|
|
|
#
|
|
|
|
# Makefile for some libs needed by zImage.
|
|
|
|
#
|
|
|
|
|
|
|
|
zlib := inffast.c inflate.c inftrees.c
|
|
|
|
|
|
|
|
lib-y += $(zlib:.c=.o) zmem.o
|
|
|
|
|
|
|
|
ccflags-y := -Ilib/zlib_inflate
|
2024-09-09 08:57:42 +00:00
|
|
|
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
|
|
|
|
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
quiet_cmd_copy_zlib = COPY $@
|
|
|
|
cmd_copy_zlib = cat $< > $@
|
|
|
|
|
|
|
|
$(addprefix $(obj)/,$(zlib)): $(obj)/%: $(srctree)/lib/zlib_inflate/%
|
|
|
|
$(call cmd,copy_zlib)
|
|
|
|
|
|
|
|
clean-files := $(zlib)
|