disable kmod-ip6tables if netfilter ipv6 support is disabled
[openwrt.git] / package / hostap / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=hostap-driver
13 PKG_VERSION:=0.4.9
14 PKG_RELEASE:=1
15 PKG_MD5SUM:=c7534dc040ab90218257a78488ecd378
16
17 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
18 PKG_SOURCE_URL:=http://hostap.epitest.fi/releases/
19 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
20 PKG_CAT:=zcat
21
22 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/kmod-hostap
27 SECTION:=drivers
28 CATEGORY:=Drivers
29 DEPENDS:=@LINUX_2_4_BRCM||LINUX_2_4_X86
30 TITLE:=Host AP support for Prism2/2.5/3 IEEE 802.11b
31 DESCRIPTION:=Host AP support for Prism2/2.5/3 IEEE 802.11b \\\
32 A driver for 802.11b wireless cards based on Intersil Prism2/2.5/3 \\\
33 chipset. This driver supports so called Host AP mode that allows the card \\\
34 to act as an IEEE 802.11 access point. \\\
35 \\\
36 This option includes the base Host AP driver code that is shared by \\\
37 different hardware models. You will also need to enable support for \\\
38 PLX/PCI/CS version of the driver to actually use the driver. \\\
39 URL:=http://hostap.epitest.fi/
40 VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
41 endef
42
43 define Package/kmod-hostap-pci
44 $(call Package/kmod-hostap)
45 DEPENDS:=kmod-hostap
46 TITLE:=Host AP driver for Prism2.5 PCI adaptors
47 DESCRIPTION:=Host AP driver for Prism2.5 PCI adaptors
48 endef
49
50 define Package/kmod-hostap-plx
51 $(call Package/kmod-hostap)
52 DEPENDS:=kmod-hostap
53 TITLE:=Host AP driver for Prism2/2.5/3 in PLX9052 based PCI adaptors
54 DESCRIPTION:=Host AP driver for Prism2/2.5/3 in PLX9052 based PCI adaptors
55 endef
56
57
58 define Build/Compile
59 $(MAKE) -C $(LINUX_DIR)/ \
60 ARCH="$(LINUX_KARCH)" \
61 CROSS_COMPILE="$(TARGET_CROSS)" \
62 SUBDIRS="$(PKG_BUILD_DIR)/driver/modules" \
63 modules
64 endef
65
66 define Package/kmod-hostap/install
67 install -m0755 -d $(1)/lib/modules/$(LINUX_VERSION)
68 $(CP) \
69 $(PKG_BUILD_DIR)/driver/modules/hostap.$(LINUX_KMOD_SUFFIX) \
70 $(PKG_BUILD_DIR)/driver/modules/hostap_crypt_ccmp.$(LINUX_KMOD_SUFFIX) \
71 $(PKG_BUILD_DIR)/driver/modules/hostap_crypt_tkip.$(LINUX_KMOD_SUFFIX) \
72 $(PKG_BUILD_DIR)/driver/modules/hostap_crypt_wep.$(LINUX_KMOD_SUFFIX) \
73 $(1)/lib/modules/$(LINUX_VERSION)/
74 endef
75
76 define Package/kmod-hostap-pci/install
77 install -m0755 -d $(1)/lib/modules/$(LINUX_VERSION)
78 $(CP) \
79 $(PKG_BUILD_DIR)/driver/modules/hostap_pci.$(LINUX_KMOD_SUFFIX) \
80 $(1)/lib/modules/$(LINUX_VERSION)/
81 endef
82
83 define Package/kmod-hostap-plx/install
84 install -m0755 -d $(1)/lib/modules/$(LINUX_VERSION)
85 $(CP) \
86 $(PKG_BUILD_DIR)/driver/modules/hostap_plx.$(LINUX_KMOD_SUFFIX) \
87 $(1)/lib/modules/$(LINUX_VERSION)/
88 endef
89
90 $(eval $(call BuildPackage,kmod-hostap))
91 $(eval $(call BuildPackage,kmod-hostap-pci))
92 $(eval $(call BuildPackage,kmod-hostap-plx))
This page took 0.051265 seconds and 5 git commands to generate.