Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to delete deploy/images/beaglebone dir in yocto

In my yocto source deploy/images/beaglebone dir is nearly 100GB so i want to free that memory

Please help me how can I delete that deploy dir either manually or via command line

I want to clean all images(*.tar.gz,*.sdcard, *.ubifs) of previous compilation in yocto deploy/images/beaglebone/
like image 505
yoctotutor.com Avatar asked Dec 08 '22 17:12

yoctotutor.com


2 Answers

Maybe when you are with 100GB in the deploy directory, things have gone too far already.

Check your IMAGE_FSTYPES variable. My experience says it is safe to delete all images of these files that are not symlinks, or symlinks targets. Avoid the last one generated to avoid breaking the last build link, and any related with bootloaders and configuration files, as they could be rarely regenerated.

If you are keeping more than one build with the same set of layers, then you can use a common download folder for builds.

DL_DIR ?= "common_dir_across_all_builds/downloads/"

And afterwards:

To keep your /deploy clean:

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"

For /tmp/work, do not need all the workfiles of all recipes. You can specify which ones you are interested in your development.

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"

like image 111
urnenfeld Avatar answered Jan 18 '23 05:01

urnenfeld


try this from your build root rm -fr deploy/images. Here is a good discussion on the topic

like image 32
Tony Vincent Avatar answered Jan 18 '23 05:01

Tony Vincent