package/grub: play it safe, cross compile everywhere
[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
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=rt2570
12 PKG_VERSION:=1.1.0-b2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/rt2400
17 PKG_MD5SUM:=f4131d670920a878b4d4a0f5d4d8b93a
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define KernelPackage/rt2570
22 SUBMENU:=Wireless Drivers
23 TITLE:=Driver for Ralink RT2570 usb wireless chipsets
24 DEPENDS:=@LINUX_2_4 @USB_SUPPORT +wireless-tools
25 URL:=http://rt2x00.serialmonkey.com/
26 FILES:=$(PKG_BUILD_DIR)/Module/rt2570.$(LINUX_KMOD_SUFFIX)
27 AUTOLOAD:=$(call AutoLoad,50,rt2570)
28 endef
29
30 define KernelPackage/rt2570/description
31 This package contains a driver for Ralink RT2570 usb chipsets.
32 endef
33
34 define Build/Compile
35 $(MAKE) -C "$(PKG_BUILD_DIR)/Module" \
36 CC="$(TARGET_CC)" \
37 LD="$(TARGET_CROSS)ld" \
38 ARCH="$(LINUX_KARCH)" \
39 PWD="$(PKG_BUILD_DIR)/Module" \
40 KERNDIR="$(LINUX_DIR)" \
41 PATCHLEVEL="$(patsubst 2.%,%,$(KERNEL))"
42 endef
43
44 $(eval $(call KernelPackage,rt2570))
This page took 0.044415 seconds and 5 git commands to generate.