2006-11-27 05:34:06 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2007-03-04 04:41:46 +00:00
|
|
|
# $Id$
|
2006-11-27 05:34:06 +00:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
|
|
|
|
PKG_NAME:=rt2570
|
|
|
|
PKG_VERSION:=1.1.0-b2
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@SF/rt2400
|
|
|
|
PKG_MD5SUM:=f4131d670920a878b4d4a0f5d4d8b93a
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define KernelPackage/rt2570
|
|
|
|
SUBMENU:=Wireless Drivers
|
|
|
|
TITLE:=Driver for ralink usb wireless chipsets
|
2007-01-01 23:23:45 +00:00
|
|
|
DEPENDS:=@LINUX_2_4 @USB_SUPPORT +wireless-tools
|
2006-11-27 05:34:06 +00:00
|
|
|
DESCRIPTION:=\
|
|
|
|
This package contains a driver for ralink rt2570 usb chipsets.
|
|
|
|
URL:=http://rt2x00.serialmonkey.com/
|
|
|
|
FILES:= \
|
|
|
|
$(PKG_BUILD_DIR)/Module/rt2570.$(LINUX_KMOD_SUFFIX)
|
|
|
|
AUTOLOAD:=$(call AutoLoad,50,rt2570)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C "$(PKG_BUILD_DIR)/Module" \
|
|
|
|
CC="$(TARGET_CC)" \
|
2006-12-12 13:32:47 +00:00
|
|
|
LD="$(TARGET_CROSS)ld" \
|
2006-11-27 05:34:06 +00:00
|
|
|
ARCH="$(LINUX_KARCH)" \
|
|
|
|
PWD="$(PKG_BUILD_DIR)/Module" \
|
|
|
|
KERNDIR="$(LINUX_DIR)" \
|
2006-12-12 12:56:00 +00:00
|
|
|
PATCHLEVEL="$(patsubst 2.%,%,$(KERNEL))"
|
2006-11-27 05:34:06 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,rt2570))
|