aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/arch
diff options
context:
space:
mode:
authorOliver Upton <oliver.upton@linux.dev>2023-11-21 19:29:56 +0000
committerNamhyung Kim <namhyung@kernel.org>2023-11-22 11:17:53 -0800
commita29ee6aea7030786a63fde0d6d83a8f477b060fb (patch)
tree60a55974698e9bf90bb6f458b096a61afe214763 /tools/arch
parenttools perf: Add arm64 sysreg files to MANIFEST (diff)
downloadwireguard-linux-a29ee6aea7030786a63fde0d6d83a8f477b060fb.tar.xz
wireguard-linux-a29ee6aea7030786a63fde0d6d83a8f477b060fb.zip
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/Makefile2
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)