mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 08:51:13 +00:00
735f5f18dd
0496c722f1d7 nl80211: fix issues with renamed wiphy and multiple phy per device Signed-off-by: Felix Fietkau <nbd@nbd.name>
120 lines
2.9 KiB
Makefile
120 lines
2.9 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=$(PROJECT_GIT)/project/iwinfo.git
|
|
PKG_SOURCE_DATE:=2022-10-14
|
|
PKG_SOURCE_VERSION:=0496c722f1d798789d9280d9e357f87b920349eb
|
|
PKG_MIRROR_HASH:=6dcbb79b3ebcad3f013a162ee1b18535a05afe9be9bf578cf62d9cf0b210f9df
|
|
PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
|
|
PKG_LICENSE:=GPL-2.0
|
|
|
|
IWINFO_ABI_VERSION:=20210430
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
define Package/libiwinfo
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
TITLE:=Generalized Wireless Information Library (iwinfo)
|
|
DEPENDS:=+libnl-tiny +libuci +libubus +libiwinfo-data
|
|
ABI_VERSION:=$(IWINFO_ABI_VERSION)
|
|
endef
|
|
|
|
define Package/libiwinfo/description
|
|
Wireless information library with simplified API for 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/libiwinfo-data
|
|
TITLE:=libiwinfo Lua binding
|
|
HIDDEN:=1
|
|
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
|
|
|
|
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="nl80211" \
|
|
SOVERSION="$(IWINFO_ABI_VERSION)"
|
|
|
|
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
|
|
$(CP) $(PKG_BUILD_DIR)/libiwinfo.so* $(1)/usr/lib/
|
|
$(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.$(IWINFO_ABI_VERSION) $(1)/usr/lib/libiwinfo.so.$(IWINFO_ABI_VERSION)
|
|
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/libiwinfo-data/install
|
|
$(INSTALL_DIR) $(1)/usr/share/libiwinfo
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/devices.txt $(1)/usr/share/libiwinfo/devices.txt
|
|
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,libiwinfo-data))
|
|
$(eval $(call BuildPackage,iwinfo))
|