]> code.ossystems Code Review - openembedded-core.git/commit
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:02 +0000 (15:27 +0000)
commit6a3b3e501c66733216ac43d3f020cfdb512dd640
treefd70e693ec5fd7d67ddd328f92f5ac8e4655b837
parent89a372840a957e540bed954e629aa68335b3dfe0
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]

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