kernel build error
lxy1579 opened this issue · 3 comments
Describe the bug
some kernel configuration options are disabled after do_configure.
To Reproduce
Steps to reproduce the behavior:
bitbake virtual/kernel -c configure
Expected behavior
git diff .oldconfig .config
-c
option can't use with '-fuse-ld=lld'
we do not use clang to compile by default for kernel it still uses gcc and binutils. Maybe you can disable lld to build kenrel.
KERNEL_LD = "${CCACHE}${HOST_PREFIX}ld.bfd ${HOST_LD_KERNEL_ARCH}"
It will be OK if I compile kernel by removing -fuse-ld=lld
from KERNEL_CC, but I also set KERNEL_LD = "${CCACHE}${HOST_PREFIX}ld.lld". Verify that the final image(vmlinux) is also generated through ld.lld link
we do not use clang to compile by default for kernel it still uses gcc and binutils. Maybe you can disable lld to build kenrel.
KERNEL_LD = "${CCACHE}${HOST_PREFIX}ld.bfd ${HOST_LD_KERNEL_ARCH}"
Is there a plan to support LLVM=1
parameter to kernel build?