add a default for PKG_BUILD_DIR and PKG_INSTALL_DIR (will use KERNEL_BUILD_DIR if...
[openwrt.git] / package / rt2570 / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=rt2570
13 PKG_VERSION:=1.1.0-b2
14 PKG_RELEASE:=1
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=@SF/rt2400
18 PKG_MD5SUM:=f4131d670920a878b4d4a0f5d4d8b93a
19 PKG_CAT:=zcat
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define KernelPackage/rt2570
24 SUBMENU:=Wireless Drivers
25 TITLE:=Driver for ralink usb wireless chipsets
26 DEPENDS:=@LINUX_2_4 @USB_SUPPORT +wireless-tools
27 DESCRIPTION:=\
28 This package contains a driver for ralink rt2570 usb chipsets.
29 URL:=http://rt2x00.serialmonkey.com/
30 VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
31 FILES:= \
32 $(PKG_BUILD_DIR)/Module/rt2570.$(LINUX_KMOD_SUFFIX)
33 AUTOLOAD:=$(call AutoLoad,50,rt2570)
34 endef
35
36 define Build/Compile
37 $(MAKE) -C "$(PKG_BUILD_DIR)/Module" \
38 CC="$(TARGET_CC)" \
39 LD="$(TARGET_CROSS)ld" \
40 ARCH="$(LINUX_KARCH)" \
41 PWD="$(PKG_BUILD_DIR)/Module" \
42 KERNDIR="$(LINUX_DIR)" \
43 PATCHLEVEL="$(patsubst 2.%,%,$(KERNEL))"
44 endef
45
46 $(eval $(call KernelPackage,rt2570))
This page took 0.044989 seconds and 5 git commands to generate.