Commit Graph

13 Commits (master)

Author SHA1 Message Date
Harald Welte dbac2a5254 Merge pull request 'Add debian packaging' (#1) from osmith/rtl8168-eeprom:osmith/debian into master
Reviewed-on: #1
2022-05-16 12:07:41 +00:00
Oliver Smith 630734375f d/changelog: add 1.0.2 2022-05-16 14:05:28 +02:00
Oliver Smith 4efcedfeca Query PCI_FILL_{BASES,SIZES} in pci_fill_info too
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.
2022-05-16 14:03:10 +02:00
Oliver Smith 347924cc08 d/changelog: add 1.0.1 2022-05-16 10:50:40 +02:00
Oliver Smith 313de8d95e Exit with error if no device was found 2022-05-16 10:45:52 +02:00
Oliver Smith 1bf48da7a8 Fix missing pci_fill_info()
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

Fixes: SYS#5956
2022-05-16 10:42:08 +02:00
Oliver Smith 189a39639d gitignore: new file 2022-05-10 14:57:00 +02:00
Oliver Smith efa74b0d02 debian: add dir for packaging
Related: SYS#5538
2022-05-10 14:56:56 +02:00
Holger Hans Peter Freyther 2052514dc9 Speculative fix for PATH_MAX not known
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];
|              ^~~~~~~~
2017-06-13 12:52:35 +08:00
Holger Hans Peter Freyther 47e0b24d7a build: At least honor the LDFLAGS from the environment
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


ERROR: ... No GNU_HASH in the elf binary: 'rtl8168-eeprom' [ldflags]
2017-04-02 14:14:11 +02:00
Harald Welte e62e515ce3 add COPYING file to include full GPLv2 license text 2015-07-10 19:25:57 +02:00
Harald Welte cf7fe61d82 add GPLv2 license disclaimer 2015-07-10 19:25:33 +02:00
Harald Welte c3b046a817 initial checkin of project 2015-03-22 22:15:40 +01:00