diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2023-12-20 14:31:19 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-12-23 08:46:00 +0000 |
commit | df548e981da91e9028f54d0a7e6243d3ce9e3c80 (patch) | |
tree | f7d715ab8daf832c44115f37f85444ce2e29a88c /meta/recipes-devtools/opkg | |
parent | dfe9c45264924e0b6a7c3f9ce4574eb9fa554ccc (diff) | |
download | poky-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/recipes-devtools/opkg')
-rw-r--r-- | meta/recipes-devtools/opkg/opkg_0.6.2.bb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/recipes-devtools/opkg/opkg_0.6.2.bb b/meta/recipes-devtools/opkg/opkg_0.6.2.bb index b2e675ae48..71c0b44aed 100644 --- a/meta/recipes-devtools/opkg/opkg_0.6.2.bb +++ b/meta/recipes-devtools/opkg/opkg_0.6.2.bb | |||
@@ -8,7 +8,7 @@ LICENSE = "GPL-2.0-or-later" | |||
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ | 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ |
9 | file://src/opkg.c;beginline=4;endline=18;md5=d6200b0f2b41dee278aa5fad333eecae" | 9 | file://src/opkg.c;beginline=4;endline=18;md5=d6200b0f2b41dee278aa5fad333eecae" |
10 | 10 | ||
11 | DEPENDS = "libarchive" | 11 | DEPENDS = "libarchive zstd" |
12 | 12 | ||
13 | PE = "1" | 13 | PE = "1" |
14 | 14 | ||
@@ -40,10 +40,10 @@ PACKAGECONFIG[gpg] = "--enable-gpg,--disable-gpg,\ | |||
40 | PACKAGECONFIG[curl] = "--enable-curl,--disable-curl,curl" | 40 | PACKAGECONFIG[curl] = "--enable-curl,--disable-curl,curl" |
41 | PACKAGECONFIG[ssl-curl] = "--enable-ssl-curl,--disable-ssl-curl,curl openssl" | 41 | PACKAGECONFIG[ssl-curl] = "--enable-ssl-curl,--disable-ssl-curl,curl openssl" |
42 | PACKAGECONFIG[sha256] = "--enable-sha256,--disable-sha256" | 42 | PACKAGECONFIG[sha256] = "--enable-sha256,--disable-sha256" |
43 | PACKAGECONFIG[zstd] = "--enable-zstd,--disable-zstd,zstd" | ||
44 | PACKAGECONFIG[libsolv] = "--with-libsolv,--without-libsolv,libsolv" | 43 | PACKAGECONFIG[libsolv] = "--with-libsolv,--without-libsolv,libsolv" |
45 | 44 | ||
46 | EXTRA_OECONF:class-native = "--localstatedir=/${@os.path.relpath('${localstatedir}', '${STAGING_DIR_NATIVE}')} --sysconfdir=/${@os.path.relpath('${sysconfdir}', '${STAGING_DIR_NATIVE}')}" | 45 | EXTRA_OECONF = "--enable-zstd" |
46 | EXTRA_OECONF:append:class-native = " --localstatedir=/${@os.path.relpath('${localstatedir}', '${STAGING_DIR_NATIVE}')} --sysconfdir=/${@os.path.relpath('${sysconfdir}', '${STAGING_DIR_NATIVE}')}" | ||
47 | 47 | ||
48 | do_install:append () { | 48 | do_install:append () { |
49 | install -d ${D}${sysconfdir}/opkg | 49 | install -d ${D}${sysconfdir}/opkg |