diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-11-27 05:34:06 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-11-27 05:34:06 +0000 |
commit | fad1ce139880a0edc2c01c005a470ac3abd4ba80 (patch) | |
tree | de160c140479695f15651a8a1780870e68826d1d /package/rt2570/Makefile | |
parent | 5ed23948e267dc9b5e8cc20e056e6e71c54e1a10 (diff) | |
download | master-187ad058-fad1ce139880a0edc2c01c005a470ac3abd4ba80.tar.gz master-187ad058-fad1ce139880a0edc2c01c005a470ac3abd4ba80.tar.bz2 master-187ad058-fad1ce139880a0edc2c01c005a470ac3abd4ba80.zip |
add ralink rt2570 driver
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5660 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/rt2570/Makefile')
-rw-r--r-- | package/rt2570/Makefile | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/package/rt2570/Makefile b/package/rt2570/Makefile new file mode 100644 index 0000000000..db7351eb0e --- /dev/null +++ b/package/rt2570/Makefile @@ -0,0 +1,47 @@ +# +# Copyright (C) 2006 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +# $Id: Makefile 5314 2006-10-27 19:14:43Z nico $ + +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 +PKG_CAT:=zcat + +PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) + +include $(INCLUDE_DIR)/package.mk + +define KernelPackage/rt2570 + SUBMENU:=Wireless Drivers + TITLE:=Driver for ralink usb wireless chipsets + DEPENDS:=@USB_SUPPORT +wireless-tools + DESCRIPTION:=\ + This package contains a driver for ralink rt2570 usb chipsets. + URL:=http://rt2x00.serialmonkey.com/ + VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE) + 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)" \ + ARCH="$(LINUX_KARCH)" \ + PWD="$(PKG_BUILD_DIR)/Module" \ + KERNDIR="$(LINUX_DIR)" \ + PATCHLEVEL=" $(patsubst 2.%,%,$(KERNEL))" +endef + +$(eval $(call KernelPackage,rt2570)) |