| 1 | ############################################################# |
|---|
| 2 | # |
|---|
| 3 | # wpa_supplicant card services |
|---|
| 4 | # |
|---|
| 5 | ############################################################# |
|---|
| 6 | # Copyright (C) 2001-2003 by Erik Andersen <andersen@codepoet.org> |
|---|
| 7 | # Copyright (C) 2002 by Tim Riker <Tim@Rikers.org> |
|---|
| 8 | # |
|---|
| 9 | # This program is free software; you can redistribute it and/or modify |
|---|
| 10 | # it under the terms of the GNU Library General Public License as |
|---|
| 11 | # published by the Free Software Foundation; either version 2 of the |
|---|
| 12 | # License, or (at your option) any later version. |
|---|
| 13 | # |
|---|
| 14 | # This program is distributed in the hope that it will be useful, but |
|---|
| 15 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|---|
| 17 | # Library General Public License for more details. |
|---|
| 18 | # |
|---|
| 19 | # You should have received a copy of the GNU Library General Public |
|---|
| 20 | # License along with this program; if not, write to the Free Software |
|---|
| 21 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
|---|
| 22 | # USA |
|---|
| 23 | WPA_SUPPLICANT_SITE=http://hostap.epitest.fi/releases/ |
|---|
| 24 | WPA_SUPPLICANT_VERSION=0.3.8 |
|---|
| 25 | WPA_SUPPLICANT_SOURCE=wpa_supplicant-$(WPA_SUPPLICANT_VERSION).tar.gz |
|---|
| 26 | WPA_SUPPLICANT_DIR=$(BUILD_DIR)/wpa_supplicant-$(WPA_SUPPLICANT_VERSION) |
|---|
| 27 | WPA_SUPPLICANT_PATCH:=$(SOURCE_DIR)/wpa_supplicant.patch |
|---|
| 28 | WPA_SUPPLICANT_CAT=zcat |
|---|
| 29 | |
|---|
| 30 | WPA_SUPPLICANT_CONFIG_FILE=$(CONFIG_DIR)/config-wpa_supplicant |
|---|
| 31 | |
|---|
| 32 | WPA_SUPPLICANT_PKG_DIR=$(HOSTAP_PKG_DIR) |
|---|
| 33 | |
|---|
| 34 | $(DL_DIR)/$(WPA_SUPPLICANT_SOURCE): |
|---|
| 35 | $(WGET) -P $(DL_DIR) $(WPA_SUPPLICANT_SITE)/$(WPA_SUPPLICANT_SOURCE) |
|---|
| 36 | |
|---|
| 37 | wpa_supplicant-source: $(DL_DIR)/$(WPA_SUPPLICANT_SOURCE) |
|---|
| 38 | |
|---|
| 39 | $(WPA_SUPPLICANT_DIR)/.unpacked: $(DL_DIR)/$(WPA_SUPPLICANT_SOURCE) |
|---|
| 40 | $(WPA_SUPPLICANT_CAT) $(DL_DIR)/$(WPA_SUPPLICANT_SOURCE) | \ |
|---|
| 41 | tar $(TAR_VERBOSE) -C $(BUILD_DIR) -xf - |
|---|
| 42 | touch $(WPA_SUPPLICANT_DIR)/.unpacked |
|---|
| 43 | |
|---|
| 44 | $(WPA_SUPPLICANT_DIR)/.configured: $(WPA_SUPPLICANT_DIR)/.unpacked |
|---|
| 45 | cp $(WPA_SUPPLICANT_CONFIG_FILE) $(WPA_SUPPLICANT_DIR)/.config |
|---|
| 46 | touch $(WPA_SUPPLICANT_DIR)/.configured |
|---|
| 47 | |
|---|
| 48 | $(WPA_SUPPLICANT_DIR)/wpa_supplicant: $(WPA_SUPPLICANT_DIR)/.configured |
|---|
| 49 | ( cd $(WPA_SUPPLICANT_DIR) ; \ |
|---|
| 50 | $(MAKE) CC="$(TARGET_CC)"; \ |
|---|
| 51 | ); |
|---|
| 52 | |
|---|
| 53 | $(WPA_SUPPLICANT_PKG_DIR)/usr/sbin/wpa_supplicant: $(WPA_SUPPLICANT_DIR)/wpa_supplicant |
|---|
| 54 | mkdir -p $(WPA_SUPPLICANT_PKG_DIR)/usr/sbin |
|---|
| 55 | cp -a $(WPA_SUPPLICANT_DIR)/wpa_supplicant $(WPA_SUPPLICANT_PKG_DIR)/usr/sbin/wpa_supplicant |
|---|
| 56 | cp -a $(WPA_SUPPLICANT_DIR)/wpa_cli $(WPA_SUPPLICANT_PKG_DIR)/usr/sbin/wpa_supplicant |
|---|
| 57 | touch $(WPA_SUPPLICANT_PKG_DIR)/etc/wpa_supplicant.conf |
|---|
| 58 | -$(SSTRIP) $(WPA_SUPPLICANT_PKG_DIR)/usr/sbin/wpa_supplicant |
|---|
| 59 | -$(SSTRIP) $(WPA_SUPPLICANT_PKG_DIR)/usr/sbin/wpa_cli |
|---|
| 60 | |
|---|
| 61 | wpa_supplicant: $(WPA_SUPPLICANT_PKG_DIR)/usr/sbin/wpa_supplicant |
|---|
| 62 | |
|---|
| 63 | wpa_supplicant-clean: |
|---|
| 64 | -$(RM) -r $(WPA_SUPPLICANT_PKG_DIR)/* |
|---|
| 65 | -$(MAKE) -C $(WPA_SUPPLICANT_DIR) clean |
|---|
| 66 | |
|---|
| 67 | wpa_supplicant-dirclean: |
|---|
| 68 | -$(RM) -r $(WPA_SUPPLICANT_PKG_DIR)/* |
|---|
| 69 | -$(RM) -r $(WPA_SUPPLICANT_DIR) |
|---|