Patchwork Kernel recompile if "rm_work" defined

login
register
mail settings
Submitter Richard Purdie
Date Nov. 18, 2013, 9:34 p.m.
Message ID <1384810440.6460.272.camel@ted>
Download mbox | patch
Permalink /patch/61923/
State New
Headers show

Comments

Richard Purdie - Nov. 18, 2013, 9:34 p.m.
On Mon, 2013-11-18 at 21:43 +0200, Yevhen Kyriukha wrote:
> Hi,
> 
> When I set
> INHERIT += "rm_work"
> in my local.conf to save some space my kernel now recompiles each time
> I run bitbake.
> 
> How to fix this without removing "rm_work" from config?

Like this. I keep suggesting someone send me the patch but it never
seems to happen...
Yevhen Kyriukha - Nov. 20, 2013, 11:54 a.m.
2013/11/18 Richard Purdie <richard.purdie@linuxfoundation.org>:
> On Mon, 2013-11-18 at 21:43 +0200, Yevhen Kyriukha wrote:
>> Hi,
>>
>> When I set
>> INHERIT += "rm_work"
>> in my local.conf to save some space my kernel now recompiles each time
>> I run bitbake.
>>
>> How to fix this without removing "rm_work" from config?
>
> Like this. I keep suggesting someone send me the patch but it never
> seems to happen...
>
> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
> index 383043e..ff99c76 100644
> --- a/meta/classes/kernel.bbclass
> +++ b/meta/classes/kernel.bbclass
> @@ -146,7 +146,6 @@ do_bundle_initramfs () {
>                 fi
>         fi
>  }
> -do_bundle_initramfs[nostamp] = "1"
>
>  python do_devshell_prepend () {
>      os.environ["LDFLAGS"] = ''
>

Thanks for the answer but it didn't help.
Kernel still rebuilds.

Best regards,
Yevhen
Richard Purdie - Nov. 20, 2013, 4:53 p.m.
On Wed, 2013-11-20 at 13:54 +0200, Yevhen Kyriukha wrote:
> 2013/11/18 Richard Purdie <richard.purdie@linuxfoundation.org>:
> > On Mon, 2013-11-18 at 21:43 +0200, Yevhen Kyriukha wrote:
> >> Hi,
> >>
> >> When I set
> >> INHERIT += "rm_work"
> >> in my local.conf to save some space my kernel now recompiles each time
> >> I run bitbake.
> >>
> >> How to fix this without removing "rm_work" from config?
> >
> > Like this. I keep suggesting someone send me the patch but it never
> > seems to happen...
> >
> > diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
> > index 383043e..ff99c76 100644
> > --- a/meta/classes/kernel.bbclass
> > +++ b/meta/classes/kernel.bbclass
> > @@ -146,7 +146,6 @@ do_bundle_initramfs () {
> >                 fi
> >         fi
> >  }
> > -do_bundle_initramfs[nostamp] = "1"
> >
> >  python do_devshell_prepend () {
> >      os.environ["LDFLAGS"] = ''
> >
> 
> Thanks for the answer but it didn't help.
> Kernel still rebuilds.

Right, the above is the first step in solving this but there is another
issue, the do_bundle_initramfs task is not covered by sstate. We need to
fix the second issue too.

Cheers,

Richard

Patch

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 383043e..ff99c76 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -146,7 +146,6 @@  do_bundle_initramfs () {
                fi
        fi
 }
-do_bundle_initramfs[nostamp] = "1"
 
 python do_devshell_prepend () {
     os.environ["LDFLAGS"] = ''