package_kernel_r8101/Makefile
sbwml 9550acf5a5 r8101: bump to 1.039.00
Signed-off-by: sbwml <admin@cooluc.com>
2024-06-15 18:47:31 +08:00

35 lines
761 B
Makefile

#
# Download realtek r8101 linux driver from official site:
# [https://www.realtek.com/Download/List?cate_id=584]
#
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=r8101
PKG_VERSION:=1.039.00
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
define KernelPackage/r8101
TITLE:=Driver for Realtek r8101 chipsets
SUBMENU:=Network Devices
DEPENDS:=@PCI_SUPPORT
FILES:= $(PKG_BUILD_DIR)/r8101.ko
AUTOLOAD:=$(call AutoProbe,r8101)
endef
define Package/r8101/description
This package contains a driver for Realtek r8101 chipsets.
endef
define Build/Compile
+$(KERNEL_MAKE) M=$(PKG_BUILD_DIR) modules
endef
$(eval $(call KernelPackage,r8101))