]> git.99rst.org Git - openwrt-packages.git/commitdiff
fwupd: allow enabling the devlink plugin
authorDaniel Golle <redacted>
Mon, 13 Jul 2026 11:45:18 +0000 (12:45 +0100)
committerFlorian Eckert <redacted>
Mon, 13 Jul 2026 13:12:20 +0000 (15:12 +0200)
The devlink plugin allows updating firmware of network devices
implementing the kernel devlink interface. It is gated on libmnl,
which was hard-disabled so far. Wire the libmnl meson option to a
new FWUPD_PLUGIN_DEVLINK config symbol, enabled by default, and add
the corresponding libmnl runtime dependency to fwupd-libs.

Signed-off-by: Daniel Golle <redacted>
utils/fwupd/Config.in
utils/fwupd/Makefile

index 2d34beb3c73451070fbe12b393c4eab4f9c1b22d..d4502d944872f6a2e86a275208c23c52754fb6ca 100644 (file)
@@ -36,6 +36,12 @@ config FWUPD_LIBDRM
        help
          Compile fwupd with libdrm support
 
+config FWUPD_PLUGIN_DEVLINK
+       bool "devlink plugin"
+       default y
+       help
+         Compile fwupd with devlink plugin
+
 config FWUPD_PLUGIN_MODEMMANAGER
        bool "ModemManager plugin"
        default y
index 8dd1002f083508030cb19e2bf82d7672ce6e33c8..641ba85833cf135cd4e4dc4cba3aae98fb64a5f3 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=fwupd
 PKG_VERSION:=2.1.6
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=https://github.com/fwupd/fwupd/releases/download/$(PKG_VERSION)
@@ -56,6 +56,7 @@ define Package/fwupd-libs
        +FWUPD_GNUTLS:libgnutls \
        +FWUPD_OPENSSL:libopenssl \
        +FWUPD_LIBDRM:libdrm \
+       +FWUPD_PLUGIN_DEVLINK:libmnl \
        +FWUPD_PLUGIN_MODEMMANAGER:modemmanager \
        +FWUPD_PLUGIN_MODEMMANAGER:libqmi \
        +FWUPD_PLUGIN_MODEMMANAGER:libmbim
@@ -104,7 +105,7 @@ MESON_ARGS += \
        -Dhsi=$(if $(CONFIG_FWUPD_HSI),enabled,disabled) \
        -Dintrospection=disabled \
        -Dlibdrm=$(if $(CONFIG_FWUPD_LIBDRM),enabled,disabled) \
-       -Dlibmnl=disabled \
+       -Dlibmnl=$(if $(CONFIG_FWUPD_PLUGIN_DEVLINK),enabled,disabled) \
        -Dlogind=disabled \
        -Dlvfs=$(if $(CONFIG_FWUPD_LVFS),true,false) \
        -Dman=false \
git clone https://git.99rst.org/PROJECT