source: trunk/package/iw/Makefile @ 28385

Last change on this file since 28385 was 28385, checked in by nbd, 5 years ago

iw: update to v3.1, add support for per-chain signal strength info

  • Property svn:eol-style set to native
File size: 1.4 KB
Line 
1#
2# Copyright (C) 2007-2011 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=iw
11PKG_VERSION:=3.1
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15PKG_SOURCE_URL:=http://wireless.kernel.org/download/iw/
16PKG_MD5SUM:=2b63438a12b7dc481140cb9a69c86e4a
17PKG_BUILD_DEPENDS:=mac80211
18
19include $(INCLUDE_DIR)/package.mk
20
21define Package/iw
22  SECTION:=net
23  CATEGORY:=Network
24  TITLE:=cfg80211 interface configuration utility
25  URL:=http://wireless.kernel.org/en/users/Documentation/iw
26  DEPENDS:= +libnl-tiny @(!(TARGET_avr32||TARGET_etrax)||BROKEN)
27endef
28
29define 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
34endef
35
36TARGET_CPPFLAGS:= \
37        -I$(STAGING_DIR)/usr/include/libnl-tiny \
38        -I$(STAGING_DIR)/usr/include/mac80211 \
39        $(TARGET_CPPFLAGS) \
40        -DCONFIG_LIBNL20 \
41        -D_GNU_SOURCE
42
43MAKE_FLAGS += \
44        CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \
45        LDFLAGS="$(TARGET_LDFLAGS)" \
46        NL1FOUND="" NL2FOUND=Y \
47        NLLIBNAME="libnl-tiny" \
48        LIBS="-lm -lnl-tiny" \
49        V=1
50
51define Package/iw/install
52        $(INSTALL_DIR) $(1)/usr/sbin
53        $(INSTALL_BIN) $(PKG_BUILD_DIR)/iw $(1)/usr/sbin/
54endef
55
56$(eval $(call BuildPackage,iw))
Note: See TracBrowser for help on using the repository browser.