perf build: Ensure sysreg-defs Makefile respects output dir
authorOliver Upton <oliver.upton@linux.dev>
Tue, 21 Nov 2023 19:29:56 +0000 (19:29 +0000)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 22 Nov 2023 19:17:53 +0000 (11:17 -0800)
commita29ee6aea7030786a63fde0d6d83a8f477b060fb
tree60a55974698e9bf90bb6f458b096a61afe214763
parentef5c958090a909c9f2ab717ba6abb86869e42da7
perf build: Ensure sysreg-defs Makefile respects output dir

Currently the sysreg-defs are written out to the source tree
unconditionally, ignoring the specified output directory. Correct the
build rule to emit the header to the output directory. Opportunistically
reorganize the rules to avoid interleaving with the set of beauty make
rules.

Reported-by: Ian Rogers <irogers@google.com>
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Link: https://lore.kernel.org/r/20231121192956.919380-3-oliver.upton@linux.dev
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/arch/arm64/tools/Makefile
tools/perf/Makefile.perf
tools/perf/util/Build
tools/testing/selftests/kvm/Makefile