Add rt2x00-mac80211 snapshot (#1916)
[openwrt.git] / package / rt2x00 / Makefile
1 #
2 # Copyright (C) 2007 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:=kmod-rt2x00
13 PKG_VERSION:=git-200706018
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define Package/rt2x00/Default
18 SUBMENU:=Wireless Drivers
19 DEPENDS:=@LINUX_2_6 +kmod-mac80211 @LINUX_2_6_X86||@LINUX_2_6_RDC
20 TITLE:=Ralink GPL Drivers
21 DESCRIPTION:=Ralink GPL Drivers for rt2x00 cards
22 VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(LINUX_RELEASE)
23 endef
24
25 define KernelPackage/rt2x00-lib
26 $(call Package/rt2x00/Default)
27 TITLE+= (LIB)
28 DESCRIPTION+= (LIB)
29 FILES:=$(PKG_BUILD_DIR)/rt2x00lib.$(LINUX_KMOD_SUFFIX)
30 AUTOLOAD:=$(call AutoLoad,25,rt2x00lib)
31 endef
32
33 define KernelPackage/rt2x00-pci
34 $(call Package/rt2x00/Default)
35 TITLE+= (PCI)
36 DESCRIPTION+= (PCI)
37 FILES:=$(PKG_BUILD_DIR)/rt2x00pci.$(LINUX_KMOD_SUFFIX)
38 AUTOLOAD:=$(call AutoLoad,26,rt2x00pci)
39 endef
40
41 define KernelPackage/rt2x00-usb
42 $(call Package/rt2x00/Default)
43 TITLE+= (USB)
44 DESCRIPTION+= (USB)
45 FILES:=$(PKG_BUILD_DIR)/rt2x00usb.$(LINUX_KMOD_SUFFIX)
46 AUTOLOAD:=$(call AutoLoad,26,rt2x00usb)
47 endef
48
49 define Build/Prepare
50 $(call Build/Prepare/Default)
51 $(CP) -r src/* $(PKG_BUILD_DIR)/
52 endef
53
54 define Build/Compile
55 $(MAKE) -C "$(LINUX_DIR)" \
56 CROSS_COMPILE="$(TARGET_CROSS)" \
57 ARCH="$(LINUX_KARCH)" \
58 SUBDIRS="$(PKG_BUILD_DIR)" \
59 KERNELVERSION="$(KERNEL)" \
60 KERNEL_SOURCE="$(LINUX_DIR)" \
61 EXTRA_CFLAGS="$(BUILDFLAGS) -include $(PKG_BUILD_DIR)/rt2x00_compat.h" \
62 KDIR="$(LINUX_DIR)"
63 endef
64
65 $(eval $(call KernelPackage,rt2x00-lib))
66 $(eval $(call KernelPackage,rt2x00-pci))
67 $(eval $(call KernelPackage,rt2x00-usb))
This page took 0.042728 seconds and 5 git commands to generate.