[yocto] local file update vs rebuild

Takashi Matsuzawa tmatsuzawa at xevo.com
Wed Aug 2 08:35:52 PDT 2017


Helli, thank you for your confirmation.
________________________________
From: Burton, Ross <ross.burton at intel.com>
Sent: Wednesday, August 2, 2017 8:47:00 PM
To: Takashi Matsuzawa
Cc: Khem Raj; yocto at yoctoproject.org
Subject: Re: [yocto] local file update vs rebuild

If you modify a recipe then anything that depends on it will be rebuilt.  So changing a file referenced in SRC_URI in a recipe will cause the image to rebuild if you build the image.

Ross

On 2 August 2017 at 12:03, Takashi Matsuzawa <tmatsuzawa at xevo.com<mailto:tmatsuzawa at xevo.com>> wrote:

Hello.

Thank you for your comment.


I want to double check.


xxxx = image name

yyyy = recipe within xxxx


Then, I am not sure if doing below will rebuild yyyy from scratch.


$ bitbake xxxx -c cleansstate

$ bitbake xxxx


Especially, I am doing things like below within my yyyy.


SRC_URI += "file://src/*;subdir=local"


I want to be sure that, if I make modification to the local files (referred to as file://... path within SRC_URI variable of xxxx recipe), the changes are reflected to the final image.

(Not explicitly specifying -c cleansstate to xxxx).

________________________________
From: Khem Raj <raj.khem at gmail.com<mailto:raj.khem at gmail.com>>
Sent: Tuesday, August 1, 2017 3:42 AM
To: Takashi Matsuzawa; yocto at yoctoproject.org<mailto:yocto at yoctoproject.org>
Subject: Re: [yocto] local file update vs rebuild



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<http://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.

>
>


--
_______________________________________________
yocto mailing list
yocto at yoctoproject.org<mailto:yocto at yoctoproject.org>
https://lists.yoctoproject.org/listinfo/yocto


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170802/53fa6076/attachment.html>


More information about the yocto mailing list