[yocto] how to clean all?

Paul Eggleton paul.eggleton at linux.intel.com
Mon Apr 29 01:31:16 PDT 2013


On Monday 29 April 2013 11:11:56 Gaurang Shastri wrote:
> You can run "bitbake -c clean all" to clean everything or simply you can do
> "rm -rf tmp/" directory and you will start from the beginning :)

"bitbake -c clean all" won't work; the syntax would run -c clean on a recipe 
called "all" (which doesn't exist). You may be thinking of "bitbake -c 
cleanall recipename" which cleans the working directory, sstate packages and 
downloaded files for the specified recipe (but not all recipes).

rm -rf tmp/ within your build directory (in the default configuration) will 
delete the output files but won't touch your configuration. If you want to start 
completely from scratch you would also want to delete the sstate-cache 
directory as well, although under normal circumstances there shouldn't be any 
need to do that since the system will work out what it can re-use from the 
cache and what needs to be rebuilt based on any configuration changes.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



More information about the yocto mailing list