Upgrade wpa_supplicant to 0.6.3 and add some improvements (mainly for roaming with...
[openwrt.git] / package / wpa_supplicant / Makefile
1 #
2 # Copyright (C) 2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=wpa_supplicant
12 PKG_VERSION:=0.6.3
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=9e7b99da67c47d81121368c6d580d069
15
16 PKG_SOURCE_URL:=http://hostap.epitest.fi/releases
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
18
19 include $(INCLUDE_DIR)/package.mk
20 STAMP_CONFIGURED:=$(STAMP_CONFIGURED)_$(call confvar,CONFIG_PACKAGE_kmod-madwifi CONFIG_WPA_SUPPLICANT_NO_TIMESTAMP_CHECK)
21
22 define Package/wpa-supplicant
23 SECTION:=net
24 CATEGORY:=Network
25 TITLE:=WPA Supplicant
26 URL:=http://hostap.epitest.fi/wpa_supplicant/
27 endef
28
29 define Package/wpa-supplicant/Description
30 WPA Supplicant
31 endef
32
33 define Package/wpa-supplicant/config
34 config WPA_SUPPLICANT_NO_TIMESTAMP_CHECK
35 bool "Disable timestamp check"
36 depends PACKAGE_wpa-supplicant
37 default n
38 help
39 This disables the timestamp check for certificates in wpa_supplicant
40 Useful for devices without RTC that cannot reliably get the real date/time
41 endef
42
43
44 define Package/wpa-cli
45 SECTION:=net
46 CATEGORY:=Network
47 DEPENDS:=wpa-supplicant
48 TITLE:=WPA Supplicant command line interface
49 endef
50
51 define Package/wpa-cli/Description
52 WPA Supplicant control utility
53 endef
54
55 CONFIG=$(firstword $(wildcard ./files/config.$(BOARD) ./files/config.$(ARCH) ./config))
56 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/madwifi $(if $(CONFIG_WPA_SUPPLICANT_NO_TIMESTAMP_CHECK),-DNO_TIMESTAMP_CHECK)
57
58 define Build/Configure
59 cp $(CONFIG) $(PKG_BUILD_DIR)/wpa_supplicant/.config
60 $(if $(CONFIG_PACKAGE_kmod-madwifi),,$(SED) 's,^CONFIG_DRIVER_MADWIFI,#CONFIG_DRIVER_MADWIFI,g' $(PKG_BUILD_DIR)/wpa_supplicant/.config)
61 endef
62
63 define Build/Compile
64 rm -rf $(PKG_INSTALL_DIR)
65 mkdir -p $(PKG_INSTALL_DIR)
66 CFLAGS="$(TARGET_CFLAGS)" \
67 $(MAKE) -C $(PKG_BUILD_DIR)/wpa_supplicant \
68 CC="$(TARGET_CC)" \
69 KERNEL=$(LINUX_DIR) \
70 CPPFLAGS="$(TARGET_CPPFLAGS)" \
71 LDFLAGS="$(TARGET_LDFLAGS)" \
72 all
73 endef
74
75 define Package/wpa-supplicant/install
76 $(INSTALL_DIR) $(1)/usr/sbin
77 $(CP) \
78 $(PKG_BUILD_DIR)/wpa_supplicant/wpa_supplicant \
79 $(PKG_BUILD_DIR)/wpa_supplicant/wpa_passphrase \
80 $(1)/usr/sbin/
81 endef
82
83 define Package/wpa-cli/install
84 $(INSTALL_DIR) $(1)/usr/sbin
85 $(CP) $(PKG_BUILD_DIR)/wpa_cli $(1)/usr/sbin/
86 endef
87
88 $(eval $(call BuildPackage,wpa-supplicant))
89 $(eval $(call BuildPackage,wpa-cli))
This page took 0.047525 seconds and 5 git commands to generate.