15b4aecdd429066a4d0244978341afb30f9b1daa
[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
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=http://hostap.epitest.fi/releases/
18 PKG_MD5SUM:=c7534dc040ab90218257a78488ecd378
19 PKG_CAT:=zcat
20
21 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
22 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23
24 include $(INCLUDE_DIR)/package.mk
25 ifeq ($(DUMP),)
26 -include $(LINUX_DIR)/.config
27 endif
28
29 define KernelPackage/hostap/Default/2.4
30 VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
31 endef
32 define KernelPackage/hostap/Default/2.6
33 VERSION:=$(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE)
34 endef
35 define KernelPackage/hostap/Default
36 SUBMENU:=Wireless Drivers
37 DESCRIPTION:=\
38 Host AP is a driver for 802.11b wireless cards based on Intersil \\\
39 Prism2/2.5/3 chipset. It supports so called Host AP mode that allows the \\\
40 card to act as an IEEE 802.11 access point.
41 URL:=http://hostap.epitest.fi/
42 $(call KernelPackage/hostap/Default/$(KERNEL))
43 endef
44
45
46 define KernelPackage/hostap
47 $(call KernelPackage/hostap/Default)
48 DEPENDS:=@PCI_SUPPORT||PCMCIA_SUPPORT +kmod-ieee80211 +kmod-crypto
49 TITLE:=Host AP support for Prism2/2.5/3
50 DESCRIPTION+=\\\
51 \\\
52 This package contains the base Host AP driver code that is shared by \\\
53 different hardware models. You will also need to enable support for \\\
54 PLX/PCI/CS version of the driver to actually use the driver.
55 endef
56 define KernelPackage/hostap/2.4
57 DEPENDS:=+kmod-crypto
58 FILES:= \
59 $(PKG_BUILD_DIR)/driver/modules/hostap.$(LINUX_KMOD_SUFFIX) \
60 $(PKG_BUILD_DIR)/driver/modules/hostap_crypt_ccmp.$(LINUX_KMOD_SUFFIX) \
61 $(PKG_BUILD_DIR)/driver/modules/hostap_crypt_tkip.$(LINUX_KMOD_SUFFIX) \
62 $(PKG_BUILD_DIR)/driver/modules/hostap_crypt_wep.$(LINUX_KMOD_SUFFIX)
63 AUTOLOAD:=$(call AutoLoad,60,hostap hostap_crypt_wep hostap_crypt_tkip hostap_crypt_ccmp)
64 endef
65 define KernelPackage/hostap/2.6
66 KCONFIG:=$(CONFIG_HOSTAP)
67 FILES:= \
68 $(MODULES_DIR)/kernel/drivers/net/wireless/hostap/hostap.$(LINUX_KMOD_SUFFIX)
69 AUTOLOAD:=$(call AutoLoad,60,hostap)
70 endef
71
72
73 define KernelPackage/hostap-pci
74 $(call KernelPackage/hostap/Default)
75 DEPENDS:=kmod-hostap
76 TITLE:=Host AP driver for PCI adaptors
77 DESCRIPTION+=\\\
78 \\\
79 This package contains the Host AP driver for Prism2.5 PCI adaptors.
80 AUTOLOAD:=$(call AutoLoad,60,hostap_pci)
81 endef
82 define KernelPackage/hostap-pci/2.4
83 FILES:= \
84 $(PKG_BUILD_DIR)/driver/modules/hostap_pci.$(LINUX_KMOD_SUFFIX)
85 endef
86 define KernelPackage/hostap-pci/2.6
87 KCONFIG:=$(CONFIG_HOSTAP_PCI)
88 FILES:= \
89 $(MODULES_DIR)/kernel/drivers/net/wireless/hostap/hostap_pci.$(LINUX_KMOD_SUFFIX)
90 endef
91
92
93 define KernelPackage/hostap-plx
94 $(call KernelPackage/hostap/Default)
95 DEPENDS:=kmod-hostap
96 TITLE:=Host AP driver for PLX9052 based PCI adaptors
97 DESCRIPTION+=\\\
98 \\\
99 This package contains the Host AP driver for Prism2/2.5/3 in PLX9052 \\\
100 based PCI adaptors.
101 AUTOLOAD:=$(call AutoLoad,60,hostap_plx)
102 endef
103 define KernelPackage/hostap-plx/2.4
104 FILES:= \
105 $(PKG_BUILD_DIR)/driver/modules/hostap_plx.$(LINUX_KMOD_SUFFIX)
106 endef
107 define KernelPackage/hostap-plx/2.6
108 KCONFIG:=$(CONFIG_HOSTAP_PLX)
109 FILES:= \
110 $(MODULES_DIR)/kernel/drivers/net/wireless/hostap/hostap_plx.$(LINUX_KMOD_SUFFIX)
111 endef
112
113
114 ifeq ($(KERNEL),2.4)
115 define Build/Compile
116 $(MAKE) -C $(LINUX_DIR)/ \
117 ARCH="$(LINUX_KARCH)" \
118 CROSS_COMPILE="$(TARGET_CROSS)" \
119 SUBDIRS="$(PKG_BUILD_DIR)/driver/modules" \
120 modules
121 endef
122 else
123 define Build/Prepare
124 mkdir -p $(PKG_BUILD_DIR)
125 endef
126
127 define Build/Configure
128 endef
129
130 define Build/Compile
131 endef
132 endif
133
134
135 $(eval $(call KernelPackage,hostap))
136 $(eval $(call KernelPackage,hostap-pci))
137 $(eval $(call KernelPackage,hostap-plx))
This page took 0.04328 seconds and 3 git commands to generate.