Fixed included (versioned) headers.

This commit is contained in:
Florian Pose 2025-06-26 13:42:26 +02:00
parent 95fa1fd38c
commit e914edcb34
4 changed files with 6 additions and 4 deletions

View File

@ -11,7 +11,7 @@
#include <linux/delay.h>
#include <linux/firmware.h>
#include "r8169_firmware-6.1-ethercat.h"
#include "r8169_firmware-6.4-ethercat.h"
enum rtl_fw_opcode {
PHY_READ = 0x0,

View File

@ -33,8 +33,8 @@
#include <net/ip6_checksum.h>
#include <net/netdev_queues.h>
#include "r8169-6.1-ethercat.h"
#include "r8169_firmware-6.1-ethercat.h"
#include "r8169-6.4-ethercat.h"
#include "r8169_firmware-6.4-ethercat.h"
#include "../ecdev.h"

View File

@ -12,7 +12,7 @@
#include <linux/delay.h>
#include <linux/phy.h>
#include "r8169-6.1-ethercat.h"
#include "r8169-6.4-ethercat.h"
typedef void (*rtl_phy_cfg_fct)(struct rtl8169_private *tp,
struct phy_device *phydev);

View File

@ -22,7 +22,9 @@ for f in $KERNELDIR/drivers/net/ethernet/realtek/r8169*; do
op=${b/\./-$PREVER-orig.}
ep=${b/\./-$PREVER-ethercat.}
diff -u $op $ep | patch -p1 $e
sed -i s/$PREVER-ethercat.h/$KERNELVER-ethercat.h/ $e
git add $o $e
echo -e "\t$e \\\\\n\t$o \\\\" >> Makefile.am
done
echo "Remember to update Makefile.am!"