summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe
diff options
context:
space:
mode:
authorJoshua Watt <JPEWhacker@gmail.com>2023-12-20 14:31:19 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-12-23 08:46:00 +0000
commitdf548e981da91e9028f54d0a7e6243d3ce9e3c80 (patch)
treef7d715ab8daf832c44115f37f85444ce2e29a88c /meta/lib/oe
parentdfe9c45264924e0b6a7c3f9ce4574eb9fa554ccc (diff)
downloadpoky-df548e981da91e9028f54d0a7e6243d3ce9e3c80.tar.gz
ipk: Switch to using zstd compression
Converts IPK package generation to use zstd instead of xz. zstd has a much larger compression/speed tradeoff range allowing users to choose what suits them best, and fast decompression speeds. It also continues to support parallel compression as xz did. A new variable called ZSTD_DEFAULTS is provided to set the defaults for places that want to use zstd for compression; the zst image conversion command is also modified to use this. Finally, in order for this to function properly, opkg must include zstd support, so it is enabled all the time with no PACKAGECONFIG to turn it off. (From OE-Core rev: 1bc3e9bbaa670b6128c74c76b4b5264e60ce3463) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe')
-rw-r--r--meta/lib/oe/package_manager/ipk/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oe/package_manager/ipk/__init__.py b/meta/lib/oe/package_manager/ipk/__init__.py
index e6f9c08e2b..8fcbad56aa 100644
--- a/meta/lib/oe/package_manager/ipk/__init__.py
+++ b/meta/lib/oe/package_manager/ipk/__init__.py
@@ -133,7 +133,7 @@ class OpkgDpkgPM(PackageManager):
133 tmp_dir = tempfile.mkdtemp() 133 tmp_dir = tempfile.mkdtemp()
134 current_dir = os.getcwd() 134 current_dir = os.getcwd()
135 os.chdir(tmp_dir) 135 os.chdir(tmp_dir)
136 data_tar = 'data.tar.xz' 136 data_tar = 'data.tar.zst'
137 137
138 try: 138 try:
139 cmd = [ar_cmd, 'x', pkg_path] 139 cmd = [ar_cmd, 'x', pkg_path]
@@ -505,6 +505,6 @@ class OpkgPM(OpkgDpkgPM):
505 "trying to extract the package." % pkg) 505 "trying to extract the package." % pkg)
506 506
507 tmp_dir = super(OpkgPM, self).extract(pkg, pkg_info) 507 tmp_dir = super(OpkgPM, self).extract(pkg, pkg_info)
508 bb.utils.remove(os.path.join(tmp_dir, "data.tar.xz")) 508 bb.utils.remove(os.path.join(tmp_dir, "data.tar.zst"))
509 509
510 return tmp_dir 510 return tmp_dir