yocto: rebuild part of project

nayana picture nayana · Apr 6, 2016 · Viewed 10.8k times · Source

I have a project which is using yocto for building libraries including gstreamer. I found out that I need to patch some gstreamer element thus creating new bitbake recipe with patch..

I usually have to run bitbake with image name as parameter which will rebuild whole yocto (which is quite long):

MACHINE=some_machine nice bitbake yocto-etc-etc

How do I rebuild just that part which I need and not whole yocto? I heard about devtool, but I am not sure how to use that.

Answer

Abhishek Dwivedi picture Abhishek Dwivedi · Jun 27, 2017

you can pass different command to bitbake based on what you need.

To remove temp:

bitbake -c clean gstreamer

To remove temp and sstate cache (I use this most):

bitbake -c cleansstate gstreamer

To remove download as well, and lets begin build starting from do_fetch and all

bitbake -c cleanall gstreamer

Once you are done with either of these clean, which ever suits you, you can simple give build command for the specified:

bitbake gstreamer