]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
kernel: set HOSTPKG_CONFIG to use pkg-config-native
authorBruce Ashfield <bruce.ashfield@gmail.com>
Tue, 18 Jul 2023 03:34:35 +0000 (23:34 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 21 Jul 2023 10:47:45 +0000 (11:47 +0100)
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+

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/classes-recipe/kernel.bbclass

index 2aedf3a31bc30731df716fe483e2f9b5dbb68ba4..b3865dcb0ffb417e2cb204cc475f5a65051dc9b4 100644 (file)
@@ -355,6 +355,9 @@ kernel_do_compile() {
        export PKG_CONFIG_LIBDIR="$PKG_CONFIG_DIR"
        export PKG_CONFIG_SYSROOT_DIR=""
 
+       # for newer kernels (5.19+) there's a dedicated variable
+       export HOSTPKG_CONFIG="pkg-config-native"
+
        if [ "${KERNEL_DEBUG_TIMESTAMPS}" != "1" ]; then
                # kernel sources do not use do_unpack, so SOURCE_DATE_EPOCH may not
                # be set....