diff options
| author | James Clark <james.clark@linaro.org> | 2025-10-20 17:08:28 +0100 |
|---|---|---|
| committer | Namhyung Kim <namhyung@kernel.org> | 2025-10-20 21:11:49 -0700 |
| commit | 29166bd0a41fe6bdcf0b2376ef57e358c8a1e988 (patch) | |
| tree | 3fe036a7d9b1b0d5a0ca2a4d39d5d99fbf8e0881 /tools | |
| parent | 2ef335ead2338b0b317f17f7fe3503717cdc16b2 (diff) | |
perf jevents: Suppress circular dependency warnings
When doing an in source build, $(OUTPUT) is empty so the rule has the
same input and output file. Suppress the warning by only adding the rule
when doing an out of source build. The same condition already exists for
the clean rule for json files.
This fixes the following warnings:
make[3]: Circular pmu-events/arch/nds32/mapfile.csv <- pmu-events/arch/nds32/mapfile.csv dependency dropped.
make[3]: Circular pmu-events/arch/powerpc/mapfile.csv <- pmu-events/arch/powerpc/mapfile.csv dependency dropped.
...
Signed-off-by: James Clark <james.clark@linaro.org>
Tested-by: Namhyung Kim <namhyung@kernel.org>
Tested-by: Leo Yan <leo.yan@arm.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/perf/pmu-events/Build | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/perf/pmu-events/Build b/tools/perf/pmu-events/Build index c5e2d5f13766..a46ab7b612df 100644 --- a/tools/perf/pmu-events/Build +++ b/tools/perf/pmu-events/Build @@ -29,10 +29,12 @@ $(PMU_EVENTS_C): $(EMPTY_PMU_EVENTS_C) $(call rule_mkdir) $(Q)$(call echo-cmd,gen)cp $< $@ else -# Copy checked-in json for generation. +# Copy checked-in json to OUTPUT for generation if it's an out of source build +ifneq ($(OUTPUT),) $(OUTPUT)pmu-events/arch/%: pmu-events/arch/% $(call rule_mkdir) $(Q)$(call echo-cmd,gen)cp $< $@ +endif $(LEGACY_CACHE_JSON): $(LEGACY_CACHE_PY) $(call rule_mkdir) |
