mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-08 10:23:47 +08:00
d469657438
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org> (cherry picked from commit abed583dc6c1c8b03d6f62181c14250234ac56e8)
41 lines
1.1 KiB
Makefile
41 lines
1.1 KiB
Makefile
#
|
|
# Download realtek r8168 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:=r8168
|
|
PKG_VERSION:=8.051.02
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL:=https://github.com/BROBIRD/openwrt-r8168.git
|
|
PKG_SOURCE_VERSION:=4f6cfe1ca12fb772deed57f1d2d1062af041ad07
|
|
PKG_MIRROR_HASH:=6b149f5eb3b9e1dc50867a694984d253aa58d97dd5fbab30eb405d2d7b2be587
|
|
|
|
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define KernelPackage/r8168
|
|
TITLE:=Driver for Realtek r8168 chipsets
|
|
SUBMENU:=Network Devices
|
|
VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
|
|
DEPENDS:=@PCI_SUPPORT
|
|
FILES:= $(PKG_BUILD_DIR)/src/r8168.ko
|
|
AUTOLOAD:=$(call AutoProbe,r8168)
|
|
CONFLICTS:=kmod-r8169
|
|
endef
|
|
|
|
define KernelPackage/r8168/description
|
|
This package contains a driver for Realtek r8168 chipsets.
|
|
endef
|
|
|
|
define Build/Compile
|
|
+$(KERNEL_MAKE) M=$(PKG_BUILD_DIR)/src modules
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,r8168))
|