From 16d65c96b035a10aa93a96e5a789ebef9ca3a76d Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 27 Sep 2010 15:38:35 +0000 Subject: [libiwinfo] - fix compilation of WL backend - conditionally compile backends according to selected wifi drivers --- contrib/package/iwinfo/Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'contrib/package/iwinfo/Makefile') 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 -- cgit v1.2.3