如何在自定义linux内核配方中指定内核配置
我试图为最新的稳定内核编写一个定制的Linux内核配方如何在自定义linux内核配方中指定内核配置,linux,linux-kernel,embedded-linux,yocto,Linux,Linux Kernel,Embedded Linux,Yocto,我试图为最新的稳定内核编写一个定制的Linux内核配方 DESCRIPTION = "Latest Stable Linux Kernel" SECTION = "kernel" LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" inherit kernel S = "${WORKDIR}/linux-5.6.15"
DESCRIPTION = "Latest Stable Linux Kernel"
SECTION = "kernel"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
inherit kernel
S = "${WORKDIR}/linux-5.6.15"
SRC_URI = "https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.6.15.tar.xz;name=kernel"
SRC_URI[kernel.md5sum] = "41f02b34dbb66ffa6b71bb3e2361e94d"
SRC_URI[kernel.sha256sum] = "65ab799393d490463c610270634874dfcb66440a312837d04b51bbb69323034e"
当我尝试构建这个配方时,我认为它会在配置阶段失败,因为没有提供.config文件
我犯了什么错误吗?如何指定我们的配置文件
kernel.bbclass
在其do\u configure任务中包含以下信息:
# Copy defconfig to .config if .config does not exist. This allows
# recipes to manage the .config themselves in do_configure_prepend().
if [ -f "${WORKDIR}/defconfig" ] && [ ! -f "${B}/.config" ]; then
cp "${WORKDIR}/defconfig" "${B}/.config"
fi
您需要在SRC\u URI
中包含您自己的defconfig