use the cross-compiler to build additional packages
[openwrt.git] / openwrt / target / linux / package / hostap / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4 include ../../rules.mk
5
6 PKG_NAME:=hostap-driver
7 PKG_VERSION:=0.4.5
8 PKG_RELEASE:=1
9 PKG_MD5SUM:=8ee17f206e035075b20fcba96b168234
10
11 PKG_SOURCE_URL:=http://hostap.epitest.fi/releases/
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13 PKG_CAT:=zcat
14
15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
16 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
17
18 ifeq ($(KERNEL_DIR),)
19 KERNEL_DIR:=$(LINUX_DIR)
20 endif
21
22 include $(TOPDIR)/package/rules.mk
23
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))))
27
28 $(PKG_BUILD_DIR)/.configured:
29 touch $@
30
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" \
36 modules
37 touch $@
38
39 $(IPKG_KMOD_HOSTAP):
40 install -m0755 -d $(IDIR_KMOD_HOSTAP)/lib/modules/$(LINUX_VERSION)
41 cp -fpR \
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 $(RSTRIP_KMOD) $(IDIR_KMOD_HOSTAP)
48 $(IPKG_BUILD) $(IDIR_KMOD_HOSTAP) $(PACKAGE_DIR)
49
50 $(IPKG_KMOD_HOSTAP_PCI):
51 install -m0755 -d $(IDIR_KMOD_HOSTAP_PCI)/lib/modules/$(LINUX_VERSION)
52 cp -fpR \
53 $(PKG_BUILD_DIR)/driver/modules/hostap_pci.$(LINUX_KMOD_SUFFIX) \
54 $(IDIR_KMOD_HOSTAP_PCI)/lib/modules/$(LINUX_VERSION)/
55 $(RSTRIP_KMOD) $(IDIR_KMOD_HOSTAP_PCI)
56 $(IPKG_BUILD) $(IDIR_KMOD_HOSTAP_PCI) $(PACKAGE_DIR)
57
58 $(IPKG_KMOD_HOSTAP_PLX):
59 install -m0755 -d $(IDIR_KMOD_HOSTAP_PLX)/lib/modules/$(LINUX_VERSION)
60 cp -fpR \
61 $(PKG_BUILD_DIR)/driver/modules/hostap_plx.$(LINUX_KMOD_SUFFIX) \
62 $(IDIR_KMOD_HOSTAP_PLX)/lib/modules/$(LINUX_VERSION)/
63 $(RSTRIP_KMOD) $(IDIR_KMOD_HOSTAP_PLX)
64 $(IPKG_BUILD) $(IDIR_KMOD_HOSTAP_PLX) $(PACKAGE_DIR)
65
This page took 0.049464 seconds and 5 git commands to generate.