Skip to contentSkip to conversation

how to clean all?

DISCUSSION Peter Tornel 3 participants 3 messages Apr 27, 2013 – Apr 29, 2013

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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

Quoted 18 lines · 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
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

#2 lore raw
Quoted 2 lines · 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

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre