On 23/09/2019 10:39, Petr Štetiar wrote:
On a recent Gentoo Linux installation, invoking `make kernel_menuconfig`
in the build system fails, whereas `make menuconfig` in the kernel tree
alone works as expected.

This is happening because STAGING_PREFIX is not defined when kernel's
menuconfig target calls pkg-config from the toolchain/host and thus
pkg-config returns an empty value, and the fallback values in the kernel
config script are applied but those are off and the linking fails.

Solution is to use system's pkg-config for kernel_menuconfig target in
order to provide proper compiler/linker flags.
Tested-by: Stijn Tintel <st...@linux-ipv6.be>

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to