2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
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
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/kmod-rt61
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
)
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" \
43 define Package
/kmod-rt61
/install
44 mkdir
-p
$(1)/etc
/modules.d
45 $(INSTALL_DATA
) .
/files
/rt61.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
)/
51 $(eval
$(call BuildPackage
,kmod-rt61
))