backport for GNU Linux-libre 4.19.298-gnu1
authorlxoliva <lxoliva@559672b5-ba27-0410-b829-e8f1faed8b1b>
Thu, 9 Nov 2023 02:13:18 +0000 (02:13 +0000)
committerlxoliva <lxoliva@559672b5-ba27-0410-b829-e8f1faed8b1b>
Thu, 9 Nov 2023 02:13:18 +0000 (02:13 +0000)
git-svn-id: http://www.fsfla.org/svn/fsfla/software/linux-libre/scripts@19439 559672b5-ba27-0410-b829-e8f1faed8b1b

deblob-4.19

index eb87379c2bfe7b1e0ce26b799ef683395284e3b3..62a48dd90ecd84240e82064601203b92a8a80472 100755 (executable)
@@ -1749,8 +1749,13 @@ clean_kconfig drivers/net/ethernet/qlogic/Kconfig QLCNIC
 clean_mk CONFIG_QLCNIC drivers/net/ethernet/qlogic/qlcnic/Makefile
 
 announce R8169 - "Realtek 8169 gigabit ethernet support"
-reject_firmware drivers/net/ethernet/realtek/r8169.c
-clean_blob drivers/net/ethernet/realtek/r8169.c
+if test -f drivers/net/ethernet/realtek/r8169_main.c; then
+  reject_firmware drivers/net/ethernet/realtek/r8169_main.c
+  clean_blob drivers/net/ethernet/realtek/r8169_main.c
+else
+  reject_firmware drivers/net/ethernet/realtek/r8169.c
+  clean_blob drivers/net/ethernet/realtek/r8169.c
+fi
 clean_kconfig drivers/net/ethernet/realtek/Kconfig R8169
 clean_mk CONFIG_R8169 drivers/net/ethernet/realtek/Makefile