]> code.ossystems Code Review - openembedded-core.git/commit
kernel: Use hardlinks during do_install for speed
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 8 Nov 2013 15:17:07 +0000 (15:17 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 12 Nov 2013 10:14:01 +0000 (10:14 +0000)
commitf6e98af6b9f6729bb61f17e3b4203c3c79829205
tree5015a9820417044cb16a636d321e4535a7c4f1de
parenteac8cb7cacab7f2fb392128aa5ebc2046ca4a793
kernel: Use hardlinks during do_install for speed

Whilst the comment says we can't do this, its incorrect, install operates
on WORKDIR and its hard for different parts of WORKDIR to be on different
filesystems. Hardlinking instead of copying is therefore a nice performance
gain.

Also, completely skip the Documentation directory (adding a dummy Makefile
to keep make happy) and tweak the other cp commands to link since if we
don't we'd get "this is the same file" type errors from cp for some kernel
versions.

For do_install on linux-yocto, this takes it from 227s -> 84s.

(From OE-Core rev: 0727e510f8533216518563b1533e804a1dc44402)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel.bbclass