port wlcompat changes to -ng
[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:=@PCI_SUPPORT||PCMCIA_SUPPORT
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 ifeq ($(KERNEL),2.6)
41 VERSION:=$(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE)
42 else
43 VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
44 endif
45 endef
46
47 define Package/kmod-hostap-pci
48 $(call Package/kmod-hostap)
49 DEPENDS:=kmod-hostap
50 TITLE:=Host AP driver for Prism2.5 PCI adaptors
51 DESCRIPTION:=Host AP driver for Prism2.5 PCI adaptors
52 endef
53
54 define Package/kmod-hostap-plx
55 $(call Package/kmod-hostap)
56 DEPENDS:=kmod-hostap
57 TITLE:=Host AP driver for Prism2/2.5/3 in PLX9052 based PCI adaptors
58 DESCRIPTION:=Host AP driver for Prism2/2.5/3 in PLX9052 based PCI adaptors
59 endef
60
61 ifeq ($(KERNEL),2.4)
62 define Build/Compile
63 $(MAKE) -C $(LINUX_DIR)/ \
64 ARCH="$(LINUX_KARCH)" \
65 CROSS_COMPILE="$(TARGET_CROSS)" \
66 SUBDIRS="$(PKG_BUILD_DIR)/driver/modules" \
67 modules
68 endef
69
70 define Package/kmod-hostap/install
71 install -m0755 -d $(1)/lib/modules/$(LINUX_VERSION)
72 $(CP) \
73 $(PKG_BUILD_DIR)/driver/modules/hostap.$(LINUX_KMOD_SUFFIX) \
74 $(PKG_BUILD_DIR)/driver/modules/hostap_crypt_ccmp.$(LINUX_KMOD_SUFFIX) \
75 $(PKG_BUILD_DIR)/driver/modules/hostap_crypt_tkip.$(LINUX_KMOD_SUFFIX) \
76 $(PKG_BUILD_DIR)/driver/modules/hostap_crypt_wep.$(LINUX_KMOD_SUFFIX) \
77 $(1)/lib/modules/$(LINUX_VERSION)/
78 endef
79
80 define Package/kmod-hostap-pci/install
81 install -m0755 -d $(1)/lib/modules/$(LINUX_VERSION)
82 $(CP) \
83 $(PKG_BUILD_DIR)/driver/modules/hostap_pci.$(LINUX_KMOD_SUFFIX) \
84 $(1)/lib/modules/$(LINUX_VERSION)/
85 endef
86
87 define Package/kmod-hostap-plx/install
88 install -m0755 -d $(1)/lib/modules/$(LINUX_VERSION)
89 $(CP) \
90 $(PKG_BUILD_DIR)/driver/modules/hostap_plx.$(LINUX_KMOD_SUFFIX) \
91 $(1)/lib/modules/$(LINUX_VERSION)/
92 endef
93 endif
94
95 ifeq ($(KERNEL),2.6)
96 define Build/Compile
97 endef
98
99 define Package/kmod-hostap/install
100 install -m0755 -d $(1)/lib/modules/$(LINUX_VERSION)
101 $(CP) \
102 $(MODULES_DIR)/kernel/drivers/net/wireless/hostap/hostap.$(LINUX_KMOD_SUFFIX) \
103 $(1)/lib/modules/$(LINUX_VERSION)/
104 endef
105
106 define Package/kmod-hostap-pci/install
107 install -m0755 -d $(1)/lib/modules/$(LINUX_VERSION)
108 $(CP) \
109 $(MODULES_DIR)/kernel/drivers/net/wireless/hostap/hostap_pci.$(LINUX_KMOD_SUFFIX) \
110 $(1)/lib/modules/$(LINUX_VERSION)/
111 endef
112
113 define Package/kmod-hostap-plx/install
114 install -m0755 -d $(1)/lib/modules/$(LINUX_VERSION)
115 $(CP) \
116 $(MODULES_DIR)/kernel/drivers/net/wireless/hostap/hostap_plx.$(LINUX_KMOD_SUFFIX) \
117 $(1)/lib/modules/$(LINUX_VERSION)/
118 endef
119 endif
120
121 $(eval $(call BuildPackage,kmod-hostap))
122 $(eval $(call BuildPackage,kmod-hostap-pci))
123 $(eval $(call BuildPackage,kmod-hostap-plx))
This page took 0.055895 seconds and 5 git commands to generate.