8de57c9746
c1a03e8 nl80211: request split information about frequencies 5638567 nl80211: store info about freq being not available for some bandwidths ce51cb8 Allow storing more info about each frequency 5c10efa nl80211: support receiving split frequencies 335967c nl80211: improve error handling ab089dd nl80211: propagate netlink errors to callers 7bba117 nl80211: handle netlink errors in nl80211_wait() d22c64c iwinfo: add device id for Ubiquiti NanoStation Loco M2 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
119 lines
3 KiB
Makefile
119 lines
3 KiB
Makefile
#
|
|
# Copyright (C) 2010-2016 Jo-Philipp Wich <jo@mein.io>
|
|
#
|
|
# This is free software, licensed under the GPL 2 license.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=libiwinfo
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL=$(LEDE_GIT)/project/iwinfo.git
|
|
PKG_SOURCE_DATE:=2017-08-23
|
|
PKG_SOURCE_VERSION:=c1a03e8231a5d8b348b70a182d256725c98a3b0b
|
|
PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
|
|
PKG_LICENSE:=GPL-2.0
|
|
|
|
PKG_FLAGS := nonshared
|
|
|
|
PKG_CONFIG_DEPENDS := \
|
|
CONFIG_PACKAGE_kmod-brcm-wl \
|
|
CONFIG_PACKAGE_kmod-brcm-wl-mini \
|
|
CONFIG_PACKAGE_kmod-brcm-wl-mimo \
|
|
CONFIG_PACKAGE_kmod-cfg80211
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
define Package/libiwinfo
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
TITLE:=Generalized Wireless Information Library (iwinfo)
|
|
DEPENDS:=+PACKAGE_kmod-cfg80211:libnl-tiny +libuci
|
|
ABI_VERSION:=$(PKG_RELEASE)
|
|
endef
|
|
|
|
define Package/libiwinfo/description
|
|
Wireless information library with consistent interface for proprietary Broadcom,
|
|
nl80211 and wext driver interfaces.
|
|
endef
|
|
|
|
|
|
define Package/libiwinfo-lua
|
|
SUBMENU:=Lua
|
|
SECTION:=lang
|
|
CATEGORY:=Languages
|
|
TITLE:=libiwinfo Lua binding
|
|
DEPENDS:=+libiwinfo +liblua
|
|
endef
|
|
|
|
define Package/libiwinfo-lua/description
|
|
This is the Lua binding for the iwinfo library. It provides access to all enabled
|
|
backends.
|
|
endef
|
|
|
|
|
|
define Package/iwinfo
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
TITLE:=Generalized Wireless Information utility
|
|
DEPENDS:=+libiwinfo
|
|
endef
|
|
|
|
define Package/iwinfo/description
|
|
Command line frontend for the wireless information library.
|
|
endef
|
|
|
|
|
|
define Build/Configure
|
|
endef
|
|
|
|
IWINFO_BACKENDS := \
|
|
$(if $(CONFIG_PACKAGE_kmod-brcm-wl),wl) \
|
|
$(if $(CONFIG_PACKAGE_kmod-brcm-wl-mini),wl) \
|
|
$(if $(CONFIG_PACKAGE_kmod-brcm-wl-mimo),wl) \
|
|
$(if $(CONFIG_PACKAGE_kmod-cfg80211),nl80211)
|
|
|
|
TARGET_CFLAGS += \
|
|
-I$(STAGING_DIR)/usr/include/libnl-tiny \
|
|
-I$(STAGING_DIR)/usr/include \
|
|
-D_GNU_SOURCE
|
|
|
|
MAKE_FLAGS += \
|
|
FPIC="$(FPIC)" \
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
|
BACKENDS="$(IWINFO_BACKENDS)"
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(1)/usr/include/iwinfo
|
|
$(CP) $(PKG_BUILD_DIR)/include/iwinfo.h $(1)/usr/include/
|
|
$(CP) $(PKG_BUILD_DIR)/include/iwinfo/* $(1)/usr/include/iwinfo/
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/libiwinfo.so $(1)/usr/lib/libiwinfo.so
|
|
$(INSTALL_DIR) $(1)/usr/lib/lua
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/iwinfo.so $(1)/usr/lib/lua/iwinfo.so
|
|
endef
|
|
|
|
define Package/libiwinfo/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/libiwinfo.so $(1)/usr/lib/libiwinfo.so
|
|
$(INSTALL_DIR) $(1)/usr/share/libiwinfo
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/hardware.txt $(1)/usr/share/libiwinfo/hardware.txt
|
|
endef
|
|
|
|
define Package/libiwinfo-lua/install
|
|
$(INSTALL_DIR) $(1)/usr/lib/lua
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/iwinfo.so $(1)/usr/lib/lua/iwinfo.so
|
|
endef
|
|
|
|
define Package/iwinfo/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/iwinfo $(1)/usr/bin/iwinfo
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,libiwinfo))
|
|
$(eval $(call BuildPackage,libiwinfo-lua))
|
|
$(eval $(call BuildPackage,iwinfo))
|