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 r8125 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:=r8125
|
|
PKG_VERSION:=9.010.01-2
|
|
PKG_RELEASE:=$(AUTORELEASE)
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://codeload.github.com/awesometic/realtek-r8125-dkms/tar.gz/$(PKG_VERSION)?
|
|
PKG_HASH:=b3e1b36578ba92a775049535e7434a9fc46710a721846c3706aca3d265db8cb9
|
|
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/realtek-$(PKG_NAME)-dkms-$(PKG_VERSION)
|
|
|
|
PKG_LICENSE:=GPL-2.0-only
|
|
PKG_LICENSE_FILE:=LICENSE
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define KernelPackage/r8125
|
|
TITLE:=Driver for Realtek r8125 chipsets
|
|
SUBMENU:=Network Devices
|
|
VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
|
|
FILES:= $(PKG_BUILD_DIR)/src/r8125.ko
|
|
AUTOLOAD:=$(call AutoProbe,r8125)
|
|
endef
|
|
|
|
define Package/r8125/description
|
|
This package contains a driver for Realtek r8125 chipsets.
|
|
endef
|
|
|
|
define Build/Compile
|
|
+$(KERNEL_MAKE) M=$(PKG_BUILD_DIR)/src modules
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,r8125))
|