mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 11:09:57 +08:00
eed8ef7527
Signed-off-by: ZiMing Mo <msylgj@immortalwrt.org> (cherry picked from commit 662ff61b56101dbe3e7f8c4654cd4b8439d14120)
56 lines
1.4 KiB
Makefile
56 lines
1.4 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.050.00
|
|
PKG_RELEASE:=$(AUTORELEAE)
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL:=https://github.com/BROBIRD/openwrt-r8168.git
|
|
PKG_SOURCE_DATE:=2022-05-03
|
|
PKG_SOURCE_VERSION:=1c18465e76ed6872f001d08e2fe0c139fc80ef7e
|
|
PKG_MIRROR_HASH:=5ca8242bd209079a5abac608a865f86e727cc8de15a460d7d78e611d0c443f15
|
|
|
|
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
MAKE_PATH:=src
|
|
|
|
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 Package/r8168/description
|
|
This package contains a driver for Realtek r8168 chipsets.
|
|
endef
|
|
|
|
R8168_MAKEOPTS= -C $(PKG_BUILD_DIR)/src \
|
|
PATH="$(TARGET_PATH)" \
|
|
ARCH="$(LINUX_KARCH)" \
|
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
|
TARGET="$(HAL_TARGET)" \
|
|
TOOLPREFIX="$(KERNEL_CROSS)" \
|
|
TOOLPATH="$(KERNEL_CROSS)" \
|
|
KERNELPATH="$(LINUX_DIR)" \
|
|
KERNELDIR="$(LINUX_DIR)" \
|
|
LDOPTS=" " \
|
|
DOMULTI=1
|
|
|
|
define Build/Compile
|
|
$(MAKE) $(R8168_MAKEOPTS) modules
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,r8168))
|