source: trunk/package/hostap-driver/Makefile @ 20366

Last change on this file since 20366 was 20366, checked in by acoul, 7 years ago

hostap-driver: fix DEPENDS on Makefile

  • Property svn:copyright set to Copyright (C) 2006 OpenWrt.org
  • Property svn:eol-style set to native
File size: 5.1 KB
Line 
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
8include $(TOPDIR)/rules.mk
9include $(INCLUDE_DIR)/kernel.mk
10
11PKG_NAME:=hostap-driver
12PKG_VERSION:=0.4.9
13PKG_RELEASE:=1
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16PKG_SOURCE_URL:=http://hostap.epitest.fi/releases/
17PKG_MD5SUM:=c7534dc040ab90218257a78488ecd378
18
19include $(INCLUDE_DIR)/package.mk
20ifeq ($(DUMP),)
21  -include $(LINUX_DIR)/.config
22endif
23
24define KernelPackage/hostap/Default/2.4
25  VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
26endef
27
28define KernelPackage/hostap/Default/2.6
29  VERSION:=$(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE)
30endef
31
32define KernelPackage/hostap/Default
33$(call KernelPackage/hostap/Default/$(KERNEL))
34  SUBMENU:=Wireless Drivers
35  URL:=http://hostap.epitest.fi/
36endef
37
38define KernelPackage/hostap/Default/description
39 Host AP is a driver for 802.11b wireless cards based on Intersil
40 Prism2/2.5/3 chipset. It supports so called Host AP mode that allows the
41 card to act as an IEEE 802.11 access point.
42endef
43
44
45define KernelPackage/hostap
46$(call KernelPackage/hostap/Default)
47  TITLE:=Host AP support for Prism2/2.5/3
48  DEPENDS:=@PCI_SUPPORT||PCMCIA_SUPPORT +LINUX_2_6:kmod-lib80211 +wireless-tools
49  KCONFIG:=CONFIG_HOSTAP CONFIG_HOSTAP_FIRMWARE=y CONFIG_HOSTAP_FIRMWARE_NVRAM=y
50endef
51
52define KernelPackage/hostap/2.4
53# NOTE: needed to remove the dependency on kmod-ieee80211 in the final ipkg
54  DEPENDS:=
55# NOTE: needed to build the standalone version on 2.4
56  KCONFIG:=
57  FILES:= \
58        $(PKG_BUILD_DIR)/driver/modules/hostap.$(LINUX_KMOD_SUFFIX) \
59        $(PKG_BUILD_DIR)/driver/modules/hostap_crypt_ccmp.$(LINUX_KMOD_SUFFIX) \
60        $(PKG_BUILD_DIR)/driver/modules/hostap_crypt_tkip.$(LINUX_KMOD_SUFFIX) \
61        $(PKG_BUILD_DIR)/driver/modules/hostap_crypt_wep.$(LINUX_KMOD_SUFFIX)
62  AUTOLOAD:=$(call AutoLoad,60,hostap hostap_crypt_wep hostap_crypt_tkip hostap_crypt_ccmp)
63endef
64
65define KernelPackage/hostap/2.6
66  FILES:= \
67        $(LINUX_DIR)/drivers/net/wireless/hostap/hostap.$(LINUX_KMOD_SUFFIX)
68  AUTOLOAD:=$(call AutoLoad,60,hostap)
69endef
70
71define KernelPackage/hostap/description
72$(call KernelPackage/hostap/Default/description)
73 This package contains the base Host AP driver code that is shared by
74 different hardware models. You will also need to enable support for
75 PLX/PCI/CS version of the driver to actually use the driver.
76endef
77
78
79define KernelPackage/hostap-cs
80$(call KernelPackage/hostap/Default)
81  TITLE:=Host AP driver for PCMCIA adaptors
82  DEPENDS:=@PCMCIA_SUPPORT +kmod-hostap +kmod-pcmcia-core
83  KCONFIG:=CONFIG_HOSTAP_CS
84  AUTOLOAD:=$(call AutoLoad,60,hostap_cs)
85endef
86define KernelPackage/hostap-cs/2.4
87# NOTE: needed to build the standalone version on 2.4
88  KCONFIG:=
89  FILES:= \
90        $(PKG_BUILD_DIR)/driver/modules/hostap_cs.$(LINUX_KMOD_SUFFIX)
91endef
92define KernelPackage/hostap-cs/2.6
93  FILES:= \
94        $(LINUX_DIR)/drivers/net/wireless/hostap/hostap_cs.$(LINUX_KMOD_SUFFIX)
95endef
96
97define KernelPackage/hostap-cs/description
98$(call KernelPackage/hostap/Default/description)
99 This package contains the Host AP driver for Prism2/2.5/3 PC cards.
100endef
101
102
103define KernelPackage/hostap-pci
104$(call KernelPackage/hostap/Default)
105  TITLE:=Host AP driver for PCI adaptors
106  DEPENDS:=@@PCI_SUPPORT +kmod-hostap
107  KCONFIG:=CONFIG_HOSTAP_PCI
108  AUTOLOAD:=$(call AutoLoad,60,hostap_pci)
109endef
110
111define KernelPackage/hostap-pci/2.4
112# NOTE: needed to build the standalone version on 2.4
113  KCONFIG:=
114  FILES:= \
115        $(PKG_BUILD_DIR)/driver/modules/hostap_pci.$(LINUX_KMOD_SUFFIX)
116endef
117
118define KernelPackage/hostap-pci/2.6
119  FILES:= \
120        $(LINUX_DIR)/drivers/net/wireless/hostap/hostap_pci.$(LINUX_KMOD_SUFFIX)
121endef
122
123define KernelPackage/hostap-pci/description
124$(call KernelPackage/hostap/Default/description)
125 This package contains the Host AP driver for Prism2.5 PCI adaptors.
126endef
127
128
129define KernelPackage/hostap-plx
130$(call KernelPackage/hostap/Default)
131  TITLE:=Host AP driver for PLX9052 based PCI adaptors
132  DEPENDS:=@PCI_SUPPORT +kmod-hostap
133  KCONFIG:=CONFIG_HOSTAP_PLX
134  AUTOLOAD:=$(call AutoLoad,60,hostap_plx)
135endef
136
137define KernelPackage/hostap-plx/2.4
138# NOTE: needed to build the standalone version on 2.4
139  KCONFIG:=
140  FILES:= \
141        $(PKG_BUILD_DIR)/driver/modules/hostap_plx.$(LINUX_KMOD_SUFFIX)
142endef
143
144define KernelPackage/hostap-plx/2.6
145  FILES:= \
146        $(LINUX_DIR)/drivers/net/wireless/hostap/hostap_plx.$(LINUX_KMOD_SUFFIX)
147endef
148
149define KernelPackage/hostap-plx/description
150$(call KernelPackage/hostap/Default/description)
151 This package contains the Host AP driver for Prism2/2.5/3 in PLX9052
152 based PCI adaptors.
153endef
154
155
156ifeq ($(KERNEL),2.4)
157  define Build/Compile
158        $(MAKE) -C $(LINUX_DIR)/ \
159                ARCH="$(LINUX_KARCH)" \
160                CROSS_COMPILE="$(TARGET_CROSS)" \
161                SUBDIRS="$(PKG_BUILD_DIR)/driver/modules" \
162                modules
163  endef
164else
165  define Build/Prepare
166        mkdir -p $(PKG_BUILD_DIR)
167  endef
168 
169  define Build/Configure
170  endef
171 
172  define Build/Compile
173  endef
174endif
175
176define KernelPackage/hostap/install
177        $(INSTALL_DIR) $(1)/lib/wifi
178        $(INSTALL_DATA) ./files/lib/wifi/hostap.sh $(1)/lib/wifi
179endef
180
181$(eval $(call KernelPackage,hostap))
182$(eval $(call KernelPackage,hostap-cs))
183$(eval $(call KernelPackage,hostap-pci))
184$(eval $(call KernelPackage,hostap-plx))
Note: See TracBrowser for help on using the repository browser.