All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kernel: Clean DEPLOYDIR before do_deploy runs
@ 2016-01-25 15:07 Richard Purdie
  2016-01-25 15:47 ` Bruce Ashfield
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Purdie @ 2016-01-25 15:07 UTC (permalink / raw)
  To: openembedded-core; +Cc: Ashfield, Bruce

If we don't do this, the deploy sstate object contains an every
increasing number of modules tarballs and kernel images, one per
execution of "-c deploy -f".

Cleaning the directory before we start makes things much tidier.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index dee6f7d..f37affc 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -511,6 +511,7 @@ kernel_do_deploy() {
 		ln -sf ${initramfs_base_name}.bin ${initramfs_symlink_name}.bin
 	fi
 }
+do_deploy[cleandirs] = "${DEPLOYDIR}"
 do_deploy[dirs] = "${DEPLOYDIR} ${B}"
 do_deploy[prefuncs] += "package_get_auto_pr"
 




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

* Re: [PATCH] kernel: Clean DEPLOYDIR before do_deploy runs
  2016-01-25 15:07 [PATCH] kernel: Clean DEPLOYDIR before do_deploy runs Richard Purdie
@ 2016-01-25 15:47 ` Bruce Ashfield
  2016-01-25 15:52   ` Richard Purdie
  0 siblings, 1 reply; 4+ messages in thread
From: Bruce Ashfield @ 2016-01-25 15:47 UTC (permalink / raw)
  To: Richard Purdie, openembedded-core

On 2016-01-25 10:07 AM, Richard Purdie wrote:
> If we don't do this, the deploy sstate object contains an every
> increasing number of modules tarballs and kernel images, one per
> execution of "-c deploy -f".
>

Stupid question, since my sstate/deploy foo is weak at times.
Does this mean that only a single set of modules + kernel images
will be in tmp/deploy ? Or is it only sstate that is being
cleaned ?

I sometimes need multiple copies around for debug purposes, so
I'm wondering if that is still possible with this change ?

Bruce

> Cleaning the directory before we start makes things much tidier.
>
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
>
> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
> index dee6f7d..f37affc 100644
> --- a/meta/classes/kernel.bbclass
> +++ b/meta/classes/kernel.bbclass
> @@ -511,6 +511,7 @@ kernel_do_deploy() {
>   		ln -sf ${initramfs_base_name}.bin ${initramfs_symlink_name}.bin
>   	fi
>   }
> +do_deploy[cleandirs] = "${DEPLOYDIR}"
>   do_deploy[dirs] = "${DEPLOYDIR} ${B}"
>   do_deploy[prefuncs] += "package_get_auto_pr"
>
>
>



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

* Re: [PATCH] kernel: Clean DEPLOYDIR before do_deploy runs
  2016-01-25 15:47 ` Bruce Ashfield
@ 2016-01-25 15:52   ` Richard Purdie
  2016-01-25 16:14     ` Bruce Ashfield
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Purdie @ 2016-01-25 15:52 UTC (permalink / raw)
  To: Bruce Ashfield, openembedded-core

On Mon, 2016-01-25 at 10:47 -0500, Bruce Ashfield wrote:
> On 2016-01-25 10:07 AM, Richard Purdie wrote:
> > If we don't do this, the deploy sstate object contains an every
> > increasing number of modules tarballs and kernel images, one per
> > execution of "-c deploy -f".
> > 
> 
> Stupid question, since my sstate/deploy foo is weak at times.
> Does this mean that only a single set of modules + kernel images
> will be in tmp/deploy ? Or is it only sstate that is being
> cleaned ?

One side effect is that it will remove the older copies. The older
copies were being built into each new sstate object which was growing
huge.

> I sometimes need multiple copies around for debug purposes, so
> I'm wondering if that is still possible with this change ?

You'd need to archive them before running another build since this
effectively cleans up the older copies now. This is due to the system
removing the old sstate "object", then installing a new one to replace
it. You can't keep the old ones around easily as they're named to
conflict (and hence replace each other).

Cheers,

Richard


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

* Re: [PATCH] kernel: Clean DEPLOYDIR before do_deploy runs
  2016-01-25 15:52   ` Richard Purdie
@ 2016-01-25 16:14     ` Bruce Ashfield
  0 siblings, 0 replies; 4+ messages in thread
From: Bruce Ashfield @ 2016-01-25 16:14 UTC (permalink / raw)
  To: Richard Purdie, openembedded-core

On 2016-01-25 10:52 AM, Richard Purdie wrote:
> On Mon, 2016-01-25 at 10:47 -0500, Bruce Ashfield wrote:
>> On 2016-01-25 10:07 AM, Richard Purdie wrote:
>>> If we don't do this, the deploy sstate object contains an every
>>> increasing number of modules tarballs and kernel images, one per
>>> execution of "-c deploy -f".
>>>
>>
>> Stupid question, since my sstate/deploy foo is weak at times.
>> Does this mean that only a single set of modules + kernel images
>> will be in tmp/deploy ? Or is it only sstate that is being
>> cleaned ?
>
> One side effect is that it will remove the older copies. The older
> copies were being built into each new sstate object which was growing
> huge.
>
>> I sometimes need multiple copies around for debug purposes, so
>> I'm wondering if that is still possible with this change ?
>
> You'd need to archive them before running another build since this
> effectively cleans up the older copies now. This is due to the system
> removing the old sstate "object", then installing a new one to replace
> it. You can't keep the old ones around easily as they're named to
> conflict (and hence replace each other).

Ack'd. I'll have to remember to copy out what I need! :)

Bruce

>
> Cheers,
>
> Richard
>



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

end of thread, other threads:[~2016-01-25 16:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-25 15:07 [PATCH] kernel: Clean DEPLOYDIR before do_deploy runs Richard Purdie
2016-01-25 15:47 ` Bruce Ashfield
2016-01-25 15:52   ` Richard Purdie
2016-01-25 16:14     ` Bruce Ashfield

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.