Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keeping rootfs with Inheriting rm_work in yocto

To save disk space, I have added INHERIT += "rm_work"

I don't want it to delete root file system folder, so I added the following line in local.conf.

RM_WORK_EXCLUDE += "rootfs"

I ran the following command to get the location of root file system

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

CD failed with directory not exist. What mistake I am doing here.

Thanks for your time

like image 340
md.jamal Avatar asked Sep 15 '25 00:09

md.jamal


1 Answers

RM_WORK_EXCLUDE += "rootfs" will check for any recipe named rootfs and exclude that from rm_work while building.

In your case rootfs is created using core-image-minimal recipe. So use

RM_WORK_EXCLUDE += " core-image_minimal".
like image 111
Krupal Tharwala Avatar answered Sep 17 '25 20:09

Krupal Tharwala