diff options
author | Wonmin Jung <wonmin82@gmail.com> | 2020-11-16 20:16:27 +0900 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-11-17 21:53:13 +0000 |
commit | 60a0a2fb1e4a7a42d504ba08b47837f562844076 (patch) | |
tree | 271063b121d70e4c1bc82c65e530447edc4c9f0c /meta/classes/kernel.bbclass | |
parent | eced9bcb337087c076e847f8d9cbae95760c28ed (diff) | |
download | poky-60a0a2fb1e4a7a42d504ba08b47837f562844076.tar.gz |
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.
(From OE-Core rev: 1faf66ce0b1f8f5165277161e07e25e672370c3f)
Signed-off-by: Wonmin Jung <wonmin82@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r-- | meta/classes/kernel.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 22c92381c0..681b0be4e1 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass | |||
@@ -587,7 +587,7 @@ addtask savedefconfig after do_configure | |||
587 | 587 | ||
588 | inherit cml1 | 588 | inherit cml1 |
589 | 589 | ||
590 | KCONFIG_CONFIG_COMMAND_append = " HOSTLDFLAGS='${BUILD_LDFLAGS}'" | 590 | KCONFIG_CONFIG_COMMAND_append = " LD='${KERNEL_LD}' HOSTLDFLAGS='${BUILD_LDFLAGS}'" |
591 | 591 | ||
592 | EXPORT_FUNCTIONS do_compile do_install do_configure | 592 | EXPORT_FUNCTIONS do_compile do_install do_configure |
593 | 593 | ||