X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=scripts%2FMakefile.lib;h=ddf83d0181e73d30fb86f68c0fa0a3f888335c0c;hb=1c447116d017a98c90f8f71c8c5a611e0aa42178;hp=ad50d5859ac4f53fe1a0eafb5ea67504a29f72d4;hpb=55fc733c7e1de05a03237d857f4fe6dcec52d8d9;p=linux-2.6-block.git diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index ad50d5859ac4..ddf83d0181e7 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -136,6 +136,12 @@ _c_flags += $(if $(patsubst n%,, \ $(CFLAGS_UBSAN)) endif +ifeq ($(CONFIG_KCOV),y) +_c_flags += $(if $(patsubst n%,, \ + $(KCOV_INSTRUMENT_$(basetarget).o)$(KCOV_INSTRUMENT)y), \ + $(CFLAGS_KCOV)) +endif + # If building the kernel in a separate objtree expand all occurrences # of -Idir to -I$(srctree)/dir except for absolute paths (starting with '/').