]> code.ossystems Code Review - openembedded-core.git/commit
kernel: Set proper LD in KERNEL_KCONFIG_COMMAND
authorWonmin Jung <wonmin82@gmail.com>
Mon, 16 Nov 2020 11:16:27 +0000 (20:16 +0900)
committerSteve Sakoman <steve@sakoman.com>
Mon, 30 Nov 2020 14:58:17 +0000 (04:58 -1000)
commit5f85104363cf496d76c3d29a05ba4406701d2878
tree2dd55d542b0a5cb6361824b8037224e43cb62087
parent38c6c6f4a460e9c0593e2530ffeaf20b24fd83a9
kernel: Set proper LD in KERNEL_KCONFIG_COMMAND

With 'ld-is-gold' and linux kernel 5.4 or later, menuconfig
task for kernel recipes will fail with:

$ bitbake -c menuconfig virtual/kernel
...
scripts/kconfig/mconf  Kconfig
scripts/Kconfig.include:43:  gold linker 'x86_64-poky-linux-ld' not supported
/OE/build/tmp/work-shared/qemux86-64/kernel-source/scripts/kconfig/Makefile:29:
 recipe for target 'menuconfig' failed
make[2]: *** [menuconfig] Error 1
/OE/build/tmp/work-shared/qemux86-64/kernel-source/Makefile:606:
 recipe for target 'menuconfig' failed
make[1]: *** [menuconfig] Error 2
/OE/build/tmp/work-shared/qemux86-64/kernel-source/Makefile:185:
 recipe for target '__sub-make' failed
make: *** [__sub-make] Error 2
Command failed.

This is because that the KERNEL_LD variable already set in
kernel-arch.bbclass isn't used by do_menuconfig function of
cml1.bbclass.

To fix this issue specify LD variable while calling the kernel
menuconfig command through KERNEL_KCONFIG_COMMAND.

Signed-off-by: Wonmin Jung <wonmin82@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 1faf66ce0b1f8f5165277161e07e25e672370c3f)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/kernel.bbclass