fix ar7 compile
[openwrt.git] / obsolete-buildroot / make / hostap.mk
1 #############################################################
2 #
3 # hostap
4 #
5 #############################################################
6 HOSTAP_SOURCE_URL=http://hostap.epitest.fi/cgi-bin/viewcvs.cgi/hostap/hostap.tar.gz?tarball=1
7 HOSTAP_SOURCE=hostap.tar.gz
8 HOSTAP_DIR=$(BUILD_DIR)/hostap-snapshot
9
10 $(DL_DIR)/$(HOSTAP_SOURCE):
11 $(WGET) -P $(DL_DIR) $(HOSTAP_SOURCE_URL) -O $(DL_DIR)/$(HOSTAP_SOURCE)
12
13 hostap-source: $(DL_DIR)/$(HOSTAP_SOURCE)
14
15 $(HOSTAP_DIR)/.unpacked: $(DL_DIR)/$(HOSTAP_SOURCE)
16 zcat $(DL_DIR)/$(HOSTAP_SOURCE) | tar -C $(BUILD_DIR) -xvf -
17 mv -f $(BUILD_DIR)/hostap $(HOSTAP_DIR)
18 touch $(HOSTAP_DIR)/.unpacked
19
20 $(HOSTAP_DIR)/.configured: $(HOSTAP_DIR)/.unpacked
21 #$(SED) "s,/.*#define PRISM2_DOWNLOAD_SUPPORT.*/,#define PRISM2_DOWNLOAD_SUPPORT,g" \
22 # $(HOSTAP_DIR)/driver/modules/hostap_config.h
23 touch $(HOSTAP_DIR)/.configured
24
25 $(HOSTAP_DIR)/utils/hostap_crypt_conf: $(HOSTAP_DIR)/.configured
26 $(MAKE) -C $(HOSTAP_DIR)/utils CC=$(TARGET_CC) CFLAGS="-Os -Wall $(TARGET_CFLAGS) -I../driver/modules"
27 $(MAKE) -C $(HOSTAP_DIR)/hostapd CC=$(TARGET_CC) CFLAGS="-Os -Wall $(TARGET_CFLAGS) -I../driver/modules -I../utils"
28 touch -c $(HOSTAP_DIR)/driver/modules/hostap.o
29
30 $(TARGET_DIR)//usr/bin/hostap_crypt_conf: $(HOSTAP_DIR)/utils/hostap_crypt_conf
31 # Make the dir
32 -rm -rf $(HOSTAP_TARGET_MODULE_DIR)
33 -mkdir -p $(HOSTAP_TARGET_MODULE_DIR)
34 # Copy the pcmcia-cs conf file
35 -mkdir -p $(TARGET_DIR)/etc/pcmcia
36 cp -af $(HOSTAP_DIR)/driver/etc/hostap_cs.conf $(TARGET_DIR)/etc/pcmcia/
37 # Copy The Utils
38 cp -af $(HOSTAP_DIR)/utils/hostap_crypt_conf $(TARGET_DIR)/usr/bin/
39 cp -af $(HOSTAP_DIR)/utils/hostap_diag $(TARGET_DIR)/usr/bin/
40 cp -af $(HOSTAP_DIR)/utils/prism2_param $(TARGET_DIR)/usr/bin/
41 cp -af $(HOSTAP_DIR)/utils/prism2_srec $(TARGET_DIR)/usr/bin/
42 # Copy hostapd
43 cp -af $(HOSTAP_DIR)/hostapd/hostapd $(TARGET_DIR)/usr/sbin/
44
45 hostap: pcmcia $(TARGET_DIR)//usr/bin/hostap_crypt_conf
46
47 hostap-clean:
48 $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(HOSTAP_DIR) uninstall
49 -$(MAKE) -C $(HOSTAP_DIR) clean
50
51 hostap-dirclean:
52 rm -rf $(HOSTAP_DIR)
53
This page took 0.045501 seconds and 5 git commands to generate.