summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/perf
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-kernel/perf')
-rw-r--r--meta/recipes-kernel/perf/perf.bb9
1 files changed, 9 insertions, 0 deletions
diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index 675acfaf26..a392166e73 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -73,6 +73,15 @@ SPDX_S = "${S}/tools/perf"
73# supported kernel. 73# supported kernel.
74LDFLAGS="-ldl -lutil" 74LDFLAGS="-ldl -lutil"
75 75
76# Perf's build system adds its own optimization flags for most TUs,
77# overriding the flags included here. But for some, perf does not add
78# any -O option, so ensure the distro's chosen optimization gets used
79# for those. Since ${SELECTED_OPTIMIZATION} always includes
80# ${DEBUG_FLAGS} which in turn includes ${DEBUG_PREFIX_MAP}, this also
81# ensures perf is built with appropriate -f*-prefix-map options,
82# avoiding the 'buildpaths' QA warning.
83TARGET_CC_ARCH += "${SELECTED_OPTIMIZATION}"
84
76EXTRA_OEMAKE = '\ 85EXTRA_OEMAKE = '\
77 V=1 \ 86 V=1 \
78 VF=1 \ 87 VF=1 \