mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-27 20:40:34 -09:00
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:
committed by
Julien Olivain
parent
b7f7bd44f9
commit
7cfb33987a
@@ -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
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user