2003-01-19 08:49:24 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# hostap
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
HOSTAP_SOURCE_URL=http://hostap.epitest.fi/cgi-bin/viewcvs.cgi/hostap/hostap.tar.gz?tarball=1
|
|
|
|
HOSTAP_SOURCE=hostap.tar.gz
|
2003-06-20 14:15:27 +02:00
|
|
|
HOSTAP_DIR=$(BUILD_DIR)/hostap-snapshot
|
2003-01-19 08:49:24 +01:00
|
|
|
|
|
|
|
$(DL_DIR)/$(HOSTAP_SOURCE):
|
2003-11-12 10:31:12 +01:00
|
|
|
$(WGET) -P $(DL_DIR) $(HOSTAP_SOURCE_URL) -O $(DL_DIR)/$(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)
|
2004-10-09 23:19:47 +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)
|
|
|
|
touch $(HOSTAP_DIR)/.unpacked
|
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" \
|
|
|
|
# $(HOSTAP_DIR)/driver/modules/hostap_config.h
|
2005-11-24 07:53:24 +01:00
|
|
|
touch $(HOSTAP_DIR)/.configured
|
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
|
|
|
|
$(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
|
2003-01-20 08:02:31 +01:00
|
|
|
-rm -rf $(HOSTAP_TARGET_MODULE_DIR)
|
|
|
|
-mkdir -p $(HOSTAP_TARGET_MODULE_DIR)
|
|
|
|
# Copy the pcmcia-cs conf file
|
2003-12-28 23:07:35 +01: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
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_HOSTAP)),y)
|
|
|
|
TARGETS+=hostap
|
|
|
|
endif
|