1 # $Id: Makefile 1832 2005-09-03 19:27:27Z wbx $
3 include $(TOPDIR
)/rules.mk
6 PKG_NAME
:=hostap-driver
9 PKG_MD5SUM
:=8ee17f206e035075b20fcba96b168234
11 PKG_SOURCE_URL
:=http
://hostap.epitest.fi
/releases
/
12 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
16 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
19 KERNEL_DIR
:=$(LINUX_DIR
)
22 include $(TOPDIR
)/package
/rules.mk
24 $(eval
$(call PKG_template
,KMOD_HOSTAP
,kmod-hostap
,$(LINUX_VERSION
)$(BOARD
)+$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
),kernel
($(LINUX_VERSION
)-$(BOARD
)-$(KERNEL_RELEASE
))))
25 $(eval
$(call PKG_template
,KMOD_HOSTAP_PCI
,kmod-hostap-pci
,$(LINUX_VERSION
)$(BOARD
)+$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
),kernel
($(LINUX_VERSION
)-$(BOARD
)-$(KERNEL_RELEASE
))))
26 $(eval
$(call PKG_template
,KMOD_HOSTAP_PLX
,kmod-hostap-plx
,$(LINUX_VERSION
)$(BOARD
)+$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
),kernel
($(LINUX_VERSION
)-$(BOARD
)-$(KERNEL_RELEASE
))))
28 $(PKG_BUILD_DIR
)/.configured
:
31 $(PKG_BUILD_DIR
)/.built
:
32 $(MAKE
) -C
$(KERNEL_DIR
)/ \
33 SUBDIRS
="$(PKG_BUILD_DIR)/driver/modules" \
38 install -m0755
-d
$(IDIR_KMOD_HOSTAP
)/lib
/modules
/$(LINUX_VERSION
)
40 $(PKG_BUILD_DIR
)/driver
/modules
/hostap.o \
41 $(PKG_BUILD_DIR
)/driver
/modules
/hostap_crypt_ccmp.o \
42 $(PKG_BUILD_DIR
)/driver
/modules
/hostap_crypt_tkip.o \
43 $(PKG_BUILD_DIR
)/driver
/modules
/hostap_crypt_wep.o \
44 $(IDIR_KMOD_HOSTAP
)/lib
/modules
/$(LINUX_VERSION
)/
45 $(RSTRIP_KMOD
) $(IDIR_KMOD_HOSTAP
)
46 $(IPKG_BUILD
) $(IDIR_KMOD_HOSTAP
) $(PACKAGE_DIR
)
48 $(IPKG_KMOD_HOSTAP_PCI
):
49 install -m0755
-d
$(IDIR_KMOD_HOSTAP_PCI
)/lib
/modules
/$(LINUX_VERSION
)
51 $(PKG_BUILD_DIR
)/driver
/modules
/hostap_pci.o \
52 $(IDIR_KMOD_HOSTAP_PCI
)/lib
/modules
/$(LINUX_VERSION
)/
53 $(RSTRIP_KMOD
) $(IDIR_KMOD_HOSTAP_PCI
)
54 $(IPKG_BUILD
) $(IDIR_KMOD_HOSTAP_PCI
) $(PACKAGE_DIR
)
56 $(IPKG_KMOD_HOSTAP_PLX
):
57 install -m0755
-d
$(IDIR_KMOD_HOSTAP_PLX
)/lib
/modules
/$(LINUX_VERSION
)
59 $(PKG_BUILD_DIR
)/driver
/modules
/hostap_plx.o \
60 $(IDIR_KMOD_HOSTAP_PLX
)/lib
/modules
/$(LINUX_VERSION
)/
61 $(RSTRIP_KMOD
) $(IDIR_KMOD_HOSTAP_PLX
)
62 $(IPKG_BUILD
) $(IDIR_KMOD_HOSTAP_PLX
) $(PACKAGE_DIR
)