Discussion:
how to clean all?
Peter Tornel
2013-04-27 14:39:17 UTC
Permalink
Hello,

Sometimes I feel the need to clean everything before building, but I don't want tojust rm my project directory since I want to keep my conf files.  What bitbake command can I run to get back to a pristine state (same as after creating project directory and modifying my conf files)? 


Regards,

Peter
Gaurang Shastri
2013-04-29 05:41:56 UTC
Permalink
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 :)

//Gaurang Shastri
Post by Peter Tornel
Hello,
Sometimes I feel the need to clean everything before building, but I don't
want to just rm my project directory since I want to keep my conf files. What
bitbake command can I run to get back to a pristine state (same as after
creating project directory and modifying my conf files)?
Regards,
Peter
_______________________________________________
yocto mailing list
https://lists.yoctoproject.org/listinfo/yocto
Paul Eggleton
2013-04-29 08:31:16 UTC
Permalink
Post by Gaurang Shastri
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
Loading...