summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2024-04-05 09:15:16 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-04-08 23:33:32 +0100
commit532a10b1c59e07ec4e9dac9d8a201d58bf143805 (patch)
tree431792d8ca26cff4f802006b3411490a08bd8409 /meta/recipes-kernel
parent82a61e246ba5fa5a8535305b9b12079f726912a8 (diff)
downloadpoky-532a10b1c59e07ec4e9dac9d8a201d58bf143805.tar.gz
perf: make bpf asm include arch conditional
To keep the perf source copying as small as possible, we can further refine the arch/uapi copy to the single file that we currently need. To avoid a warning from the general perf source copy routine, we make the .h conditional based on the architecture. The supported architectures will not change often, so updating this arch list is very minimal effort. Alternatively, we could add a PERF_OPTIONAL_SRC variable and not warn if a file isn't available for a given architecture. (From OE-Core rev: 879b4a7d378b4d4d11fdda7921b8c47e4523a948) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel')
-rw-r--r--meta/recipes-kernel/perf/perf.bb7
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index fe96e1012b..11fa917649 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -129,7 +129,10 @@ EXTRA_OEMAKE += "\
129# honour a JOBS variable. 129# honour a JOBS variable.
130EXTRA_OEMAKE:append:task-configure = " JOBS=1" 130EXTRA_OEMAKE:append:task-configure = " JOBS=1"
131 131
132# include/uapi/asm is for: include/uapi/asm/bpf_perf_event.h 132# the architectures that need this file can be found in
133# tools/include/uapi/asm/bpf_perf_event.h
134# We are only listing supported arches at the moment
135PERF_BPF_EVENT_SRC ?= '${@bb.utils.contains_any("ARCH", [ "riscv", "arm64" ], "arch/${ARCH}/include/uapi/asm/bpf_perf_event.h", "", d)}'
133PERF_SRC ?= "Makefile \ 136PERF_SRC ?= "Makefile \
134 tools/arch \ 137 tools/arch \
135 tools/build \ 138 tools/build \
@@ -140,7 +143,7 @@ PERF_SRC ?= "Makefile \
140 tools/scripts \ 143 tools/scripts \
141 scripts/ \ 144 scripts/ \
142 arch/arm64/tools \ 145 arch/arm64/tools \
143 arch/${ARCH}/include/uapi/asm/ \ 146 ${PERF_BPF_EVENT_SRC} \
144 arch/${ARCH}/Makefile \ 147 arch/${ARCH}/Makefile \
145" 148"
146 149