【问题标题】:Keeping rootfs with Inheriting rm_work in yocto在 yocto 中通过继承 rm_work 来保持 rootfs
【发布时间】:2018-03-28 05:18:56
【问题描述】:

为了节省磁盘空间,我添加了INHERIT += "rm_work"

我不希望它删除根文件系统文件夹,所以我在 local.conf 中添加了以下行。

RM_WORK_EXCLUDE += "rootfs"

我运行以下命令来获取根文件系统的位置

bitbake -e core-image-minimal | grep ^IMAGE_ROOTFS=

CD 失败,目录不存在。我在这里犯了什么错误。

感谢您的宝贵时间

【问题讨论】:

  • 我认为你需要把RM_WORK_EXCLUDE += "core-image-minimal"改为

标签: embedded-linux yocto rootfs


【解决方案1】:

RM_WORK_EXCLUDE += "rootfs" 将检查任何名为 rootfs 的配方,并在构建时将其从 rm_work 中排除。

在您的情况下,rootfs 是使用 core-image-minimal 配方创建的。所以使用

RM_WORK_EXCLUDE += " core-image_minimal".

【讨论】:

    猜你喜欢
    • 2018-09-05
    • 1970-01-01
    • 2022-01-21
    • 2018-02-07
    • 1970-01-01
    • 2018-06-28
    • 2015-08-03
    • 2016-06-10
    • 2021-11-01
    相关资源
    最近更新 更多