diff options
Diffstat (limited to 'meta/recipes-kernel/perf')
-rw-r--r-- | meta/recipes-kernel/perf/perf.bb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb index 2f28d16fba..e41fcc4798 100644 --- a/meta/recipes-kernel/perf/perf.bb +++ b/meta/recipes-kernel/perf/perf.bb | |||
@@ -81,7 +81,7 @@ EXTRA_OEMAKE = '\ | |||
81 | LDSHARED="${CC} -shared" \ | 81 | LDSHARED="${CC} -shared" \ |
82 | AR="${AR}" \ | 82 | AR="${AR}" \ |
83 | LD="${LD}" \ | 83 | LD="${LD}" \ |
84 | EXTRA_CFLAGS="-ldw" \ | 84 | EXTRA_CFLAGS="-ldw -I${S}" \ |
85 | YFLAGS='-y --file-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}' \ | 85 | YFLAGS='-y --file-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}' \ |
86 | EXTRA_LDFLAGS="${PERF_EXTRA_LDFLAGS}" \ | 86 | EXTRA_LDFLAGS="${PERF_EXTRA_LDFLAGS}" \ |
87 | perfexecdir=${libexecdir} \ | 87 | perfexecdir=${libexecdir} \ |
@@ -280,6 +280,16 @@ do_configure:prepend () { | |||
280 | sed -i -e "s#os.scandir(path)#sorted(os.scandir(path), key=lambda e: e.name)#g" \ | 280 | sed -i -e "s#os.scandir(path)#sorted(os.scandir(path), key=lambda e: e.name)#g" \ |
281 | "${S}/tools/perf/pmu-events/jevents.py" | 281 | "${S}/tools/perf/pmu-events/jevents.py" |
282 | fi | 282 | fi |
283 | if [ -e "${S}/tools/perf/arch/arm64/Makefile" ]; then | ||
284 | sed -i 's,sysdef := $(srctree)/,sysdef := ,' ${S}/tools/perf/arch/arm64/Makefile | ||
285 | sed -i 's,$(incpath) $(sysdef),$(incpath) $(srctree)/$(sysdef) $(sysdef),' ${S}/tools/perf/arch/arm64/Makefile | ||
286 | fi | ||
287 | if [ -e "${S}/tools/perf/arch/arm64/entry/syscalls/mksyscalltbl" ]; then | ||
288 | if ! grep -q input_rel ${S}/tools/perf/arch/arm64/entry/syscalls/mksyscalltbl; then | ||
289 | sed -i 's,input=$4,input=$4\ninput_rel=$5,' ${S}/tools/perf/arch/arm64/entry/syscalls/mksyscalltbl | ||
290 | fi | ||
291 | sed -i 's,#include \\"\$input\\",#include \\"\$input_rel\\",' ${S}/tools/perf/arch/arm64/entry/syscalls/mksyscalltbl | ||
292 | fi | ||
283 | # end reproducibility substitutions | 293 | # end reproducibility substitutions |
284 | 294 | ||
285 | # We need to ensure the --sysroot option in CC is preserved | 295 | # We need to ensure the --sysroot option in CC is preserved |