mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
40 lines
1.1 KiB
Makefile
40 lines
1.1 KiB
Makefile
#
|
|
# Download realtek r8101 linux driver from official site:
|
|
# [https://www.realtek.com/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software]
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
PKG_NAME:=r8101
|
|
PKG_VERSION:=1.038.02
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL:=https://github.com/sbwml/package_kernel_r8101
|
|
PKG_SOURCE_VERSION:=5dea36329c0524490c093991801973fc48d92a8b
|
|
PKG_MIRROR_HASH:=f4182719b25cd177023dddd6f0f555597c8e340fa38127566681d10be885dd9a
|
|
|
|
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define KernelPackage/r8101
|
|
TITLE:=Driver for Realtek r8101 chipsets
|
|
SUBMENU:=Network Devices
|
|
VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
|
|
DEPENDS:=@PCI_SUPPORT
|
|
FILES:= $(PKG_BUILD_DIR)/src/r8101.ko
|
|
AUTOLOAD:=$(call AutoProbe,r8101)
|
|
endef
|
|
|
|
define Package/r8101/description
|
|
This package contains a driver for Realtek r8101 chipsets.
|
|
endef
|
|
|
|
define Build/Compile
|
|
+$(KERNEL_MAKE) M=$(PKG_BUILD_DIR)/src modules
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,r8101))
|