dey.conf: remove rsvg gstreamer plugin to prevent rust compiler overhead

This plugin is optional and, in platforms where rust isn't used anywhere else,
it adds a lot of overhead during the build process. Remove the plugin to
prevent said overhead when possible.

Alter gstreamer1.0-plugin-bad's PACKAGECONFIG from a single place so the
change applies globally (imx and stm platforms use different gstreamer recipes
and versions).

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
This commit is contained in:
Gabriel Valcazar 2025-01-07 17:11:07 +01:00
parent 007c84d684
commit 3cca11034d
1 changed files with 8 additions and 0 deletions

View File

@ -98,3 +98,11 @@ PACKAGECONFIG:remove:class-target:pn-libarchive = "bz2 xz lzo zstd acl xattr"
# when udev support is disabled, so remove it to avoid dragging a bunch of
# dependencies into the recovery and trustfence initramfs.
PACKAGECONFIG:remove:class-target:pn-cryptsetup = "udev"
# gstreamer's rsvg plugin is enabled by default in all of our platforms where
# gstreamer1.0-plugins-bad is used, which is most of them. This plugin depends
# on librsvg, a small library implemented in Rust. For some of our platforms,
# it's the only package in our default DEY images that requires bitbake to
# generate the Rust compiler, which is a lengthy process. Disable the gstreamer
# rsvg plugin to remove this dependency and the Rust compiler overhead.
PACKAGECONFIG:remove:pn-gstreamer1.0-plugins-bad = "rsvg"