1 #############################################################
5 # Note! Host AP driver was added into the main kernel tree in Linux v2.6.14.
6 # The version in the kernel tree should be used instead of this external
7 # hostap-driver package.
8 # The external releases are only for older kernel versions and all
9 # the future development will be in the main kernel tree.
11 #############################################################
13 HOSTAP_SOURCE
=hostap-driver-
$(HOSTAP_VERSION
).
tar.gz
14 HOSTAP_SITE
=http
://hostap.epitest.fi
/releases
15 HOSTAP_DIR
=$(BUILD_DIR
)/hostapd-
$(HOSTAP_VERSION
)
17 $(DL_DIR
)/$(HOSTAP_SOURCE
):
18 $(WGET
) -P
$(DL_DIR
) $(HOSTAP_SITE
)/$(HOSTAP_SOURCE
)
20 hostap-source
: $(DL_DIR
)/$(HOSTAP_SOURCE
)
22 $(HOSTAP_DIR
)/.unpacked
: $(DL_DIR
)/$(HOSTAP_SOURCE
)
23 $(ZCAT
) $(DL_DIR
)/$(HOSTAP_SOURCE
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
24 mv
-f
$(BUILD_DIR
)/hostap
$(HOSTAP_DIR
)
27 $(HOSTAP_DIR
)/.configured
: $(HOSTAP_DIR
)/.unpacked
28 #$(SED) "s,/.*#define PRISM2_DOWNLOAD_SUPPORT.*/,#define PRISM2_DOWNLOAD_SUPPORT,g" \
29 # $(HOSTAP_DIR)/driver/modules/hostap_config.h
32 $(HOSTAP_DIR
)/utils
/hostap_crypt_conf
: $(HOSTAP_DIR
)/.configured
33 $(MAKE
) -C
$(HOSTAP_DIR
)/utils \
35 CFLAGS
="-Os -Wall $(TARGET_CFLAGS) -I../driver/modules"
36 $(MAKE
) -C
$(HOSTAP_DIR
)/hostapd \
38 CFLAGS
="-Os -Wall $(TARGET_CFLAGS) -I../driver/modules -I../utils"
39 touch
-c
$(HOSTAP_DIR
)/driver
/modules
/hostap.o
41 $(TARGET_DIR
)//usr
/bin
/hostap_crypt_conf
: $(HOSTAP_DIR
)/utils
/hostap_crypt_conf
43 rm -rf
$(HOSTAP_TARGET_MODULE_DIR
)
44 mkdir
-p
$(HOSTAP_TARGET_MODULE_DIR
)
45 # Copy the pcmcia-cs conf file
46 mkdir
-p
$(TARGET_DIR
)/etc
/pcmcia
47 cp
-af
$(HOSTAP_DIR
)/driver
/etc
/hostap_cs.conf
$(TARGET_DIR
)/etc
/pcmcia
/
49 cp
-af
$(HOSTAP_DIR
)/utils
/hostap_crypt_conf
$(TARGET_DIR
)/usr
/bin
/
50 cp
-af
$(HOSTAP_DIR
)/utils
/hostap_diag
$(TARGET_DIR
)/usr
/bin
/
51 cp
-af
$(HOSTAP_DIR
)/utils
/prism2_param
$(TARGET_DIR
)/usr
/bin
/
52 cp
-af
$(HOSTAP_DIR
)/utils
/prism2_srec
$(TARGET_DIR
)/usr
/bin
/
54 cp
-af
$(HOSTAP_DIR
)/hostapd
/hostapd
$(TARGET_DIR
)/usr
/sbin
/
56 hostap
: pcmcia
$(TARGET_DIR
)//usr
/bin
/hostap_crypt_conf
59 $(MAKE
) DESTDIR
=$(TARGET_DIR
) CC
=$(TARGET_CC
) -C
$(HOSTAP_DIR
) uninstall
60 -$(MAKE
) -C
$(HOSTAP_DIR
) clean
65 #############################################################
67 # Toplevel Makefile options
69 #############################################################
70 ifeq ($(BR2_PACKAGE_HOSTAP
),y
)