3 include $(TOPDIR
)/rules.mk
6 PKG_NAME
:=hostap-driver
9 PKG_MD5SUM
:=ee495686cf27011b4e401963c2c7f62a
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
)+$(PKG_VERSION
)-$(BOARD
)-$(PKG_RELEASE
),$(ARCH
),kernel
($(LINUX_VERSION
)-$(BOARD
)-$(KERNEL_RELEASE
))))
25 $(eval
$(call PKG_template
,KMOD_HOSTAP_PCI
,kmod-hostap-pci
,$(LINUX_VERSION
)+$(PKG_VERSION
)-$(BOARD
)-$(PKG_RELEASE
),$(ARCH
),kernel
($(LINUX_VERSION
)-$(BOARD
)-$(KERNEL_RELEASE
))))
26 $(eval
$(call PKG_template
,KMOD_HOSTAP_PLX
,kmod-hostap-plx
,$(LINUX_VERSION
)+$(PKG_VERSION
)-$(BOARD
)-$(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 ARCH
="$(LINUX_KARCH)" \
34 CROSS_COMPILE
="$(TARGET_CROSS)" \
35 SUBDIRS
="$(PKG_BUILD_DIR)/driver/modules" \
40 install -m0755
-d
$(IDIR_KMOD_HOSTAP
)/lib
/modules
/$(LINUX_VERSION
)
42 $(PKG_BUILD_DIR
)/driver
/modules
/hostap.
$(LINUX_KMOD_SUFFIX
) \
43 $(PKG_BUILD_DIR
)/driver
/modules
/hostap_crypt_ccmp.
$(LINUX_KMOD_SUFFIX
) \
44 $(PKG_BUILD_DIR
)/driver
/modules
/hostap_crypt_tkip.
$(LINUX_KMOD_SUFFIX
) \
45 $(PKG_BUILD_DIR
)/driver
/modules
/hostap_crypt_wep.
$(LINUX_KMOD_SUFFIX
) \
46 $(IDIR_KMOD_HOSTAP
)/lib
/modules
/$(LINUX_VERSION
)/
47 $(IPKG_BUILD
) $(IDIR_KMOD_HOSTAP
) $(PACKAGE_DIR
)
49 $(IPKG_KMOD_HOSTAP_PCI
):
50 install -m0755
-d
$(IDIR_KMOD_HOSTAP_PCI
)/lib
/modules
/$(LINUX_VERSION
)
52 $(PKG_BUILD_DIR
)/driver
/modules
/hostap_pci.
$(LINUX_KMOD_SUFFIX
) \
53 $(IDIR_KMOD_HOSTAP_PCI
)/lib
/modules
/$(LINUX_VERSION
)/
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.
$(LINUX_KMOD_SUFFIX
) \
60 $(IDIR_KMOD_HOSTAP_PLX
)/lib
/modules
/$(LINUX_VERSION
)/
61 $(IPKG_BUILD
) $(IDIR_KMOD_HOSTAP_PLX
) $(PACKAGE_DIR
)