1
0

add something versionlike for the git-tracked usb-driver

This commit is contained in:
Michael Gernoth 2007-05-17 18:50:49 +02:00
parent badd6a82bf
commit 81cf365889
2 changed files with 2 additions and 2 deletions

View File

@ -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),)

View File

@ -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;