mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-08-08 09:54:02 +08:00

Ref: https://github.com/coolsnowwolf/lede/pull/8007#issuecomment-936127147 We do not welcome these unfriendly friendlyarm users. Btw, these projects like "Fusion xxx" often confused me who is the original author.
56 lines
1.6 KiB
Makefile
56 lines
1.6 KiB
Makefile
#
|
|
# Download realtek r8152 linux driver from official site:
|
|
# [https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-usb-3-0-software]
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
PKG_NAME:=r8152
|
|
PKG_VERSION:=2.15
|
|
PKG_RELEASE:=2
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://codeload.github.com/1715173329/realtek-r8152-linux/tar.gz/v$(PKG_VERSION)?
|
|
PKG_HASH:=dc8a06ed6ff397029c396a7e83476f1bf9541c4f927a4dbac8810c6ce014f8ca
|
|
|
|
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/realtek-$(PKG_NAME)-linux-$(PKG_VERSION)
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define KernelPackage/usb-net-rtl8152-vendor
|
|
TITLE:=Kernel module for USB-to-Ethernet Realtek convertors
|
|
SUBMENU:=USB Support
|
|
VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
|
|
DEPENDS:=@TARGET_x86 +kmod-usb-net
|
|
CONFLICTS:=kmod-usb-net-rtl8152
|
|
FILES:= $(PKG_BUILD_DIR)/r8152.ko
|
|
AUTOLOAD:=$(call AutoProbe,r8152)
|
|
endef
|
|
|
|
define KernelPackage/usb-net-rtl8152-vendor/description
|
|
Kernel module for Realtek RTL8152/RTL8153 Based USB Ethernet Adapters
|
|
endef
|
|
|
|
R8152_MAKEOPTS= -C $(PKG_BUILD_DIR) \
|
|
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) $(PKG_JOBS) $(R8152_MAKEOPTS) modules
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,usb-net-rtl8152-vendor))
|