|
| 1 | +# |
| 2 | +# Download realtek r8101 linux driver from official site: |
| 3 | +# [https://www.realtek.com/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software] |
| 4 | +# |
| 5 | + |
| 6 | +include $(TOPDIR)/rules.mk |
| 7 | +include $(INCLUDE_DIR)/kernel.mk |
| 8 | + |
| 9 | +# SPDX-License-Identifier: GPL-3.0-only |
| 10 | +# |
| 11 | +# Copyright (C) 2022 ImmortalWrt.org |
| 12 | + |
| 13 | +include $(TOPDIR)/rules.mk |
| 14 | +include $(INCLUDE_DIR)/kernel.mk |
| 15 | + |
| 16 | +PKG_NAME:=r8101 |
| 17 | +PKG_VERSION:=1.037.01 |
| 18 | +PKG_RELEASE:=$(AUTORELEASE) |
| 19 | + |
| 20 | +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 |
| 21 | +PKG_SOURCE_URL:=https://github.com/umarizulkifli/r8101/blob/main/r8101-1.037.01.tar.bz2 |
| 22 | +PKG_HASH:=45b3ae6af31054879b06c13ce4f0fb14 |
| 23 | +PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) |
| 24 | + |
| 25 | +PKG_MAINTAINER:=umarizulkifli < [email protected]> |
| 26 | +PKG_LICENSE:=GPL-2.0-only |
| 27 | + |
| 28 | +include $(INCLUDE_DIR)/package.mk |
| 29 | + |
| 30 | +define KernelPackage/r8101 |
| 31 | + TITLE:=Driver for Realtek r8101 chipsets |
| 32 | + SUBMENU:=Network Devices |
| 33 | + VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE) |
| 34 | + DEPENDS:=@PCI_SUPPORT |
| 35 | + FILES:= $(PKG_BUILD_DIR)/src/r8101.ko |
| 36 | + AUTOLOAD:=$(call AutoProbe,r8101) |
| 37 | +endef |
| 38 | + |
| 39 | +define Package/r8101/description |
| 40 | + This package contains a driver for Realtek r8101 chipsets. |
| 41 | +endef |
| 42 | + |
| 43 | +define Build/Compile |
| 44 | + +$(KERNEL_MAKE) M=$(PKG_BUILD_DIR)/src modules |
| 45 | +endef |
| 46 | + |
| 47 | +$(eval $(call KernelPackage,r8101)) |
| 48 | + |
0 commit comments