fix rt61 on big endian arch
[openwrt.git] / package / rt61 / 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:=rt61
13 PKG_VERSION:=cvs-2007060307
14 PKG_RELEASE:=1
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=@openwrt/
18 PKG_MD5SUM:=8d71fee47bdaac4c7d79180a4ea33649
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define KernelPackage/rt61
23 SUBMENU:=Wireless Drivers
24 TITLE:=Driver for ralink MiMo pci chipsets
25 DEPENDS:=@PCI_SUPPORT +wireless-tools
26 DESCRIPTION:=\
27 This package contains a driver for ralink rt2x61 pci chipsets.
28 URL:=http://rt2x00.serialmonkey.com/
29 VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
30 FILES:= \
31 $(PKG_BUILD_DIR)/Module/rt61.$(LINUX_KMOD_SUFFIX)
32 AUTOLOAD:=$(call AutoLoad,50,rt61)
33 endef
34
35 define KernelPackage/rt61/install
36 mkdir -p $(1)/lib/firmware
37 $(CP) -L $(PKG_BUILD_DIR)/Module/rt2?61*.bin $(1)/lib/firmware
38 endef
39
40 LINUX_PATCHLEVEL:=$(shell echo "$(LINUX_VERSION)" | cut -d. -f2)
41
42 define Build/Compile
43 $(MAKE) -C $(LINUX_DIR) \
44 ARCH="$(LINUX_KARCH)" \
45 CROSS_COMPILE="$(TARGET_CROSS)" \
46 PATCHLEVEL="$(LINUX_PATCHLEVEL)" \
47 KERNDIR="$(LINUX_DIR)" \
48 SUBDIRS="$(PKG_BUILD_DIR)/Module" \
49 modules
50 endef
51
52 $(eval $(call KernelPackage,rt61))
This page took 0.045905 seconds and 5 git commands to generate.