package/iwd: add optional iwmon support

- add option for iwmon support
- enable linux kernel CONFIG_NLMON option needed for iwmon

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
Peter Seiderer
2025-08-09 23:41:50 +02:00
committed by Julien Olivain
parent b7f7bd44f9
commit 7cfb33987a
2 changed files with 19 additions and 0 deletions

View File

@@ -13,6 +13,15 @@ config BR2_PACKAGE_IWD
https://iwd.wiki.kernel.org/
if BR2_PACKAGE_IWD
config BR2_PACKAGE_IWD_IWMON
bool "iwmon"
help
iwmon - Internet wireless monitor utility
endif
comment "iwd needs a toolchain w/ threads, wchar, headers >= 4.12"
depends on BR2_USE_MMU # dbus
depends on BR2_TOOLCHAIN_HAS_SYNC_4 # ell

View File

@@ -41,6 +41,15 @@ else
IWD_RESOLV_SERVICE = resolvconf
endif
ifeq ($(BR2_PACKAGE_IWD_IWMON),y)
IWD_CONF_OPTS += --enable-monitor
define IWD_LINUX_CONFIG_FIXUP_MONITOR
$(call KCONFIG_ENABLE_OPT,CONFIG_NLMON)
endef
else
IWD_CONF_OPTS += --disable-monitor
endif
define IWD_INSTALL_CONFIG_FILE
$(INSTALL) -D -m 644 package/iwd/main.conf $(TARGET_DIR)/etc/iwd/main.conf
$(SED) 's,__RESOLV_SERVICE__,$(IWD_RESOLV_SERVICE),' $(TARGET_DIR)/etc/iwd/main.conf
@@ -76,6 +85,7 @@ define IWD_LINUX_CONFIG_FIXUPS
$(call KCONFIG_ENABLE_OPT,CONFIG_PKCS7_MESSAGE_PARSER)
$(call KCONFIG_ENABLE_OPT,CONFIG_PKCS8_PRIVATE_KEY_PARSER)
$(call KCONFIG_ENABLE_OPT,CONFIG_X509_CERTIFICATE_PARSER)
$(IWD_LINUX_CONFIG_FIXUP_MONITOR)
endef
$(eval $(autotools-package))