summaryrefslogtreecommitdiff
path: root/package/r8101/Makefile
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-07-25 23:22:42 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-07-25 23:22:42 +0000
commit8f5e4a4ee00c3a9bed130105fd89912e2b377297 (patch)
tree3a5f2707108ca84f9fe279dd1ff2c1ddc4436add /package/r8101/Makefile
parent09cdead0b03a4509fa54036025f3d17ddd014517 (diff)
[package] add r8101 ethernet driver (#4352)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16989 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/r8101/Makefile')
-rw-r--r--package/r8101/Makefile43
1 files changed, 43 insertions, 0 deletions
diff --git a/package/r8101/Makefile b/package/r8101/Makefile
new file mode 100644
index 0000000000..e800e8ecc9
--- /dev/null
+++ b/package/r8101/Makefile
@@ -0,0 +1,43 @@
+#
+# Copyright (C) 2009 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+include $(INCLUDE_DIR)/kernel.mk
+
+PKG_NAME:=r8101
+PKG_VERSION:=1.012.00
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
+PKG_SOURCE_URL:=ftp://WebUser:DAx7h9V@202.65.194.212/cn/nic/
+PKG_MD5SUM:=eb0645af023926f3ab8d0d40f68748ef
+
+include $(INCLUDE_DIR)/package.mk
+
+define KernelPackage/r8101
+ SUBMENU:=Network Devices
+ TITLE:=RealTek RTL-8101E PCIe Fast Ethernet Adapter kernel support
+ DEPENDS:=@TARGET_x86
+ URL:=http://www.realtek.com.tw/
+ FILES:= $(PKG_BUILD_DIR)/src/r8101.$(LINUX_KMOD_SUFFIX)
+ AUTOLOAD:=$(call AutoLoad,50,r8101)
+endef
+
+define KernelPackage/r8101/description
+ Kernel modules for RealTek RTL-8101E PCI-Express Fast Ethernet adapters.
+endef
+
+define Build/Compile
+ chmod u+x $(PKG_BUILD_DIR)/src
+ $(MAKE) -C $(LINUX_DIR) \
+ SUBDIRS="$(PKG_BUILD_DIR)/src" \
+ ARCH="$(LINUX_KARCH)" \
+ CROSS_COMPILE="$(TARGET_CROSS)" \
+ modules
+endef
+
+$(eval $(call KernelPackage,r8101))