All of lore.kernel.org
 help / color / mirror / Atom feed
* bitbake -c clean for all recipes
@ 2016-04-14 11:18 Vajzovic, Tom
  2016-04-14 16:25 ` Burton, Ross
  2016-04-14 16:26 ` Khem Raj
  0 siblings, 2 replies; 5+ messages in thread
From: Vajzovic, Tom @ 2016-04-14 11:18 UTC (permalink / raw)
  To: yocto

Hi,

What command can I use to do the equivalent of running "bitbake -c clean" (or cleanstate etc) for all recipes that have previously been run?

Thanks,
Tom


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: bitbake -c clean for all recipes
  2016-04-14 11:18 bitbake -c clean for all recipes Vajzovic, Tom
@ 2016-04-14 16:25 ` Burton, Ross
  2016-04-15  7:18   ` Vajzovic, Tom
  2016-04-14 16:26 ` Khem Raj
  1 sibling, 1 reply; 5+ messages in thread
From: Burton, Ross @ 2016-04-14 16:25 UTC (permalink / raw)
  To: Vajzovic, Tom; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 311 bytes --]

On 14 April 2016 at 12:18, Vajzovic, Tom <Tom.Vajzovic@irisys.co.uk> wrote:

> What command can I use to do the equivalent of running "bitbake -c clean"
> (or cleanstate etc) for all recipes that have previously been run?
>

The easy answer here is rm -rf tmp/.  What do you actually want to do?

Ross

[-- Attachment #2: Type: text/html, Size: 731 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: bitbake -c clean for all recipes
  2016-04-14 11:18 bitbake -c clean for all recipes Vajzovic, Tom
  2016-04-14 16:25 ` Burton, Ross
@ 2016-04-14 16:26 ` Khem Raj
  1 sibling, 0 replies; 5+ messages in thread
From: Khem Raj @ 2016-04-14 16:26 UTC (permalink / raw)
  To: Vajzovic, Tom; +Cc: yocto

On Thu, Apr 14, 2016 at 4:18 AM, Vajzovic, Tom
<Tom.Vajzovic@irisys.co.uk> wrote:
> Hi,
>
> What command can I use to do the equivalent of running "bitbake -c clean" (or cleanstate etc) for all recipes that have previously been run?

Thats almost equivalent of rm -rf tmp
since you have sstate it should rebuild really quick.

>
> Thanks,
> Tom
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: bitbake -c clean for all recipes
  2016-04-14 16:25 ` Burton, Ross
@ 2016-04-15  7:18   ` Vajzovic, Tom
  2016-04-15  8:05     ` Andre McCurdy
  0 siblings, 1 reply; 5+ messages in thread
From: Vajzovic, Tom @ 2016-04-15  7:18 UTC (permalink / raw)
  To: yocto

Hi Ross & Raj,

From: Burton, Ross [mailto:ross.burton@intel.com] 
Sent: 14 April 2016 17:25
>
> On 14 April 2016 at 12:18, Vajzovic, Tom <Tom.Vajzovic@irisys.co.uk> wrote:
> What command can I use to do the equivalent of running 
> "bitbake -c clean" (or cleanstate etc) for all recipes that have previously been run?
> 
> The easy answer here is rm -rf tmp/.  

And what about cleanstate or cleanall?

> What do you actually want to do?

What I want to do is be certain that I am in the exact state that I would be in if I had made a clean checkout and then build from scratch.

The particular case that made me ask was that I added BB_GENERATE_MIRROR_TARBALLS = "1" to local.conf and wanted to trigger doing that.  The fact that just running bitbake <imagename> didn't do it made me paranoid about what other changes I might make that wouldn't get picked up, so I want to know how to roll back to set points in the build process and build from there (eg: clean, cleanstate, cleanall and any others that you can tell me about).

Many thanks,
Tom




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: bitbake -c clean for all recipes
  2016-04-15  7:18   ` Vajzovic, Tom
@ 2016-04-15  8:05     ` Andre McCurdy
  0 siblings, 0 replies; 5+ messages in thread
From: Andre McCurdy @ 2016-04-15  8:05 UTC (permalink / raw)
  To: Vajzovic, Tom; +Cc: yocto

On Fri, Apr 15, 2016 at 12:18 AM, Vajzovic, Tom
<Tom.Vajzovic@irisys.co.uk> wrote:
> Hi Ross & Raj,
>
> From: Burton, Ross [mailto:ross.burton@intel.com]
> Sent: 14 April 2016 17:25
>>
>> On 14 April 2016 at 12:18, Vajzovic, Tom <Tom.Vajzovic@irisys.co.uk> wrote:
>> What command can I use to do the equivalent of running
>> "bitbake -c clean" (or cleanstate etc) for all recipes that have previously been run?
>>
>> The easy answer here is rm -rf tmp/.
>
> And what about cleanstate or cleanall?

  clean : roughly the same as removing tmp
  cleansstate : roughly the same as removing tmp and sstate-cache
  cleanall : roughly the same as removing tmp, sstate-cache and downloads

>> What do you actually want to do?
>
> What I want to do is be certain that I am in the exact state that I would be in if I had made a clean checkout and then build from scratch.

Then remove tmp, sstate-cache and downloads. To be certain, remove
your build directory too.

There's not usually any need to do this kind of thing though (apart
from as a learning exercise).

> The particular case that made me ask was that I added BB_GENERATE_MIRROR_TARBALLS = "1" to local.conf and wanted to trigger doing that.  The fact that just running bitbake <imagename> didn't do it made me paranoid about what other changes I might make that wouldn't get picked up, so I want to know how to roll back to set points in the build process and build from there (eg: clean, cleanstate, cleanall and any others that you can tell me about).
>
> Many thanks,
> Tom
>
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-04-15  8:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-14 11:18 bitbake -c clean for all recipes Vajzovic, Tom
2016-04-14 16:25 ` Burton, Ross
2016-04-15  7:18   ` Vajzovic, Tom
2016-04-15  8:05     ` Andre McCurdy
2016-04-14 16:26 ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.