2 # Copyright (C) 2007-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 PKG_SOURCE_URL
:=http
://wireless.kernel.org
/download
/iw
/
16 PKG_MD5SUM
:=98ba12eceec5a4ae8aa2d51abd56fa14
17 PKG_BUILD_DEPENDS
:=mac80211
19 include $(INCLUDE_DIR
)/package.mk
24 TITLE
:=cfg80211 interface configuration utility
25 URL
:=http
://wireless.kernel.org
/en
/users
/Documentation
/iw
26 DEPENDS
:=@
!TARGET_avr32 @
!TARGET_etrax
+libnl-tiny
29 define Build
/Configure
30 echo
"const char iw_version[] = \"$(PKG_VERSION)\";" > $(PKG_BUILD_DIR
)/version.c
31 rm -f
$(PKG_BUILD_DIR
)/version.sh
32 touch
$(PKG_BUILD_DIR
)/version.sh
33 chmod
+x
$(PKG_BUILD_DIR
)/version.sh
37 -I
$(STAGING_DIR
)/usr
/include/libnl-tiny \
38 -I
$(STAGING_DIR
)/usr
/include/mac80211 \
44 CFLAGS
="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \
45 LDFLAGS
="$(TARGET_LDFLAGS)" \
46 NL1FOUND
="" NL2FOUND
=Y \
47 NLLIBNAME
="libnl-tiny" \
48 LIBS
="-lm -lnl-tiny" \
51 ifneq ($(CONFIG_LINUX_2_6
),)
52 define Package
/iw
/install
53 $(INSTALL_DIR
) $(1)/usr
/sbin
54 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/iw
$(1)/usr
/sbin
/
58 $(eval
$(call BuildPackage
,iw
))