From 3cca11034dde95062756934f36fc12df7de21909 Mon Sep 17 00:00:00 2001 From: Gabriel Valcazar Date: Tue, 7 Jan 2025 17:11:07 +0100 Subject: [PATCH] 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 --- meta-digi-dey/conf/distro/dey.conf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/meta-digi-dey/conf/distro/dey.conf b/meta-digi-dey/conf/distro/dey.conf index 8e9ee2d67..8c8048b5a 100644 --- a/meta-digi-dey/conf/distro/dey.conf +++ b/meta-digi-dey/conf/distro/dey.conf @@ -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"