Bug 4922

Summary: There is no clean option for bitbake or a separate util
Product: [Build System, Metadata & Runtime] BitBake Reporter: Laszlo Papp <lpapp>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Low CC: ionel.badisor, net147, poky.bs.watcher, poky.watcher, sgw
Version: unspecified   
Target Milestone: Future   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Laszlo Papp 2013-07-26 07:54:15 UTC
I would like to be able to use a tool or an option for the existing bitbake to clean up the build folder in a more professional way than "rm -r" for the selected folders.

There could be even a two-layer support with something like "full/distclean" which wipes everything away, maybe except the config or even that.
Comment 1 Ionel Badisor 2013-08-30 07:04:31 UTC
+1
Comment 2 Laszlo Papp 2014-04-17 10:45:17 UTC
There is something somewhat relevant existing these days:

http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#var-RM_OLD_IMAGE
Comment 3 Richard Purdie 2016-04-13 15:22:56 UTC
Since we have rm_work and RM_OLD_IMAGE we have the start of this functionality. If we need more, we can open specific bugs for those issues but I don't think we need a wrapper for rm.