Skip to content
Snippets Groups Projects
Verified Commit a8178553 authored by Josef Schlehofer's avatar Josef Schlehofer
Browse files

patches/openwrt: linux-firmware: add r8152-firmware

parent ba909ba1
Branches
Tags
No related merge requests found
Pipeline #105538 failed with stages
in 6 minutes and 3 seconds
From 1fe18b78e9bfa7e2cadfb6627df33d72af4704fe Mon Sep 17 00:00:00 2001
From: Josef Schlehofer <pepe.schlehofer@gmail.com>
Date: Thu, 20 Oct 2022 21:48:30 +0200
Subject: [PATCH] realtek.mk: add r8152-firmware
---
package/firmware/linux-firmware/realtek.mk | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/package/firmware/linux-firmware/realtek.mk b/package/firmware/linux-firmware/realtek.mk
index 081cc1b37c..c883e8ba59 100644
--- a/package/firmware/linux-firmware/realtek.mk
+++ b/package/firmware/linux-firmware/realtek.mk
@@ -1,8 +1,21 @@
+Package/r8152-firmware = $(call Package/firmware-default,RealTek RTL8152 firmware)
+define Package/r8152-firmware/install
+ $(INSTALL_DIR) $(1)/lib/firmware/rtl_nic
+ $(CP) \
+ $(PKG_BUILD_DIR)/rtl_nic/rtl8153* \
+ $(PKG_BUILD_DIR)/rtl_nic/rtl8156* \
+ $(1)/lib/firmware/rtl_nic
+endef
+$(eval $(call BuildPackage,r8152-firmware))
+
Package/r8169-firmware = $(call Package/firmware-default,RealTek RTL8169 firmware)
define Package/r8169-firmware/install
$(INSTALL_DIR) $(1)/lib/firmware/rtl_nic
$(CP) \
- $(PKG_BUILD_DIR)/rtl_nic/* \
+ $(PKG_BUILD_DIR)/rtl_nic/rtl810* \
+ $(PKG_BUILD_DIR)/rtl_nic/rtl8125* \
+ $(PKG_BUILD_DIR)/rtl_nic/rtl8168* \
+ $(PKG_BUILD_DIR)/rtl_nic/rtl84* \
$(1)/lib/firmware/rtl_nic
endef
$(eval $(call BuildPackage,r8169-firmware))
--
2.34.1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment