mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-13 04:06:50 +07:00
478ba61afc
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Chris Zankel <chris@zankel.net>
25 lines
491 B
Makefile
25 lines
491 B
Makefile
#
|
|
# 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
|
|
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
|
|
|
|
|
|
quiet_cmd_copy_zlib = COPY $@
|
|
cmd_copy_zlib = cat $< > $@
|
|
|
|
$(addprefix $(obj)/,$(zlib)): $(obj)/%: $(srctree)/lib/zlib_inflate/%
|
|
$(call cmd,copy_zlib)
|
|
|
|
clean-files := $(zlib)
|