[OE-core] [PATCH] kernel: Use hardlinks for do_populate_sysroot for speed

Richard Purdie richard.purdie at linuxfoundation.org
Fri Nov 8 15:55:39 UTC 2013


On Fri, 2013-11-08 at 10:41 -0500, Bruce Ashfield wrote:
> On 13-11-08 10:18 AM, Richard Purdie wrote:
> > The kernel tree is large and doesn't need to be copied. Override
> > the default sysroot handling function to use a hardlink copying
> > function in python.
> >
> > This commit also drops the copying of the /lib directory which
> > just contains the kernel modules. We never use those in the sysroot
> > so there is little point in carrying those around.
> >
> > For linux-yocto this takes the do_populate_sysroot time 24s -> 14s.
> 
> Fantastic. One less thing for me to dig into later. I thought this
> was already in place, so I'm pleasantly surprised that there was a
> time savings to be found!

I was somewhat surprised too.

We still need to optimise what we install in do_install since that is
where significant gains can still be made.

Cheers,

Richard




More information about the Openembedded-core mailing list