summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/iwinfo/Makefile
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-09-27 15:38:35 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-09-27 15:38:35 +0000
commit16d65c96b035a10aa93a96e5a789ebef9ca3a76d (patch)
tree9b5a485005d50f093d12de5bf9c1b0537330142d /contrib/package/iwinfo/Makefile
parent197d043107329b070d2716eaf8414a32445e1a95 (diff)
[libiwinfo]
- fix compilation of WL backend - conditionally compile backends according to selected wifi drivers
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 b9c41e426..4ea94028b 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