2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
12 PKG_REV:=11b24c28b802bae2abda8f46d457df60fa602594
13 PKG_VERSION:=20071130_$(PKG_REV)
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=http://git.sipsolutions.net/iw.git
19 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
20 PKG_SOURCE_VERSION:=$(PKG_REV)
21 PKG_BUILD_DEPENDS:=mac80211 libnl
23 include $(INCLUDE_DIR)/package.mk
28 TITLE:=cfg80211 interface configuration utility
29 URL:=http://git.sipsolutions.net/?p=iw.git
30 DEPENDS:=@!TARGET_avr32 @!TARGET_etrax +libnl
33 define Build/Configure
34 $(CP) $(PKG_BUILD_DIR)/defconfig $(PKG_BUILD_DIR)/.config
38 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/mac80211 -I$(STAGING_DIR)/usr/include/libnl -I$(STAGING_DIR)/usr/include" \
39 LDFLAGS="-L$(STAGING_DIR)/usr/lib -lnl"
41 ifneq ($(CONFIG_LINUX_2_6_23),)
42 define Package/iw/install
43 $(INSTALL_DIR) $(1)/usr/sbin
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/iw $(1)/usr/sbin/
48 $(eval $(call BuildPackage,iw))