diff options
author | Robert Marko <robimarko@gmail.com> | 2024-04-08 18:38:51 +0200 |
---|---|---|
committer | Robert Marko <robimarko@gmail.com> | 2024-04-09 18:39:36 +0200 |
commit | 204823ac287998c8725329ab75333ed1098d3cd8 (patch) | |
tree | ba0c27820d9c162b7c29dca5de46ad6017289adc /scripts | |
parent | 1ae3c53466942e05d2ab91c9432c65156f7228a1 (diff) | |
download | openwrt-204823ac287998c8725329ab75333ed1098d3cd8.tar.gz openwrt-204823ac287998c8725329ab75333ed1098d3cd8.tar.bz2 openwrt-204823ac287998c8725329ab75333ed1098d3cd8.zip |
scripts/dl_github_archive: use tar -I for ZSTD
Instead of relying on env variables for setting the ZSTD compression
configuration we can simply do what we do for IB, SDK and the rest and
use tar -I to pass "zstd -T0 --ultra -20" directly.
This makes it rather clear what is being done and allows to drop the
zstd CLI max level override as its usually capped at level 19.
Signed-off-by: Robert Marko <robimarko@gmail.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/dl_github_archive.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/dl_github_archive.py b/scripts/dl_github_archive.py index 744c441ca7..570ed3c629 100755 --- a/scripts/dl_github_archive.py +++ b/scripts/dl_github_archive.py @@ -139,9 +139,7 @@ class Path(object): if ts is not None: args.append('--mtime=@%d' % ts) if into.endswith('.zst'): - envs['ZSTD_CLEVEL'] = '20' - envs['ZSTD_NBTHREADS'] = '0' - args.append('--zstd') + args.append('-I zstd -T0 --ultra -20') elif into.endswith('.xz'): envs['XZ_OPT'] = '-7e' args.append('-J') |