add something versionlike for the git-tracked usb-driver
This commit is contained in:
parent
badd6a82bf
commit
81cf365889
2
Makefile
2
Makefile
@ -1,6 +1,6 @@
|
||||
#Add -DFORCE_PC3_IDENT to CFLAGS to force the identification of
|
||||
#a Parallel Cable III
|
||||
CFLAGS=-Wall -fPIC #-DFORCE_PC3_IDENT
|
||||
CFLAGS=-Wall -fPIC -DUSB_DRIVER_VERSION="\"$(shell stat -c '%y' usb-driver.c |cut -d\. -f1)\"" #-DFORCE_PC3_IDENT
|
||||
|
||||
FTDI := $(shell libftdi-config --libs 2>/dev/null)
|
||||
ifneq ($(FTDI),)
|
||||
|
@ -245,7 +245,7 @@ int do_wdioctl(int fd, unsigned int request, unsigned char *wdioctl) {
|
||||
switch(request & ~(0xc0000000)) {
|
||||
case VERSION:
|
||||
version = (struct version_struct*)(wdheader->data);
|
||||
strcpy(version->version, "libusb-driver.so $Revision: 1.69 $");
|
||||
strcpy(version->version, "libusb-driver.so version: " USB_DRIVER_VERSION);
|
||||
version->versionul = 802;
|
||||
DPRINTF("VERSION\n");
|
||||
break;
|
||||
|
Reference in New Issue
Block a user