2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
|
|
|
|
PKG_NAME="iw"
|
2022-11-12 20:39:58 +00:00
|
|
|
PKG_VERSION="5.19"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LICENSE="PUBLIC_DOMAIN"
|
|
|
|
PKG_SITE="https://wireless.wiki.kernel.org/en/users/documentation/iw"
|
2023-02-24 13:53:43 +00:00
|
|
|
PKG_URL="https://www.kernel.org/pub/software/network/${PKG_NAME}/${PKG_NAME}-${PKG_VERSION}.tar.xz"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain libnl"
|
|
|
|
PKG_LONGDESC="A new nl80211 based CLI configuration utility for wireless devices."
|
|
|
|
# iw fails at runtime with lto enabled
|
|
|
|
|
|
|
|
pre_configure_target() {
|
2022-11-12 20:39:58 +00:00
|
|
|
export LDFLAGS="${LDFLAGS} -pthread"
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
post_makeinstall_target() {
|
2022-11-12 20:39:58 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/lib/iw
|
|
|
|
cp ${PKG_DIR}/scripts/setregdomain ${INSTALL}/usr/lib/iw
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|