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