kernel.bbclass: test for hardlinks before installing
authorBruce Ashfield <bruce.ashfield@windriver.com>
Thu, 14 Nov 2013 16:55:26 +0000 (11:55 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 15 Nov 2013 15:27:08 +0000 (15:27 +0000)
commita523f2396f9aa4d24034eb9eb75ce0e2ef60e7e3
tree43a2cd21d9a479b36fc4064cdb02b1146fc80304
parent2d388a36fb54307ae1f6e1df5f41347315c8b56c
kernel.bbclass: test for hardlinks before installing

commit df564c4 [kernel: Use hardlinks for do_populate_sysroot for speed]
does indeed speed up the build, but it also means that the KERNEL_OUPUT
and KERNEL_IMAGETYPE may be hardlinks.

If they are hardlinks, install complains that they are actually the same
file and stops the build. We can easily test and avoid the copy if the
file is already in place.

[YOCTO #5527]

(From OE-Core rev: 6a3b3e501c66733216ac43d3f020cfdb512dd640)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel.bbclass