2 # Copyright (C) 2006 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
:=cvs-2007060307
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=http
://downloads.openwrt.org
/sources
18 PKG_MD5SUM
:=8d71fee47bdaac4c7d79180a4ea33649
20 include $(INCLUDE_DIR
)/package.mk
22 define KernelPackage
/rt61
23 SUBMENU
:=Wireless Drivers
24 TITLE
:=Driver for ralink MiMo pci chipsets
25 DEPENDS
:=@LINUX_2_6 @PCI_SUPPORT
+wireless-tools
26 URL
:=http
://rt2x00.serialmonkey.com
/
28 $(PKG_BUILD_DIR
)/Module
/rt61.
$(LINUX_KMOD_SUFFIX
)
29 AUTOLOAD
:=$(call AutoLoad
,50,rt61
)
32 define KernelPackage
/rt61
/description
33 This package contains a driver for ralink rt2x61 pci chipsets.
36 define KernelPackage
/rt61
/install
37 mkdir
-p
$(1)/lib
/firmware
38 $(CP
) -L
$(PKG_BUILD_DIR
)/Module
/rt2?
61*.bin
$(1)/lib
/firmware
41 LINUX_PATCHLEVEL
:=$(shell echo
"$(LINUX_VERSION)" | cut
-d.
-f2
)
44 $(MAKE
) -C
$(LINUX_DIR
) \
45 ARCH
="$(LINUX_KARCH)" \
46 CROSS_COMPILE
="$(TARGET_CROSS)" \
47 PATCHLEVEL
="$(LINUX_PATCHLEVEL)" \
48 KERNDIR
="$(LINUX_DIR)" \
49 SUBDIRS
="$(PKG_BUILD_DIR)/Module" \
53 $(eval
$(call KernelPackage
,rt61
))