1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 17:19:20 +00:00

lib/oe/package.py: 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: a09f8e32044c8daec2d2fb3ff0e830c21402df6e)

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:45 +02:00
committed by Richard Purdie
parent 9873b21e89
commit 7b23f6124b
+1 -1
View File
@@ -159,7 +159,7 @@ def strip_execs(pn, dstdir, strip_cmd, libdir, base_libdir, d, qa_already_stripp
else:
# break hardlinks so that we do not strip the original.
inodes[inodecache[file]] = file
bb.utils.copyfile(file, file)
bb.utils.break_hardlinks(file)
elffiles[file] = elf_file
#