gpt4 book ai didi

patch - Bitbake 构建错误,Patch 不应用 bitbake 错误?

转载 作者:行者123 更新时间:2023-12-04 02:00:12 25 4
gpt4 key购买 nike

我创建了新问题,因为我觉得上一个问题已经得到解答,这属于一个新的地方。
我跑 bitbake core-image-minimal我收到以下错误:

ERROR: systemd-1_232-r0 do_patch: Command Error: 'quilt --quiltrc /home/rama/repositories/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/systemd/1_232-r0/recipe-sysroot-native/etc/quiltrc push' exited with 0  Output:
Applying patch 0001-systemd-udevd.service.in-set-MountFlags-shared.patch
patching file units/systemd-udevd.service.in
Hunk #1 FAILED at 21.
1 out of 1 hunk FAILED -- rejects in file units/systemd-udevd.service.in
Patch 0001-systemd-udevd.service.in-set-MountFlags-shared.patch does not apply (enforce with -f)
ERROR: systemd-1_232-r0 do_patch: Function failed: patch_do_patch
ERROR: Logfile of failure stored in: /home/rama/repositories/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/systemd/1_232-r0/temp/log.do_patch.5314
ERROR: Task (/home/rama/repositories/poky/meta/recipes-core/systemd/systemd_232.bb:do_patch) failed with exit code '1'
我在文件 meta-toradex/recipes-core/systemd/systemd_%.bbappend中找到了写补丁的地方:
FILESEXTRAPATHS_prepend := "${THISDIR}/systemd:"

SRC_URI += " \
file://rndis.network \
file://0001-systemd-udevd.service.in-set-MountFlags-shared.patch \
"

PACKAGECONFIG_append = " networkd"

do_install_append() {
# The network files need to be in /usr/lib/systemd, not ${systemd_unitdir}...
install -d ${D}${prefix}/lib/systemd/network/
install -m 0644 ${WORKDIR}/rndis.network ${D}${prefix}/lib/systemd/network/
}

FILES_${PN} += " \
${nonarch_base_libdir}/systemd/network \
有人告诉我,我可以:
  • 取下补丁。
  • 手动应用它。

  • 要删除路径,我应该从 SRC_URI 中删除它吗?列表?
    如何手动应用补丁?我试图用谷歌搜索这个,我不太明白如何做到这一点。
    任何帮助表示赞赏,谢谢。

    最佳答案

    当看 repo manifest , meta-toradex未使用,并且在 meta-toradex ,上面写着 oe-core BSP layer (obsolete) .我认为您没有使用正确的环境。
    不过,如果你想检查补丁问题,你可以使用 devshellbitbake -c devshell systemd ,然后输入 quilt push在新控制台中。然后您需要通过查看补丁文件和相应的源代码来分析补丁是否无法应用。
    您不应该修改现有层,并创建自己的层覆盖配方,但如果您愿意,您确实可以删除 SRC_URI 的补丁,然后使用 bitbake -c clean systemd; bitbake systemd应该没问题。
    在 Toradex 开发者中 knowledge-base ,如果你是在做一个新的环境,我觉得你需要看看V2.1 and Later Images部分。

    关于patch - Bitbake 构建错误,Patch 不应用 bitbake 错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47810335/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com