diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2023-05-12 01:22:13 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-05-22 10:53:47 +0100 |
commit | 03adf4b267b3493586692b1e58a6a38eecf3e287 (patch) | |
tree | 6a7782f784b6bd7b882289e619c4e32503a11e89 /meta/recipes-kernel/perf | |
parent | 9f504623c57c60fd8abf5645c6e6c5a639c0b2f1 (diff) | |
download | poky-03adf4b267b3493586692b1e58a6a38eecf3e287.tar.gz |
perf: make pkg-config available
Fixup the to be called pkg-config as $(CROSS_COMPILE)pkg-config doesn't
exist.
With kernels < 6.4 pkg-config is only used for the gtk+-2.0 integration
which is disabled in the OE config. Thus the issue wasn't exposed so
far. With kernel 6.4 pkg-config is additionally used for libtraceevent
and libtracefs.
(From OE-Core rev: f7e743428792fde93d5ca1c97244fc2b967fe666)
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/perf')
-rw-r--r-- | meta/recipes-kernel/perf/perf.bb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb index e41fcc4798..da5f6533e6 100644 --- a/meta/recipes-kernel/perf/perf.bb +++ b/meta/recipes-kernel/perf/perf.bb | |||
@@ -87,6 +87,7 @@ EXTRA_OEMAKE = '\ | |||
87 | perfexecdir=${libexecdir} \ | 87 | perfexecdir=${libexecdir} \ |
88 | NO_GTK2=1 \ | 88 | NO_GTK2=1 \ |
89 | ${PACKAGECONFIG_CONFARGS} \ | 89 | ${PACKAGECONFIG_CONFARGS} \ |
90 | PKG_CONFIG=pkg-config \ | ||
90 | TMPDIR="${B}" \ | 91 | TMPDIR="${B}" \ |
91 | LIBUNWIND_DIR=${STAGING_EXECPREFIXDIR} \ | 92 | LIBUNWIND_DIR=${STAGING_EXECPREFIXDIR} \ |
92 | ' | 93 | ' |
@@ -297,6 +298,7 @@ do_configure:prepend () { | |||
297 | sed -i 's,CC = $(CROSS_COMPILE)gcc,#CC,' ${S}/tools/perf/Makefile.perf | 298 | sed -i 's,CC = $(CROSS_COMPILE)gcc,#CC,' ${S}/tools/perf/Makefile.perf |
298 | sed -i 's,AR = $(CROSS_COMPILE)ar,#AR,' ${S}/tools/perf/Makefile.perf | 299 | sed -i 's,AR = $(CROSS_COMPILE)ar,#AR,' ${S}/tools/perf/Makefile.perf |
299 | sed -i 's,LD = $(CROSS_COMPILE)ld,#LD,' ${S}/tools/perf/Makefile.perf | 300 | sed -i 's,LD = $(CROSS_COMPILE)ld,#LD,' ${S}/tools/perf/Makefile.perf |
301 | sed -i 's,PKG_CONFIG = $(CROSS_COMPILE)pkg-config,#PKG_CONFIG,' ${S}/tools/perf/Makefile.perf | ||
300 | fi | 302 | fi |
301 | if [ -e "${S}/tools/lib/api/Makefile" ]; then | 303 | if [ -e "${S}/tools/lib/api/Makefile" ]; then |
302 | sed -i 's,CC = $(CROSS_COMPILE)gcc,#CC,' ${S}/tools/lib/api/Makefile | 304 | sed -i 's,CC = $(CROSS_COMPILE)gcc,#CC,' ${S}/tools/lib/api/Makefile |