The previous fix for missing pci_fill_info() was incomplete, it caused
the device to be found but changing the mac did not succeed. Fix it up
as separate commit, as the other commit is already packaged.
Before reading vendor_id or device_id from struct pci_dev, one must call
pci_fill_info() first. It looks like this had worked with previous
libpci versions, but with libpci 3.7.0 on debian 11 this patch is needed
or else the tool stops at 'starting bus iteration' without finding the
device.
Fixes: SYS#5956
The latest poky master build is failing with the error below. Let's
include limits.h and see if this is already fixing it.
| rtl8168-eeprom.c: In function 'eeprom_backup':
| rtl8168-eeprom.c:406:13: error: 'PATH_MAX' undeclared (first use in this function)
| char fname[PATH_MAX];
| ^~~~~~~~
When not honoring the environment we end up linking it without the
GNU_HASH for symbol look-up. Put the content into LIBS and place
these options last to make it link.
We still override the CFLAGS but that seems to not cause issues yet
Fixes:
ERROR: ... No GNU_HASH in the elf binary: 'rtl8168-eeprom' [ldflags]