package.bbclass: use bb.utils.break_hardlinks helper

This does the same thing, but is more efficient in case st_nlinks
is (already) 1.

Depends on bitbake commit 7ae93cf40ab91965147055100432961436bce46c .

(From OE-Core rev: 38180b5c1044be13458fb927ad1babae61e4c51f)

Signed-off-by: Rasmus Villemoes <rv@rasmusvillemoes.dk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Rasmus Villemoes
2018-08-21 12:01:44 +02:00
committed by Richard Purdie
parent 04d2f75b4a
commit 9873b21e89

View File

@@ -1024,7 +1024,7 @@ python split_and_strip_files () {
else:
inodes[file_reference] = [file]
# break hardlink
bb.utils.copyfile(file, file)
bb.utils.break_hardlinks(file)
elffiles[file] = elf_file
# Modified the file so clear the cache
cpath.updatecache(file)