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.
7 # $Id: Makefile 5314 2006-10-27 19:14:43Z nico $
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=@SF
/rt2400
18 PKG_MD5SUM
:=f4131d670920a878b4d4a0f5d4d8b93a
21 PKG_BUILD_DIR
:=$(KERNEL_BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
23 include $(INCLUDE_DIR
)/package.mk
25 define KernelPackage
/rt2570
26 SUBMENU
:=Wireless Drivers
27 TITLE
:=Driver for ralink usb wireless chipsets
28 DEPENDS
:=@USB_SUPPORT
+wireless-tools
30 This package contains a driver for ralink rt2570 usb chipsets.
31 URL
:=http
://rt2x00.serialmonkey.com
/
32 VERSION
:=$(LINUX_VERSION
)+$(PKG_VERSION
)-$(BOARD
)-$(PKG_RELEASE
)
34 $(PKG_BUILD_DIR
)/Module
/rt2570.
$(LINUX_KMOD_SUFFIX
)
35 AUTOLOAD
:=$(call AutoLoad
,50,rt2570
)
39 $(MAKE
) -C
"$(PKG_BUILD_DIR)/Module" \
41 ARCH
="$(LINUX_KARCH)" \
42 PWD
="$(PKG_BUILD_DIR)/Module" \
43 KERNDIR
="$(LINUX_DIR)" \
44 PATCHLEVEL
="$(patsubst 2.%,%,$(KERNEL))"
47 $(eval
$(call KernelPackage
,rt2570
))