Merge pull request #1451 from lrusak/iwd

iwd (inet wireless daemon) support
This commit is contained in:
MilhouseVH 2019-07-04 19:49:24 +01:00 committed by GitHub
commit 685044dcab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 47 additions and 4 deletions

View File

@ -224,3 +224,6 @@
# debug tty path
DEBUG_TTY="/dev/tty3"
# wireless daemon to use (wpa_supplicant/iwd)
WIRELESS_DAEMON="wpa_supplicant"

View File

@ -8,12 +8,11 @@ PKG_SHA256="6ce29b3eb0bb16a7387bc609c39455fd13064bdcde5a4d185fab3a0c71946e16"
PKG_LICENSE="GPL"
PKG_SITE="http://www.connman.net"
PKG_URL="https://www.kernel.org/pub/linux/network/connman/$PKG_NAME-$PKG_VERSION.tar.xz"
PKG_DEPENDS_TARGET="toolchain glib readline dbus iptables wpa_supplicant"
PKG_DEPENDS_TARGET="toolchain glib readline dbus iptables"
PKG_LONGDESC="A modular network connection manager."
PKG_TOOLCHAIN="autotools"
PKG_CONFIGURE_OPTS_TARGET="WPASUPPLICANT=/usr/bin/wpa_supplicant \
--srcdir=.. \
PKG_CONFIGURE_OPTS_TARGET="--srcdir=.. \
--disable-debug \
--disable-hh2serial-gps \
--disable-openconnect \
@ -31,7 +30,8 @@ PKG_CONFIGURE_OPTS_TARGET="WPASUPPLICANT=/usr/bin/wpa_supplicant \
--enable-loopback \
--enable-ethernet \
--disable-gadget \
--enable-wifi \
--disable-wifi \
--enable-iwd \
--disable-bluetooth \
--disable-ofono \
--disable-dundee \
@ -46,6 +46,20 @@ PKG_CONFIGURE_OPTS_TARGET="WPASUPPLICANT=/usr/bin/wpa_supplicant \
--with-systemdunitdir=/usr/lib/systemd/system \
--disable-silent-rules"
case "$WIRELESS_DAEMON" in
wpa_supplicant)
PKG_DEPENDS_TARGET+=" wpa_supplicant"
PKG_CONFIGURE_OPTS_TARGET+=" WPASUPPLICANT=/usr/bin/wpa_supplicant \
--enable-wifi \
--disable-iwd"
;;
iwd)
PKG_DEPENDS_TARGET+=" iwd"
PKG_CONFIGURE_OPTS_TARGET+=" --disable-wifi \
--enable-iwd"
;;
esac
PKG_MAKE_OPTS_TARGET="storagedir=/storage/.cache/connman \
statedir=/run/connman"

View File

@ -0,0 +1,26 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="iwd"
PKG_VERSION="0.18"
PKG_LICENSE="GPL"
PKG_SITE="https://git.kernel.org/cgit/network/wireless/iwd.git/about/"
PKG_URL="https://www.kernel.org/pub/linux/network/wireless/iwd-${PKG_VERSION}.tar.xz"
PKG_DEPENDS_TARGET="toolchain readline dbus"
PKG_LONGDESC="Wireless daemon for Linux"
PKG_TOOLCHAIN="autotools"
PKG_CONFIGURE_OPTS_TARGET="--enable-client \
--enable-monitor \
--enable-systemd-service \
--enable-dbus-policy \
--disable-docs"
pre_configure_target() {
export LIBS="-lncurses"
}
post_install() {
enable_service iwd.service
}