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

Richard Purdie richard.purdie at linuxfoundation.org
Mon Nov 11 09:45:13 UTC 2013


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.

Cheers,

Richard





More information about the Openembedded-core mailing list