add a workaround for a race-condition in the wl driver (triggered by ap+sta mode...
[openwrt.git] / package / rt2x00 / 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:=rt2x00
13 PKG_VERSION:=1.1.0-b1
14 PKG_RELEASE:=1
15
16 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/rt61-$(PKG_VERSION)/
17 PKG_SOURCE:=rt61-$(PKG_VERSION).tar.gz
18 PKG_SOURCE_URL:=@SF/rt2400
19 PKG_MD5SUM:=3f2600400a3d6d878a5d27d0a2e47eed
20 PKG_CAT:=zcat
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/kmod-rt2x00
25 SECTION:=kernel
26 CATEGORY:=Kernel drivers
27 DEPENDS:=@LINUX_2_6_RDC
28 TITLE:=Driver for Ralink RT61xx based boards
29 URL:=http://rt2x00.serialmonkey.com/
30 VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
31 endef
32
33 define Build/Compile
34 $(MAKE) -C $(LINUX_DIR) \
35 ARCH="$(LINUX_KARCH)" \
36 CROSS_COMPILE="$(TARGET_CROSS)" \
37 PATCHLEVEL="$(LINUX_VERSION)" \
38 KERNDIR="$(LINUX_DIR)" \
39 SUBDIRS="$(PKG_BUILD_DIR)/Module" \
40 modules
41 endef
42
43 define Package/kmod-rt2x00/install
44 mkdir -p $(1)/etc/modules.d
45 $(INSTALL_DATA) ./files/rt2x00.modules $(1)/etc/modules.d/10-ralink
46 $(INSTALL_DIR) $(1)/lib/modules/$(LINUX_VERSION)
47 $(CP) $(PKG_BUILD_DIR)/Module/rt61.$(LINUX_KMOD_SUFFIX) \
48 $(1)/lib/modules/$(LINUX_VERSION)/
49 endef
50
51 $(eval $(call BuildPackage,kmod-rt2x00))
This page took 0.05702 seconds and 5 git commands to generate.