diff options
author | Oliver Upton <oliver.upton@linux.dev> | 2023-11-21 22:29:56 +0300 |
---|---|---|
committer | Namhyung Kim <namhyung@kernel.org> | 2023-11-22 22:17:53 +0300 |
commit | a29ee6aea7030786a63fde0d6d83a8f477b060fb (patch) | |
tree | 60a55974698e9bf90bb6f458b096a61afe214763 /tools/arch | |
parent | ef5c958090a909c9f2ab717ba6abb86869e42da7 (diff) | |
download | linux-a29ee6aea7030786a63fde0d6d83a8f477b060fb.tar.xz |
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>
Diffstat (limited to 'tools/arch')
-rw-r--r-- | tools/arch/arm64/tools/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/arch/arm64/tools/Makefile b/tools/arch/arm64/tools/Makefile index 7f64b8bb5107..7b42feedf647 100644 --- a/tools/arch/arm64/tools/Makefile +++ b/tools/arch/arm64/tools/Makefile @@ -22,7 +22,7 @@ endif arm64_tools_dir = $(top_srcdir)/arch/arm64/tools arm64_sysreg_tbl = $(arm64_tools_dir)/sysreg arm64_gen_sysreg = $(arm64_tools_dir)/gen-sysreg.awk -arm64_generated_dir = $(top_srcdir)/tools/arch/arm64/include/generated +arm64_generated_dir = $(OUTPUT)arch/arm64/include/generated arm64_sysreg_defs = $(arm64_generated_dir)/asm/sysreg-defs.h all: $(arm64_sysreg_defs) |