2 # Copyright (C) 2007 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
13 PKG_VERSION
:=git-200706018
15 include $(INCLUDE_DIR
)/package.mk
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
)
25 define KernelPackage
/rt2x00-lib
26 $(call Package
/rt2x00
/Default
)
29 FILES
:=$(PKG_BUILD_DIR
)/rt2x00lib.
$(LINUX_KMOD_SUFFIX
)
30 AUTOLOAD
:=$(call AutoLoad
,25,rt2x00lib
)
33 define KernelPackage
/rt2x00-pci
34 $(call Package
/rt2x00
/Default
)
37 FILES
:=$(PKG_BUILD_DIR
)/rt2x00pci.
$(LINUX_KMOD_SUFFIX
)
38 AUTOLOAD
:=$(call AutoLoad
,26,rt2x00pci
)
41 define KernelPackage
/rt2x00-usb
42 $(call Package
/rt2x00
/Default
)
45 FILES
:=$(PKG_BUILD_DIR
)/rt2x00usb.
$(LINUX_KMOD_SUFFIX
)
46 AUTOLOAD
:=$(call AutoLoad
,26,rt2x00usb
)
50 $(call Build
/Prepare
/Default
)
51 $(CP
) -r src
/* $(PKG_BUILD_DIR
)/
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" \
65 $(eval
$(call KernelPackage
,rt2x00-lib
))
66 $(eval
$(call KernelPackage
,rt2x00-pci
))
67 $(eval
$(call KernelPackage
,rt2x00-usb
))