2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
12 PKG_NAME
:=hostap-driver
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=http
://hostap.epitest.fi
/releases
/
18 PKG_MD5SUM
:=c7534dc040ab90218257a78488ecd378
21 PKG_BUILD_DIR
:=$(KERNEL_BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
22 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/kmod-hostap
/Default
28 CATEGORY
:=Kernel drivers
30 Host AP is a driver for
802.11b wireless cards based on Intersil
\\\
31 Prism2
/2.5/3 chipset. It supports so called Host AP mode that allows the
\\\
32 card to act
as an IEEE
802.11 access point.
33 URL
:=http
://hostap.epitest.fi
/
35 VERSION
:=$(LINUX_VERSION
)-$(BOARD
)-$(PKG_RELEASE
)
37 VERSION
:=$(LINUX_VERSION
)+$(PKG_VERSION
)-$(BOARD
)-$(PKG_RELEASE
)
41 define Package
/kmod-hostap
42 $(call Package
/kmod-hostap
/Default
)
43 DEPENDS
:=@PCI_SUPPORT||PCMCIA_SUPPORT
44 TITLE
:=Host AP support for Prism2
/2.5/3
47 This package contains the base Host AP driver code that is shared by
\\\
48 different hardware models. You will also need to enable support for
\\\
49 PLX
/PCI
/CS version of the driver to actually use the driver.
52 define Package
/kmod-hostap-pci
53 $(call Package
/kmod-hostap
/Default
)
55 TITLE
:=Host AP driver for PCI adaptors
58 This package contains the Host AP driver for Prism2.5 PCI adaptors.
61 define Package
/kmod-hostap-plx
62 $(call Package
/kmod-hostap
/Default
)
64 TITLE
:=Host AP driver for PLX9052 based PCI adaptors
67 This package contains the Host AP driver for Prism2
/2.5/3 in PLX9052
\\\
73 $(MAKE
) -C
$(LINUX_DIR
)/ \
74 ARCH
="$(LINUX_KARCH)" \
75 CROSS_COMPILE
="$(TARGET_CROSS)" \
76 SUBDIRS
="$(PKG_BUILD_DIR)/driver/modules" \
80 define Package
/kmod-hostap
/install
81 install -m0755
-d
$(1)/lib
/modules
/$(LINUX_VERSION
)
83 $(PKG_BUILD_DIR
)/driver
/modules
/hostap.
$(LINUX_KMOD_SUFFIX
) \
84 $(PKG_BUILD_DIR
)/driver
/modules
/hostap_crypt_ccmp.
$(LINUX_KMOD_SUFFIX
) \
85 $(PKG_BUILD_DIR
)/driver
/modules
/hostap_crypt_tkip.
$(LINUX_KMOD_SUFFIX
) \
86 $(PKG_BUILD_DIR
)/driver
/modules
/hostap_crypt_wep.
$(LINUX_KMOD_SUFFIX
) \
87 $(1)/lib
/modules
/$(LINUX_VERSION
)/
90 define Package
/kmod-hostap-pci
/install
91 install -m0755
-d
$(1)/lib
/modules
/$(LINUX_VERSION
)
93 $(PKG_BUILD_DIR
)/driver
/modules
/hostap_pci.
$(LINUX_KMOD_SUFFIX
) \
94 $(1)/lib
/modules
/$(LINUX_VERSION
)/
97 define Package
/kmod-hostap-plx
/install
98 install -m0755
-d
$(1)/lib
/modules
/$(LINUX_VERSION
)
100 $(PKG_BUILD_DIR
)/driver
/modules
/hostap_plx.
$(LINUX_KMOD_SUFFIX
) \
101 $(1)/lib
/modules
/$(LINUX_VERSION
)/
109 ifeq ($(CONFIG_HOSTAP
),m
)
110 define Package
/kmod-hostap
/install
111 install -m0755
-d
$(1)/lib
/modules
/$(LINUX_VERSION
)
113 $(MODULES_DIR
)/kernel
/drivers
/net
/wireless
/hostap
/hostap.
$(LINUX_KMOD_SUFFIX
) \
114 $(1)/lib
/modules
/$(LINUX_VERSION
)/
118 ifeq ($(CONFIG_HOSTAP_PCI
),m
)
119 define Package
/kmod-hostap-pci
/install
120 install -m0755
-d
$(1)/lib
/modules
/$(LINUX_VERSION
)
122 $(MODULES_DIR
)/kernel
/drivers
/net
/wireless
/hostap
/hostap_pci.
$(LINUX_KMOD_SUFFIX
) \
123 $(1)/lib
/modules
/$(LINUX_VERSION
)/
127 ifeq ($(CONFIG_HOSTAP_PLX
),m
)
128 define Package
/kmod-hostap-plx
/install
129 install -m0755
-d
$(1)/lib
/modules
/$(LINUX_VERSION
)
131 $(MODULES_DIR
)/kernel
/drivers
/net
/wireless
/hostap
/hostap_plx.
$(LINUX_KMOD_SUFFIX
) \
132 $(1)/lib
/modules
/$(LINUX_VERSION
)/
137 $(eval
$(call BuildPackage
,kmod-hostap
))
138 $(eval
$(call BuildPackage
,kmod-hostap-pci
))
139 $(eval
$(call BuildPackage
,kmod-hostap-plx
))