Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #
  2. # Copyright (C) 2009-2010 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. include $(INCLUDE_DIR)/kernel.mk
  9. PKG_NAME:=r8101
  10. PKG_VERSION:=1.014.00
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  13. PKG_SOURCE_URL:= \
  14. ftp://WebUser:[email protected]/cn/nic/ \
  15. ftp://WebUser:[email protected]/cn/nic/ \
  16. ftp://WebUser:[email protected]/cn/nic/
  17. PKG_MD5SUM:=dace75093a1439310750029ccebe2c15
  18. include $(INCLUDE_DIR)/package.mk
  19. define KernelPackage/r8101
  20. SUBMENU:=Network Devices
  21. TITLE:=RealTek RTL-8101E PCIe Fast Ethernet Adapter kernel support
  22. DEPENDS:=@TARGET_x86
  23. URL:=http://www.realtek.com.tw/
  24. FILES:= $(PKG_BUILD_DIR)/src/r8101.ko
  25. AUTOLOAD:=$(call AutoLoad,50,r8101)
  26. endef
  27. define KernelPackage/r8101/description
  28. Kernel modules for RealTek RTL-8101E PCI-Express Fast Ethernet adapters.
  29. endef
  30. include $(INCLUDE_DIR)/kernel-defaults.mk
  31. define Build/Configure
  32. endef
  33. define Build/Compile
  34. chmod u+x $(PKG_BUILD_DIR)/src
  35. $(MAKE) $(KERNEL_MAKEOPTS) \
  36. M="$(PKG_BUILD_DIR)/src" \
  37. modules
  38. endef
  39. $(eval $(call KernelPackage,r8101))