]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
perf build: Suppress 'rm dlfilter' build message
authorAdrian Hunter <adrian.hunter@intel.com>
Thu, 30 Sep 2021 06:28:49 +0000 (09:28 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sun, 31 Oct 2021 15:51:41 +0000 (12:51 -0300)
The following build message:

rm dlfilters/dlfilter-test-api-v0.o

is unwanted.

The object file is being treated as an intermediate file and being
automatically removed. Mark the object file as .SECONDARY to prevent
removal and hence the message.

Requested-by: Arnaldo Carvalho de Melo <acme@kernel.org>
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lore.kernel.org/lkml/20210930062849.110416-1-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Makefile.perf

index 5cd702062a042630bbd244cf9d188e4f9118d81d..b856afa6eb52e2d001d6ccbce12bb2f987513013 100644 (file)
@@ -787,6 +787,8 @@ $(OUTPUT)dlfilters/%.o: dlfilters/%.c include/perf/perf_dlfilter.h
        $(Q)$(MKDIR) -p $(OUTPUT)dlfilters
        $(QUIET_CC)$(CC) -c -Iinclude $(EXTRA_CFLAGS) -o $@ -fpic $<
 
+.SECONDARY: $(DLFILTERS:.so=.o)
+
 $(OUTPUT)dlfilters/%.so: $(OUTPUT)dlfilters/%.o
        $(QUIET_LINK)$(CC) $(EXTRA_CFLAGS) -shared -o $@ $<