[iw] Update iw to version 0.9.13.
[openwrt.git] / package / wpa_supplicant / Makefile
1 #
2 # Copyright (C) 2008-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=wpa_supplicant
11 PKG_VERSION:=0.6.9
12 PKG_RELEASE:=2
13 PKG_MD5SUM:=0efb8fcedf0a8acf6f423dfdb0658fdd
14
15 PKG_SOURCE_URL:=http://hostap.epitest.fi/releases
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17
18 PKG_BUILD_DEPENDS:=PACKAGE_kmod-madwifi:madwifi
19
20 include $(INCLUDE_DIR)/package.mk
21 STAMP_CONFIGURED:=$(STAMP_CONFIGURED)_$(call confvar,CONFIG_PACKAGE_kmod-madwifi CONFIG_WPA_SUPPLICANT_NO_TIMESTAMP_CHECK)
22
23 define Package/wpa-supplicant
24 SECTION:=net
25 CATEGORY:=Network
26 TITLE:=WPA Supplicant
27 DEPENDS:=$(if $(CONFIG_WPA_SUPPLICANT_OPENSSL),+libopenssl)
28 URL:=http://hostap.epitest.fi/wpa_supplicant/
29 endef
30
31 define Package/wpa-supplicant/Description
32 WPA Supplicant
33 endef
34
35 define Package/wpa-supplicant/config
36 source "$(SOURCE)/Config.in"
37 endef
38
39 define Package/wpa-cli
40 SECTION:=net
41 CATEGORY:=Network
42 DEPENDS:=wpa-supplicant
43 TITLE:=WPA Supplicant command line interface
44 endef
45
46 define Package/wpa-cli/Description
47 WPA Supplicant control utility
48 endef
49
50 CONFIG=$(firstword $(wildcard ./files/config.$(BOARD) ./files/config.$(ARCH) ./config))
51 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/madwifi $(if $(CONFIG_WPA_SUPPLICANT_NO_TIMESTAMP_CHECK),-DNO_TIMESTAMP_CHECK)
52
53 define Build/Configure
54 cp $(CONFIG) $(PKG_BUILD_DIR)/wpa_supplicant/.config
55 $(if $(CONFIG_PACKAGE_kmod-madwifi),,$(SED) 's,^CONFIG_DRIVER_MADWIFI,#CONFIG_DRIVER_MADWIFI,g' $(PKG_BUILD_DIR)/wpa_supplicant/.config)
56 $(if $(CONFIG_WPA_SUPPLICANT_OPENSSL),$(SED) 's|^CONFIG_TLS.*|CONFIG_TLS=openssl|g' $(PKG_BUILD_DIR)/wpa_supplicant/.config)
57 endef
58
59 define Build/Compile
60 rm -rf $(PKG_INSTALL_DIR)
61 mkdir -p $(PKG_INSTALL_DIR)
62 CFLAGS="$(TARGET_CFLAGS)" \
63 $(MAKE) -C $(PKG_BUILD_DIR)/wpa_supplicant \
64 CC="$(TARGET_CC)" \
65 KERNEL=$(LINUX_DIR) \
66 CPPFLAGS="$(TARGET_CPPFLAGS)" \
67 LDFLAGS="$(TARGET_LDFLAGS)" \
68 all
69 endef
70
71 define Package/wpa-supplicant/install
72 $(INSTALL_DIR) $(1)/usr/sbin
73 $(CP) \
74 $(PKG_BUILD_DIR)/wpa_supplicant/wpa_supplicant \
75 $(PKG_BUILD_DIR)/wpa_supplicant/wpa_passphrase \
76 $(1)/usr/sbin/
77 $(INSTALL_DIR) $(1)/lib/wifi
78 $(INSTALL_DATA) ./files/wpa_supplicant.sh $(1)/lib/wifi/wpa_supplicant.sh
79 endef
80
81 define Package/wpa-cli/install
82 $(INSTALL_DIR) $(1)/usr/sbin
83 $(CP) $(PKG_BUILD_DIR)/wpa_supplicant/wpa_cli $(1)/usr/sbin/
84 endef
85
86 $(eval $(call BuildPackage,wpa-supplicant))
87 $(eval $(call BuildPackage,wpa-cli))
This page took 0.041596 seconds and 5 git commands to generate.