2 # Copyright (C) 2007-2011 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.xz
15 PKG_SOURCE_URL:=@KERNEL/software/network/iw
16 PKG_HASH:=324cc805fad52cba2c16b9ab569906889fb645cc962aac4cfda1db85d2de97ce
18 PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
21 include $(INCLUDE_DIR)/package.mk
26 TITLE:=cfg80211 interface configuration utility
27 URL:=http://wireless.kernel.org/en/users/Documentation/iw
31 define Build/Configure
32 echo "const char iw_version[] = \"$(PKG_VERSION)\";" > $(PKG_BUILD_DIR)/version.c
33 echo "#!/bin/sh" > $(PKG_BUILD_DIR)/version.sh
34 chmod +x $(PKG_BUILD_DIR)/version.sh
38 -I$(STAGING_DIR)/usr/include/libnl-tiny \
44 CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS) -ffunction-sections -fdata-sections" \
45 LDFLAGS="$(TARGET_LDFLAGS) -Wl,--gc-sections" \
46 NL1FOUND="" NL2FOUND=Y \
47 NLLIBNAME="libnl-tiny" \
48 LIBS="-lm -lnl-tiny" \
51 define Package/iw/install
52 $(INSTALL_DIR) $(1)/usr/sbin
53 $(INSTALL_BIN) $(PKG_BUILD_DIR)/iw $(1)/usr/sbin/
56 $(eval $(call BuildPackage,iw))