gpt4 book ai didi

yocto - 如何在 yocto 中删除 deploy/images/beaglebone 目录

转载 作者:行者123 更新时间:2023-12-01 07:36:39 26 4
gpt4 key购买 nike

在我的 yocto 源中 deploy/images/beaglebone dir 将近 100GB,所以我想释放该内存

请帮助我如何手动或通过命令行删除该部署目录

I want to clean all images(*.tar.gz,*.sdcard, *.ubifs) of previous compilation in yocto deploy/images/beaglebone/

最佳答案

也许当您在部署目录中有 100GB 时,事情已经走得太远了。

检查您的 IMAGE_FSTYPES 多变的。我的经验表明,删除这些不是符号链接(symbolic link)或符号链接(symbolic link)目标的文件的所有图像是安全的。避免生成最后一个,以避免破坏最后一个构建链接,以及任何与引导加载程序和配置文件相关的内容,因为它们很少会重新生成。

如果您要保留多个具有相同层集的构建,则可以使用通用下载文件夹进行构建。

DL_DIR ?= "common_dir_across_all_builds/downloads/"



之后:

保持/deploy 干净:

RM_OLD_IMAGE: Reclaims disk space by removing previously built versions of the same image from the images directory pointed to by the DEPLOY_DIR variable.Set this variable to "1" in your local.conf file to remove these images:

RM_OLD_IMAGE = "1"

IMAGE_FSTYPES Remove the image types that you do not plan to use, you can always enable a particular one when you need it:

IMAGE_FSTYPES_remove = "tar.bz2"

IMAGE_FSTYPES_remove = "rpi-sdimg"

IMAGE_FSTYPES_remove = "ext3"



对于/tmp/work,不需要所有配方的所有工作文件。您可以指定您对开发感兴趣的那些。

RM_WORK_EXCLUDE: With rm_work enabled, this variable specifies a list of recipes whose work directories should not be removed. See the "rm_work.bbclass" section for more details.

INHERIT += "rm_work"

RM_WORK_EXCLUDE += "home-assistant widde"

关于yocto - 如何在 yocto 中删除 deploy/images/beaglebone 目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45627686/

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