mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 18:49:32 +02:00
meta: support tar.zst SDK_ARCHIVE_TYPE
zst is much faster than the default xz, test result on my Precision 5680 machine: Installing a tar.xz SDK takes 37 seconds while tar.zst only takes 17 seconds. Let's introduce support for tar.zst. Also add a sanity check for supported archive types. (From OE-Core rev: 1d22562a89e91f19b818b8f9bc214be941303980) Signed-off-by: Ming Liu <liu.ming50@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -255,6 +255,12 @@ if [ @SDK_ARCHIVE_TYPE@ = "zip" ]; then
|
||||
else
|
||||
rm sdk.zip && exit 1
|
||||
fi
|
||||
elif [ @SDK_ARCHIVE_TYPE@ = "tar.zst" ]; then
|
||||
if [ -z "$(command -v zstd)" ]; then
|
||||
echo "Aborted, zstd is required to extract the SDK archive, please make sure it's installed on your system!"
|
||||
exit 1
|
||||
fi
|
||||
tail -n +$payload_offset "$0"| zstd -T0 -dc | $SUDO_EXEC tar mx -C $target_sdk_dir --checkpoint=.2500 $EXTRA_TAR_OPTIONS || exit 1
|
||||
else
|
||||
if [ -z "$(command -v xz)" ]; then
|
||||
echo "Aborted, xz is required to extract the SDK archive, please make sure it's installed on your system!"
|
||||
|
||||
Reference in New Issue
Block a user