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

Hans Beckérus hans.beckerus at gmail.com
Mon Nov 11 09:47:04 UTC 2013


On Mon, Nov 11, 2013 at 10:45 AM, Richard Purdie
<richard.purdie at linuxfoundation.org> wrote:
> On Mon, 2013-11-11 at 09:06 +0100, Hans Beckérus wrote:
>> I am having some trouble with these patches :( The new approach is
>> using the '-n' flag to the 'cp' command.
>> That is not supported on our SuSE11 based system. To be honest, I do
>> not know how portable '-n' is?
>> Some system have it, others seems to provide '-u' instead. I guess by
>> removing '-n' part of the performance gain is lost?
>> Would it be possible to test for error from the 'cp' command and if it
>> fails try '-u' instead (and cache the result)? Or maybe
>> even better, make this configurable in local.conf (or the distro) for
>> the build platforms that does not support  '-n' but can
>> instead fall-back to using '-u'. From what I can tell most systems
>> support  one or the other, but never both.
>
> http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=rpurdie/t2&id=276b9df3588ecd438c3e2f502d56cd6b9fb24676
>
> Thankfully the above works just as well. I used -n to get rid of an
> error, then added -l for efficiency. We can get away just with -l.
>
Great! Will try it asap.
Btw, cp was from coreutils back in 2008.

cp (GNU coreutils) 6.12
Copyright (C) 2008 Free Software Foundation, Inc.

Thanks.
Hans

> Cheers,
>
> Richard
>
>



More information about the Openembedded-core mailing list