[yocto] local file update vs rebuild

Khem Raj raj.khem at gmail.com
Mon Jul 31 11:42:01 PDT 2017



On 7/31/17 4:39 AM, Takashi Matsuzawa wrote:
> Hello.
> I am uncertain about do_clean behavior with local files.
> 
> 
> Say, I have local files referred by my recipe, and I have made changes to the files referred.
> (Note, there is no change in my xxxx.bb file itself.)
> 
> 
>> SRC_URI += "file://src/*;subdir=local"
> 
> 
> What makes those changed files reflected to the build?
> Do I need do_cleanall?  do_cleansstate or maybe do_clean is enough?
> 
> 
> According to the document
> 
> 
>> do_clean
>> do_unpack task forward (i.e. do_unpack, do_configure, do_compile, do_install, and do_package).
>> if no changes have been made and the recipe is rebuilt after cleaning, output files are simply restored from the sstate cache. 
> 
> 
> I want to avoid doing do_cleanall often, and I would like to tell bitbake that my recipe needs rebuild at the same time not rebuilding others.
> But at the same time I want to avoid building my single explicity.
> I just want to build the image name as target.

I think ccleansstate should be good.

> 
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: OpenPGP digital signature
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170731/e818f611/attachment.pgp>


More information about the yocto mailing list