错误:内核配置无效?

错误:内核配置无效?

我正在尝试使用 bitbake 为 Dreambox 图像构建和编译一些包。使用ubuntu 20.04没问题。但是升级到 21.04 后,我在编译时遇到了这个错误。

Log data follows:| DEBUG: Executing shell function do_compile
| NOTE: make -j 8 ARCH=arm64 CONFIG_MALI_MIDGARD=m CONFIG_MALI_MIDGARD_DVFS=y CONFIG_MALI_PLATFORM_DEVICETREE=y CROSS_COMPILE=aarch64-oe-linux- DEPMOD=echo INSTALL_MOD_PATH=/home/raed/build_image/OpenPli-DM/openpli-dreambox-oe-core/build/tmp/work/dreamtwo-oe-linux/meson-mali-module-bifrost-r12p0/201901-0-gd4a30ca-r0/image M=/home/raed/build_image/OpenPli-DM/openpli-dreambox-oe-core/build/tmp/work/dreamtwo-oe-linux/meson-mali-module-bifrost-r12p0/201901-0-gd4a30ca-r0/meson-mali-module-bifrost-r12p0-201901-0-gd4a30ca/bifrost/r12p0/kernel/drivers/gpu/arm/midgard -C /home/raed/build_image/OpenPli-DM/openpli-dreambox-oe-core/build/tmp/work-shared/dreamtwo/kernel-source EXTRA_CFLAGS=-DCONFIG_MALI_PLATFORM_DEVICETREE -DCONFIG_MALI_MIDGARD_DVFS -DCONFIG_MALI_BACKEND=gpu
| make: Entering directory '/home/raed/build_image/OpenPli-DM/openpli-dreambox-oe-core/build/tmp/work-shared/dreamtwo/kernel-source'
| make[1]: Entering directory '/home/raed/build_image/OpenPli-DM/openpli-dreambox-oe-core/build/tmp/work-shared/dreamtwo/kernel-build-artifacts'
| 
|   ERROR: Kernel configuration is invalid.
|          include/generated/autoconf.h or include/config/auto.conf are missing.
|          Run 'make oldconfig && make prepare' on kernel src to fix it.
|

我尝试了一些解决方案,但没有运气解决它!

当前内核是(5.11.0-34-generic)

答案1

我在yocto中编译自己的内核模块时遇到了和你同样的问题。

我通过在我自己的 bb 文件中添加“inherit module-base”来解决这个问题。

有关更多详细信息,您可以查看 poky/meta/class/ 中的 module.bbclass,并且您可以在以下 url 中找到 module-base 的定义: https://www.yoctoproject.org/docs/1.7/ref-manual/ref-manual.pdf

相关内容