diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-08-14 17:23:10 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-08-15 09:44:33 +0100 |
commit | a1b4b7c0b493968a6f9d519a3a37d87466432f0d (patch) | |
tree | ed38eb9155d544ce0cd6afecbb66583230813b09 /meta/classes/sstate.bbclass | |
parent | 899a3694dea8dc43dcba0b1d1e0aafb446fbba20 (diff) | |
download | poky-a1b4b7c0b493968a6f9d519a3a37d87466432f0d.tar.gz |
sstate/lib.oe.path: Ensure file sparseness is preserved
Files when restored from sstate were missing their sparseness. Fix up various
functions to preserve this and make things more deterministic.
(From OE-Core rev: 055402e5504f041c346571e243c7cf0894955cad)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/sstate.bbclass')
-rw-r--r-- | meta/classes/sstate.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index cd42db665c..402b9e9c5c 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass | |||
@@ -721,9 +721,9 @@ sstate_create_package () { | |||
721 | TFILE=`mktemp ${SSTATE_PKG}.XXXXXXXX` | 721 | TFILE=`mktemp ${SSTATE_PKG}.XXXXXXXX` |
722 | 722 | ||
723 | # Use pigz if available | 723 | # Use pigz if available |
724 | OPT="-cz" | 724 | OPT="-czS" |
725 | if [ -x "$(command -v pigz)" ]; then | 725 | if [ -x "$(command -v pigz)" ]; then |
726 | OPT="-I pigz -c" | 726 | OPT="-I pigz -cS" |
727 | fi | 727 | fi |
728 | 728 | ||
729 | # Need to handle empty directories | 729 | # Need to handle empty directories |