2020-02-27 22:36:15 +08:00
|
|
|
# Attribution: https://gist.github.com/lenew/9b41ba901c3393047ede0766760f9d55
|
|
|
|
|
|
|
|
#Put this source to 'package/kernel/r8125' folder of OpenWRT/LEDE SDK
|
|
|
|
#Build(make menuconfig, make defconfig, make)
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
|
|
|
|
PKG_NAME:=r8125
|
2023-02-24 14:03:38 +08:00
|
|
|
PKG_VERSION:=9.010.01-2
|
2022-11-27 18:10:10 +08:00
|
|
|
PKG_RELEASE:=1
|
2020-02-27 22:36:15 +08:00
|
|
|
|
2022-04-29 18:38:05 +08:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=https://codeload.github.com/awesometic/realtek-r8125-dkms/tar.gz/$(PKG_VERSION)?
|
2023-02-24 14:03:38 +08:00
|
|
|
PKG_HASH:=b3e1b36578ba92a775049535e7434a9fc46710a721846c3706aca3d265db8cb9
|
2022-04-29 18:38:05 +08:00
|
|
|
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/realtek-$(PKG_NAME)-dkms-$(PKG_VERSION)
|
|
|
|
|
|
|
|
PKG_LICENSE:=GPL-2.0-only
|
|
|
|
PKG_LICENSE_FILE:=LICENSE
|
|
|
|
|
2020-02-27 22:36:15 +08:00
|
|
|
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)
|
2022-03-13 17:59:43 +08:00
|
|
|
DEPENDS:=@PCI_SUPPORT
|
2022-04-29 18:38:05 +08:00
|
|
|
FILES:= $(PKG_BUILD_DIR)/src/r8125.ko
|
2020-02-27 22:36:15 +08:00
|
|
|
AUTOLOAD:=$(call AutoProbe,r8125)
|
|
|
|
endef
|
|
|
|
|
2022-12-09 00:36:10 +08:00
|
|
|
define KernelPackage/r8125/description
|
2021-01-30 19:06:57 +08:00
|
|
|
This package contains a driver for Realtek r8125 chipsets.
|
2020-02-27 22:36:15 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
2022-04-29 18:38:05 +08:00
|
|
|
+$(KERNEL_MAKE) M=$(PKG_BUILD_DIR)/src modules
|
2020-02-27 22:36:15 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,r8125))
|