Re: [PATCH] scripts: Fix linking extract-cert against libcrypto
From: Daniel Díaz <hidden>
Date: 2021-02-16 23:54:40
Also in:
linux-kbuild, lkml
From: Daniel Díaz <hidden>
Date: 2021-02-16 23:54:40
Also in:
linux-kbuild, lkml
Hello! On Fri, 12 Feb 2021 at 01:44, Rolf Eike Beer [off-list ref] wrote:
Am Donnerstag, 11. Februar 2021, 11:29:33 CET schrieb Rolf Eike Beer:quoted
I'm just guessing, but your build error looks like you are also cross-building the tools, which is wrong. You want them to be host-tools. So don't export PKG_CONFIG_SYSROOT_DIR, it would then try to link target libraries into a host binary.I have looked again how I do it: # this is for additional _host_ .pc files export PKG_CONFIG_PATH=${prefix}/lib/pkgconfig Then have a target-pkg-config, so this code inside several kernel Makefiles will work: PKG_CONFIG ?= $(CROSS_COMPILE)pkg-config And then export your PKG_CONFIG_SYSROOT_DIR and the like inside that. I bet you have all of this already in place, so just remove the SYSROOT_DIR from your kernel build script and things should work.
Thank you for your comments! I will try this in our environment in the upcoming days. Greetings! Daniel Díaz daniel.diaz@linaro.org