繁体   English   中英

如何在我的自定义 linux kernel 配方中指定 kernel 配置

[英]How to specify kernel configuration in my custom linux kernel recipe

我尝试为最新稳定的 kernel 编写自定义 Linux Kernel

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_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_URI 中包含您自己的SRC_URI

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM