poky/scripts/lib/devtool
Michael Tretter fdc6ef9673 devtool: deploy-target: Fix size calculation for hard links
If a package contains hard links to a file, the file size is added for
each hard link instead of once for the file. Therefore, the calculated
size may be much larger than the actual package size.

For example, the mesa-megadriver package contains several hard links to
the same library.

Keep track of the inode numbers when listing the files that are
installed and use the actual size only for the first occurrence of an
inode. All further hard links to the same inode are added to the file
list, but accounted with size 0.

All file names need to be added to the file list, because the list is
used for preserving the files/hard links on the target.

(From OE-Core rev: 17e92572278980d1a7f06de9d72c68baf57698f1)

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-09-02 16:00:46 +01:00
..
__init__.py devtool: use -f and don't use --exclude-standard when adding files to workspace 2020-06-04 13:27:29 +01:00
build_image.py meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
build_sdk.py meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
build.py devtool: build: Also run deploy for devtool build if applicable 2019-08-21 21:52:59 +01:00
deploy.py devtool: deploy-target: Fix size calculation for hard links 2020-09-02 16:00:46 +01:00
export.py meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
import.py meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
menuconfig.py devtool: provide support for devtool menuconfig command 2019-07-17 09:36:34 +01:00
package.py meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
runqemu.py meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
sdk.py meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
search.py meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
standard.py devtool: expand SRC_URI when guessing recipe update mode 2020-08-27 08:28:03 +01:00
upgrade.py devtool: default to empty string, if LIC_FILES_CHKSUM is not available 2020-07-08 10:37:12 +01:00
utilcmds.py meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00