diff options
author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2023-07-17 23:34:35 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-07-21 11:52:26 +0100 |
commit | 74b670cf0bbd0e9a5a862f34586917f95b84ae01 (patch) | |
tree | eaf8b97609632f1b070eb509d06cf39202a6d984 /meta/classes-recipe/kernel.bbclass | |
parent | 099176ef01dd751fd36f33a61665bcccaaf184ae (diff) | |
download | poky-74b670cf0bbd0e9a5a862f34586917f95b84ae01.tar.gz |
kernel: set HOSTPKG_CONFIG to use pkg-config-native
The 5.19 kernel introduced a variable to specify the pkg-config
command to use for host tools.
Previously to this being introduced, we needed to overrride the
standard PKG_CONFIG* variables to avoid calls to pkg-config using
the target configuration.
While we can't completely drop the PKG_CONFIG workaround, we
should introduce the new variable, and prepare to only use it
once all supported kernels are 5.19+
(From OE-Core rev: d4b5ea28078cbbf417d95e1b77c6b8c3e9f9e4c0)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe/kernel.bbclass')
-rw-r--r-- | meta/classes-recipe/kernel.bbclass | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes-recipe/kernel.bbclass b/meta/classes-recipe/kernel.bbclass index 2aedf3a31b..b3865dcb0f 100644 --- a/meta/classes-recipe/kernel.bbclass +++ b/meta/classes-recipe/kernel.bbclass | |||
@@ -355,6 +355,9 @@ kernel_do_compile() { | |||
355 | export PKG_CONFIG_LIBDIR="$PKG_CONFIG_DIR" | 355 | export PKG_CONFIG_LIBDIR="$PKG_CONFIG_DIR" |
356 | export PKG_CONFIG_SYSROOT_DIR="" | 356 | export PKG_CONFIG_SYSROOT_DIR="" |
357 | 357 | ||
358 | # for newer kernels (5.19+) there's a dedicated variable | ||
359 | export HOSTPKG_CONFIG="pkg-config-native" | ||
360 | |||
358 | if [ "${KERNEL_DEBUG_TIMESTAMPS}" != "1" ]; then | 361 | if [ "${KERNEL_DEBUG_TIMESTAMPS}" != "1" ]; then |
359 | # kernel sources do not use do_unpack, so SOURCE_DATE_EPOCH may not | 362 | # kernel sources do not use do_unpack, so SOURCE_DATE_EPOCH may not |
360 | # be set.... | 363 | # be set.... |