2003-01-19 08:49:24 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# hostap
|
2007-09-17 14:30:31 +02:00
|
|
|
#
|
|
|
|
# Note! Host AP driver was added into the main kernel tree in Linux v2.6.14.
|
|
|
|
# The version in the kernel tree should be used instead of this external
|
|
|
|
# hostap-driver package.
|
2007-08-28 23:09:23 +02:00
|
|
|
# The external releases are only for older kernel versions and all
|
|
|
|
# the future development will be in the main kernel tree.
|
2003-01-19 08:49:24 +01:00
|
|
|
#
|
|
|
|
#############################################################
|
2007-08-28 23:09:23 +02:00
|
|
|
HOSTAP_VERSION=0.4.9
|
|
|
|
HOSTAP_SOURCE=hostap-driver-$(HOSTAP_VERSION).tar.gz
|
2007-07-09 06:40:53 +02:00
|
|
|
HOSTAP_SITE=http://hostap.epitest.fi/releases
|
|
|
|
HOSTAP_DIR=$(BUILD_DIR)/hostapd-$(HOSTAP_VERSION)
|
2003-01-19 08:49:24 +01:00
|
|
|
|
|
|
|
$(DL_DIR)/$(HOSTAP_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(HOSTAP_SITE),$(HOSTAP_SOURCE))
|
2003-01-19 08:49:24 +01:00
|
|
|
|
|
|
|
hostap-source: $(DL_DIR)/$(HOSTAP_SOURCE)
|
|
|
|
|
2003-06-20 14:15:27 +02:00
|
|
|
$(HOSTAP_DIR)/.unpacked: $(DL_DIR)/$(HOSTAP_SOURCE)
|
2006-10-01 17:17:52 +02:00
|
|
|
$(ZCAT) $(DL_DIR)/$(HOSTAP_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2003-06-20 14:15:27 +02:00
|
|
|
mv -f $(BUILD_DIR)/hostap $(HOSTAP_DIR)
|
2007-09-17 14:30:31 +02:00
|
|
|
touch $@
|
2003-01-19 08:49:24 +01:00
|
|
|
|
2003-06-20 14:15:27 +02:00
|
|
|
$(HOSTAP_DIR)/.configured: $(HOSTAP_DIR)/.unpacked
|
2003-12-28 23:07:35 +01:00
|
|
|
#$(SED) "s,/.*#define PRISM2_DOWNLOAD_SUPPORT.*/,#define PRISM2_DOWNLOAD_SUPPORT,g" \
|
2007-08-22 14:35:41 +02:00
|
|
|
# $(HOSTAP_DIR)/driver/modules/hostap_config.h
|
2007-09-17 14:30:31 +02:00
|
|
|
touch $@
|
2003-06-20 14:15:27 +02:00
|
|
|
|
2003-12-28 23:07:35 +01:00
|
|
|
$(HOSTAP_DIR)/utils/hostap_crypt_conf: $(HOSTAP_DIR)/.configured
|
2007-09-17 14:30:31 +02:00
|
|
|
$(MAKE) -C $(HOSTAP_DIR)/utils \
|
|
|
|
CC=$(TARGET_CC) \
|
|
|
|
CFLAGS="-Os -Wall $(TARGET_CFLAGS) -I../driver/modules"
|
|
|
|
$(MAKE) -C $(HOSTAP_DIR)/hostapd \
|
|
|
|
CC=$(TARGET_CC) \
|
|
|
|
CFLAGS="-Os -Wall $(TARGET_CFLAGS) -I../driver/modules -I../utils"
|
2003-06-20 14:15:27 +02:00
|
|
|
touch -c $(HOSTAP_DIR)/driver/modules/hostap.o
|
|
|
|
|
2003-12-28 23:07:35 +01:00
|
|
|
$(TARGET_DIR)//usr/bin/hostap_crypt_conf: $(HOSTAP_DIR)/utils/hostap_crypt_conf
|
2003-01-19 08:49:24 +01:00
|
|
|
# Make the dir
|
2007-09-17 14:30:31 +02:00
|
|
|
rm -rf $(HOSTAP_TARGET_MODULE_DIR)
|
2007-08-21 13:25:30 +02:00
|
|
|
mkdir -p $(HOSTAP_TARGET_MODULE_DIR)
|
2003-01-20 08:02:31 +01:00
|
|
|
# Copy the pcmcia-cs conf file
|
2007-08-21 13:25:30 +02:00
|
|
|
mkdir -p $(TARGET_DIR)/etc/pcmcia
|
2003-06-20 14:15:27 +02:00
|
|
|
cp -af $(HOSTAP_DIR)/driver/etc/hostap_cs.conf $(TARGET_DIR)/etc/pcmcia/
|
2003-01-19 08:49:24 +01:00
|
|
|
# Copy The Utils
|
2003-06-20 14:15:27 +02:00
|
|
|
cp -af $(HOSTAP_DIR)/utils/hostap_crypt_conf $(TARGET_DIR)/usr/bin/
|
|
|
|
cp -af $(HOSTAP_DIR)/utils/hostap_diag $(TARGET_DIR)/usr/bin/
|
|
|
|
cp -af $(HOSTAP_DIR)/utils/prism2_param $(TARGET_DIR)/usr/bin/
|
|
|
|
cp -af $(HOSTAP_DIR)/utils/prism2_srec $(TARGET_DIR)/usr/bin/
|
2003-01-19 08:49:24 +01:00
|
|
|
# Copy hostapd
|
2003-06-20 14:15:27 +02:00
|
|
|
cp -af $(HOSTAP_DIR)/hostapd/hostapd $(TARGET_DIR)/usr/sbin/
|
2003-01-19 08:49:24 +01:00
|
|
|
|
2003-12-28 23:07:35 +01:00
|
|
|
hostap: pcmcia $(TARGET_DIR)//usr/bin/hostap_crypt_conf
|
2003-01-19 08:49:24 +01:00
|
|
|
|
|
|
|
hostap-clean:
|
2003-06-20 14:15:27 +02:00
|
|
|
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(HOSTAP_DIR) uninstall
|
|
|
|
-$(MAKE) -C $(HOSTAP_DIR) clean
|
2003-01-19 08:49:24 +01:00
|
|
|
|
|
|
|
hostap-dirclean:
|
2003-06-20 14:15:27 +02:00
|
|
|
rm -rf $(HOSTAP_DIR)
|
2003-01-19 08:49:24 +01:00
|
|
|
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_HOSTAP),y)
|
2005-02-10 04:06:39 +01:00
|
|
|
TARGETS+=hostap
|
|
|
|
endif
|