From 3c52f7619359ee2f4b04c461214ebb7ef5431184 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Mon, 7 Jan 2019 23:32:59 +0100 Subject: perf: fix search path to slang Heed --sysroot setting. fixes: | ERROR: QA Issue: perf: The compile log indicates that host include and/or library paths were used. | Please check the log '/build/krm/oe-core_3.0/build/tmp/work/apalis_tk1-poky-linux-gnueabi/perf/1.0-r9/temp/log.do_compile' for more information. [compile-host-path] | cc1: warning: include location "/usr/include/slang" is unsafe for cross-compilation [-Wpoison-system-directories] Signed-off-by: Max Krummenacher --- recipes-kernel/perf/perf.bbappend | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'recipes-kernel') diff --git a/recipes-kernel/perf/perf.bbappend b/recipes-kernel/perf/perf.bbappend index dc60ab3..9e00182 100644 --- a/recipes-kernel/perf/perf.bbappend +++ b/recipes-kernel/perf/perf.bbappend @@ -1,5 +1,3 @@ -FILESEXTRAPATHS_prepend := "${THISDIR}:" - # Unfortunately perf in such obsolete kernels is not yet as nicely separated # therefore just copy over some more stuff for it to compile again PERF_SRC_LEGACY_TEGRAS = "Makefile \ @@ -9,3 +7,7 @@ PERF_SRC_LEGACY_TEGRAS = "Makefile \ tools \ " PERF_SRC_apalis-tk1 = "${PERF_SRC_LEGACY_TEGRAS}" + +do_configure_prepend () { + sed -i 's$I/usr/include/slang$I=/usr/include/slang$' tools/perf/Makefile +} -- cgit v1.2.3