summaryrefslogtreecommitdiffstats
path: root/make/hostap.mk
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-01-19 07:49:24 +0000
committerEric Andersen <andersen@codepoet.org>2003-01-19 07:49:24 +0000
commit9741a49e5937f938627386e5c1e4f0f18ee32d4c (patch)
tree1306763ae2cfa6c82d13dc20d02326cc7887e906 /make/hostap.mk
parenta9bfe856cf5b524f157cda222c8b2d07f1463be9 (diff)
downloadbuildroot-novena-9741a49e5937f938627386e5c1e4f0f18ee32d4c.tar.gz
buildroot-novena-9741a49e5937f938627386e5c1e4f0f18ee32d4c.zip
several updates for wireless and firewall stuff,
thanks to Michael Shuler
Diffstat (limited to 'make/hostap.mk')
-rw-r--r--make/hostap.mk52
1 files changed, 52 insertions, 0 deletions
diff --git a/make/hostap.mk b/make/hostap.mk
new file mode 100644
index 000000000..bf2606c11
--- /dev/null
+++ b/make/hostap.mk
@@ -0,0 +1,52 @@
+#############################################################
+#
+# hostap
+#
+#############################################################
+HOSTAP_SOURCE_URL=http://hostap.epitest.fi/cgi-bin/viewcvs.cgi/hostap/hostap.tar.gz?tarball=1
+HOSTAP_SOURCE=hostap.tar.gz
+HOSTAP_BUILD_DIR=$(BUILD_DIR)/hostap-snapshot
+HOSTAP_TARGET_MODULE_DIR=$(TARGET_DIR)/lib/modules/$(LINUX_VERSION)/hostapd
+
+$(DL_DIR)/$(HOSTAP_SOURCE):
+ $(WGET) -P $(DL_DIR) $(HOSTAP_SOURCE_URL) -O $(DL_DIR)/$(HOSTAP_SOURCE)
+
+hostap-source: $(DL_DIR)/$(HOSTAP_SOURCE)
+
+$(HOSTAP_BUILD_DIR)/.unpacked: $(DL_DIR)/$(HOSTAP_SOURCE)
+ zcat $(DL_DIR)/$(HOSTAP_SOURCE) | tar -C $(BUILD_DIR) -xvf -
+ mv -f $(BUILD_DIR)/hostap $(HOSTAP_BUILD_DIR)
+ touch $(HOSTAP_BUILD_DIR)/.unpacked
+
+$(HOSTAP_BUILD_DIR)/.configured: $(HOSTAP_BUILD_DIR)/.unpacked
+ touch $(HOSTAP_BUILD_DIR)/.configured
+
+$(HOSTAP_BUILD_DIR)/driver/modules/hostap.o: $(HOSTAP_BUILD_DIR)/.configured
+ $(MAKE) -C $(HOSTAP_BUILD_DIR) pccard KERNEL_PATH=$(BUILD_DIR)/linux CC=$(TARGET_CC)
+ $(MAKE) -C $(HOSTAP_BUILD_DIR)/utils CC=$(TARGET_CC)
+ $(MAKE) -C $(HOSTAP_BUILD_DIR)/hostapd CC=$(TARGET_CC)
+
+$(HOSTAP_TARGET_MODULE_DIR)/hostap.o: $(HOSTAP_BUILD_DIR)/driver/modules/hostap.o
+ # Make the dir
+ rm -Rf $(HOSTAP_TARGET_MODULE_DIR)
+ mkdir -p $(HOSTAP_TARGET_MODULE_DIR)
+ # Copy The Module Files
+ cp -af $(HOSTAP_BUILD_DIR)/driver/modules/*.o $(HOSTAP_TARGET_MODULE_DIR)/
+ cp -af $(HOSTAP_BUILD_DIR)/driver/etc/hostap_cs.conf $(TARGET_DIR)/etc/pcmcia/
+ # Copy The Utils
+ cp -af $(HOSTAP_BUILD_DIR)/utils/hostap_crypt_conf $(TARGET_DIR)/usr/bin/
+ cp -af $(HOSTAP_BUILD_DIR)/utils/hostap_diag $(TARGET_DIR)/usr/bin/
+ cp -af $(HOSTAP_BUILD_DIR)/utils/prism2_param $(TARGET_DIR)/usr/bin/
+ cp -af $(HOSTAP_BUILD_DIR)/utils/prism2_srec $(TARGET_DIR)/usr/bin/
+ # Copy hostapd
+ cp -af $(HOSTAP_BUILD_DIR)/hostapd/hostapd $(TARGET_DIR)/usr/sbin/
+
+hostap: $(HOSTAP_TARGET_MODULE_DIR)/hostap.o
+
+hostap-clean:
+ $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(HOSTAP_BUILD_DIR) uninstall
+ -$(MAKE) -C $(HOSTAP_BUILD_DIR) clean
+
+hostap-dirclean:
+ rm -rf $(HOSTAP_BUILD_DIR)
+