2021-04-25 11:10:08 +08:00
|
|
|
#
|
|
|
|
|
# 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]
|
|
|
|
|
#
|
2020-04-23 03:12:12 +08:00
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
|
|
|
|
|
|
PKG_NAME:=r8168
|
2024-04-23 04:05:28 +08:00
|
|
|
PKG_VERSION:=8.053.00
|
2024-07-17 15:34:22 +08:00
|
|
|
PKG_RELEASE:=2
|
2020-04-23 03:12:12 +08:00
|
|
|
|
2023-11-09 21:42:02 +08:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
|
PKG_SOURCE_URL:=https://codeload.github.com/mtorromeo/r8168/tar.gz/$(PKG_VERSION)?
|
2024-04-23 04:05:28 +08:00
|
|
|
PKG_HASH:=7c00cc13f17c45e1d1002e4c390f118204b04d42caba9d04d8ae95e953770857
|
2021-04-25 11:10:08 +08:00
|
|
|
|
2024-07-17 15:34:22 +08:00
|
|
|
PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
|
|
|
|
|
PKG_LICENSE:=GPL-2.0-only
|
|
|
|
|
|
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
2020-04-23 03:12:12 +08:00
|
|
|
|
2021-03-23 09:26:58 +08:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2020-04-23 03:12:12 +08:00
|
|
|
|
|
|
|
|
define KernelPackage/r8168
|
|
|
|
|
TITLE:=Driver for Realtek r8168 chipsets
|
|
|
|
|
SUBMENU:=Network Devices
|
2022-03-13 17:59:43 +08:00
|
|
|
DEPENDS:=@PCI_SUPPORT
|
2021-04-25 11:10:08 +08:00
|
|
|
FILES:= $(PKG_BUILD_DIR)/src/r8168.ko
|
2020-04-23 03:12:12 +08:00
|
|
|
AUTOLOAD:=$(call AutoProbe,r8168)
|
|
|
|
|
endef
|
|
|
|
|
|
2022-12-09 00:36:10 +08:00
|
|
|
define KernelPackage/r8168/description
|
2021-01-29 21:07:22 +08:00
|
|
|
This package contains a driver for Realtek r8168 chipsets.
|
2020-04-23 03:12:12 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define Build/Compile
|
2024-07-17 15:34:22 +08:00
|
|
|
+$(KERNEL_MAKE) $(PKG_JOBS) \
|
|
|
|
|
M=$(PKG_BUILD_DIR)/src \
|
|
|
|
|
CONFIG_RSS_SUPPORT=y \
|
|
|
|
|
modules
|
2020-04-23 03:12:12 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,r8168))
|