2018-11-10 00:17:25 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# iwd
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2022-03-16 20:05:45 +01:00
|
|
|
IWD_VERSION = 1.25
|
2021-04-06 18:40:52 +02:00
|
|
|
IWD_SOURCE = iwd-$(IWD_VERSION).tar.xz
|
|
|
|
IWD_SITE = $(BR2_KERNEL_MIRROR)/linux/network/wireless
|
2018-11-10 00:17:25 +01:00
|
|
|
IWD_LICENSE = LGPL-2.1+
|
|
|
|
IWD_LICENSE_FILES = COPYING
|
2021-01-21 14:36:25 +01:00
|
|
|
IWD_CPE_ID_VENDOR = intel
|
2021-01-18 18:41:51 +01:00
|
|
|
IWD_CPE_ID_PRODUCT = inet_wireless_daemon
|
2020-12-28 17:11:21 +01:00
|
|
|
IWD_SELINUX_MODULES = networkmanager
|
2021-09-20 18:30:31 +02:00
|
|
|
# We're patching configure.ac
|
|
|
|
IWD_AUTORECONF = YES
|
2018-11-10 00:17:25 +01:00
|
|
|
|
2019-10-23 20:09:19 +02:00
|
|
|
IWD_CONF_OPTS = \
|
|
|
|
--disable-manual-pages \
|
|
|
|
--enable-external-ell
|
2018-11-10 00:17:25 +01:00
|
|
|
IWD_DEPENDENCIES = ell
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_DBUS),y)
|
2018-12-12 21:13:08 +01:00
|
|
|
IWD_CONF_OPTS += --enable-dbus-policy --with-dbus-datadir=/usr/share
|
2018-11-10 00:17:25 +01:00
|
|
|
IWD_DEPENDENCIES += dbus
|
|
|
|
else
|
|
|
|
IWD_CONF_OPTS += --disable-dbus-policy
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_READLINE),y)
|
|
|
|
# iwd client depends on readline (GPL-3.0+)
|
2019-10-26 10:45:54 +02:00
|
|
|
IWD_LICENSE += , GPL-3.0+ (client)
|
2018-11-10 00:17:25 +01:00
|
|
|
IWD_CONF_OPTS += --enable-client
|
|
|
|
IWD_DEPENDENCIES += readline
|
|
|
|
else
|
|
|
|
IWD_CONF_OPTS += --disable-client
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
|
|
|
IWD_CONF_OPTS += --enable-systemd-service
|
|
|
|
IWD_DEPENDENCIES += systemd
|
|
|
|
else
|
|
|
|
IWD_CONF_OPTS += --disable-systemd-service
|
|
|
|
endif
|
|
|
|
|
2020-06-16 08:34:30 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_SYSTEMD_RESOLVED),y)
|
|
|
|
IWD_RESOLV_SERVICE = systemd
|
|
|
|
else
|
|
|
|
IWD_RESOLV_SERVICE = resolvconf
|
|
|
|
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
|
|
|
|
endef
|
|
|
|
|
|
|
|
IWD_POST_INSTALL_TARGET_HOOKS += IWD_INSTALL_CONFIG_FILE
|
|
|
|
|
2020-06-16 08:34:31 +02:00
|
|
|
define IWD_INSTALL_INIT_SYSV
|
|
|
|
$(INSTALL) -m 0755 -D package/iwd/S40iwd \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S40iwd
|
|
|
|
mkdir -p $(TARGET_DIR)/var/lib/iwd
|
|
|
|
ln -sf /tmp/iwd/hotspot $(TARGET_DIR)/var/lib/iwd/hotspot
|
|
|
|
endef
|
|
|
|
|
2021-12-05 00:40:05 +01:00
|
|
|
define IWD_LINUX_CONFIG_FIXUPS
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_ASYMMETRIC_KEY_TYPE)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_CRYPTO_AES)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_CRYPTO_CBC)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_CRYPTO_CMAC)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_CRYPTO_DES)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_CRYPTO_ECB)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_CRYPTO_HMAC)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_CRYPTO_MD4)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_CRYPTO_MD5)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_CRYPTO_SHA1)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_CRYPTO_SHA256)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_CRYPTO_SHA512)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_CRYPTO_USER_API_HASH)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_CRYPTO_USER_API_SKCIPHER)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_KEYS)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_KEY_DH_OPERATIONS)
|
|
|
|
$(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)
|
|
|
|
endef
|
|
|
|
|
2018-11-10 00:17:25 +01:00
|
|
|
$(eval $(autotools-package))
|