【问题标题】:Build error while copying kernel config to the source tree将内核配置复制到源代码树时生成错误
【发布时间】:2020-10-14 06:08:24
【问题描述】:

我正在尝试编译defconfig文件bcm2711_defconfig,所以我试图将bcm2711_defconfig文件复制到内核源路径,kernel-source/arch/arm/configs/ 请让我知道如何克服错误。以下是配方文件内容。

文件名:linux-raspberrypi_4.14.bbappend

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI += "file://bcm2711_defconfig"

do_preconfigure_prepend(){
    cp ${WORKDIR}/bcm2711_defconfig ${S}/arch/${ARCH}/configs/
}

KBUILD_DEFCONFIG_raspberrypi4 ?= "bcm2711_defconfig""

构建错误: ERROR: linux-raspberrypi-1_4.14.68+gitAUTOINC+8c8666ff6c-r0 do_kernel_metadata: A KBUILD_DECONFIG '/bcm2711_defconfig' was specified, but not present in the source tree

【问题讨论】:

  • 您尝试过以下解决方案吗?如果您的问题仍然存在,请提供更多详细信息

标签: raspberry-pi3 yocto raspberry-pi4


【解决方案1】:

do_kernel_metadata 任务在do_unpack 之后和do_patch 之前执行,因此请尝试在do_unpack 任务末尾复制您的defconfig,如下所示,

do_unpack_append(){
    cp ${WORKDIR}/bcm2711_defconfig ${S}/arch/${ARCH}/configs/
}

【讨论】:

    猜你喜欢
    • 2013-06-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-11-22
    • 1970-01-01
    • 2018-12-15
    • 2019-11-20
    相关资源
    最近更新 更多