summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/iwinfo/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/package/iwinfo/Makefile')
-rw-r--r--contrib/package/iwinfo/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/contrib/package/iwinfo/Makefile b/contrib/package/iwinfo/Makefile
index b9c41e4262..4ea94028bf 100644
--- a/contrib/package/iwinfo/Makefile
+++ b/contrib/package/iwinfo/Makefile
@@ -19,7 +19,7 @@ define Package/libiwinfo
CATEGORY:=LuCI
SUBMENU:=Libraries
TITLE:=Generalized Wireless Information Library (iwinfo)
- DEPENDS:=+libnl-tiny +liblua +lua
+ DEPENDS:=+PACKAGE_kmod-mac80211:libnl-tiny +liblua +lua
endef
define Package/libiwinfo/description
@@ -35,6 +35,11 @@ endef
define Build/Configure
endef
+IWINFO_BACKENDS := \
+ $(if $(CONFIG_PACKAGE_kmod-brcm-wl),wl) \
+ $(if $(CONFIG_PACKAGE_kmod-madwifi),madwifi) \
+ $(if $(CONFIG_PACKAGE_kmod-mac80211),nl80211)
+
TARGET_CFLAGS += \
-I$(STAGING_DIR)/usr/include \
-I$(STAGING_DIR)/usr/include/libnl-tiny
@@ -42,7 +47,8 @@ TARGET_CFLAGS += \
MAKE_FLAGS += \
FPIC="$(FPIC)" \
CFLAGS="$(TARGET_CFLAGS)" \
- LDFLAGS="$(TARGET_LDFLAGS)"
+ LDFLAGS="$(TARGET_LDFLAGS)" \
+ BACKENDS="$(IWINFO_BACKENDS)"
define Package/libiwinfo/install
$(INSTALL_DIR) $(1)/usr/bin