libarchive: remove more unneeded packageconfigs to reduce recovery image size
We depend on libarchive so that swupdate can perform updates with .tar.gz
files, but by default, libarchive is configured to support a lot of additional
features that pull in even more dependencies. This increases the size of the
recovery image, which barely fits on platforms with limited internal storage
like the ccimx6ul. We already removed zstd support to mitigate this, but the
image size increased again after adding imx-kobs to it in commit
aa2480d1de.
Since libarchive isn't used by any other package in our system, remove the
configurations that bloat the recovery image and are not needed at all for
our file update use case. Note that removing the "lzo" packageconfig doesn't
remove its respective library from the image because mtd-utils also depends on
it, but it still reduces the size of libarchive. On the ccimx6ul, this removes
193 KiB worth of libraries and trims libarchive down by 20.5 KiB in the
recovery image.
https://onedigi.atlassian.net/browse/DEL-8819
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
This commit is contained in:
parent
cef235f61d
commit
215ab5fedf
|
|
@ -85,7 +85,9 @@ PACKAGECONFIG:append:class-target:pn-qtbase = " examples"
|
|||
PACKAGECONFIG:append:class-target:pn-qtdeclarative = " examples"
|
||||
PACKAGECONFIG:append:class-target:pn-qtquick3d = " examples"
|
||||
PACKAGECONFIG:append:class-target:pn-qtwebengine = " examples"
|
||||
# libarchive is using "zstd" in its package config.
|
||||
# This is not used in the swupdate that is the only consumer of the libarchive package.
|
||||
# Remove it to reduce the size of the recovery image.
|
||||
PACKAGECONFIG:remove:class-target:pn-libarchive = " zstd"
|
||||
|
||||
# Remove unnecessary libarchive configurations to trim down the recovery image,
|
||||
# while keeping the "zlib" one to make sure our file update mechanism still
|
||||
# works (libarchive needs to be able to handle .tar.gz files, every other
|
||||
# format can be omitted).
|
||||
PACKAGECONFIG:remove:class-target:pn-libarchive = "bz2 xz lzo zstd acl xattr"
|
||||
|
|
|
|||
Loading…
Reference in New Issue