2008-03-16 19:33:37 +01:00
|
|
|
#
|
|
|
|
# Copyright (C) 2008 OpenWrt.org
|
2006-10-31 18:31:37 +01:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=wpa_supplicant
|
2008-07-15 03:40:55 +02:00
|
|
|
PKG_VERSION:=0.6.3
|
2006-10-31 18:31:37 +01:00
|
|
|
PKG_RELEASE:=1
|
2008-07-15 07:04:33 +02:00
|
|
|
PKG_MD5SUM:=b51b2975f21006f85f7297f3fb1acde1
|
2006-10-31 18:31:37 +01:00
|
|
|
|
2008-03-16 19:33:37 +01:00
|
|
|
PKG_SOURCE_URL:=http://hostap.epitest.fi/releases
|
2006-10-31 18:31:37 +01:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2008-07-15 03:40:55 +02:00
|
|
|
STAMP_CONFIGURED:=$(STAMP_CONFIGURED)_$(call confvar,CONFIG_PACKAGE_kmod-madwifi CONFIG_WPA_SUPPLICANT_NO_TIMESTAMP_CHECK)
|
2006-10-31 18:31:37 +01:00
|
|
|
|
|
|
|
define Package/wpa-supplicant
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=WPA Supplicant
|
|
|
|
URL:=http://hostap.epitest.fi/wpa_supplicant/
|
|
|
|
endef
|
|
|
|
|
2007-10-14 06:34:07 +02:00
|
|
|
define Package/wpa-supplicant/Description
|
|
|
|
WPA Supplicant
|
|
|
|
endef
|
|
|
|
|
2008-07-15 03:40:55 +02:00
|
|
|
define Package/wpa-supplicant/config
|
2008-07-17 03:09:49 +02:00
|
|
|
source "$(SOURCE)/Config.in"
|
2008-07-15 03:40:55 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
|
2006-10-31 18:31:37 +01:00
|
|
|
define Package/wpa-cli
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
DEPENDS:=wpa-supplicant
|
|
|
|
TITLE:=WPA Supplicant command line interface
|
2007-10-14 06:34:07 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/wpa-cli/Description
|
2008-07-15 03:40:55 +02:00
|
|
|
WPA Supplicant control utility
|
2006-10-31 18:31:37 +01:00
|
|
|
endef
|
|
|
|
|
2008-07-15 03:40:55 +02:00
|
|
|
CONFIG=$(firstword $(wildcard ./files/config.$(BOARD) ./files/config.$(ARCH) ./config))
|
|
|
|
TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/madwifi $(if $(CONFIG_WPA_SUPPLICANT_NO_TIMESTAMP_CHECK),-DNO_TIMESTAMP_CHECK)
|
|
|
|
|
2006-10-31 18:31:37 +01:00
|
|
|
define Build/Configure
|
2008-07-15 03:40:55 +02:00
|
|
|
cp $(CONFIG) $(PKG_BUILD_DIR)/wpa_supplicant/.config
|
|
|
|
$(if $(CONFIG_PACKAGE_kmod-madwifi),,$(SED) 's,^CONFIG_DRIVER_MADWIFI,#CONFIG_DRIVER_MADWIFI,g' $(PKG_BUILD_DIR)/wpa_supplicant/.config)
|
2006-10-31 18:31:37 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
rm -rf $(PKG_INSTALL_DIR)
|
|
|
|
mkdir -p $(PKG_INSTALL_DIR)
|
2008-06-01 02:10:26 +02:00
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
2008-07-15 03:40:55 +02:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/wpa_supplicant \
|
2006-10-31 18:31:37 +01:00
|
|
|
CC="$(TARGET_CC)" \
|
|
|
|
KERNEL=$(LINUX_DIR) \
|
2007-03-28 02:35:26 +02:00
|
|
|
CPPFLAGS="$(TARGET_CPPFLAGS)" \
|
|
|
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
2006-10-31 18:31:37 +01:00
|
|
|
all
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/wpa-supplicant/install
|
2006-11-23 01:29:07 +01:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2008-07-15 03:40:55 +02:00
|
|
|
$(CP) \
|
|
|
|
$(PKG_BUILD_DIR)/wpa_supplicant/wpa_supplicant \
|
|
|
|
$(PKG_BUILD_DIR)/wpa_supplicant/wpa_passphrase \
|
|
|
|
$(1)/usr/sbin/
|
2006-10-31 18:31:37 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/wpa-cli/install
|
2006-11-23 01:29:07 +01:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2008-07-18 17:28:24 +02:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/wpa_supplicant/wpa_cli $(1)/usr/sbin/
|
2006-10-31 18:31:37 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,wpa-supplicant))
|
|
|
|
$(eval $(call BuildPackage,wpa-cli))
|