aboutsummaryrefslogtreecommitdiffstats
path: root/package/rt2500/Makefile
blob: 06e02f7ea1c10a279bc8734f7047f31c2bad6039 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# 
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id$

include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk

PKG_NAME:=rt2500
PKG_VERSION:=cvs-2007061115
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@openwrt/
PKG_MD5SUM:=67a158b24ec46e37edc4545f51338bb9

include $(INCLUDE_DIR)/package.mk

define KernelPackage/rt2500
  SUBMENU:=Wireless Drivers
  TITLE:=Driver for ralink pci wireless chipsets
  DEPENDS:=@!BIG_ENDIAN @USB_SUPPORT +wireless-tools
  DESCRIPTION:=\
	This package contains a driver for ralink rt2500 pci chipsets.
  URL:=http://rt2x00.serialmonkey.com/
  VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
  FILES:= \
		$(PKG_BUILD_DIR)/Module/rt2500.$(LINUX_KMOD_SUFFIX)
  AUTOLOAD:=$(call AutoLoad,50,rt2500)
endef

define Build/Compile
	$(MAKE) -C "$(PKG_BUILD_DIR)/Module" \
		CC="$(TARGET_CC)" \
		LD="$(TARGET_CROSS)ld" \
		ARCH="$(LINUX_KARCH)" \
		PWD="$(PKG_BUILD_DIR)/Module" \
		KERNDIR="$(LINUX_DIR)" \
		PATCHLEVEL="$(patsubst 2.%,%,$(KERNEL))"
endef

$(eval $(call KernelPackage,rt2500))