diff --git a/devices/8139too.c b/devices/8139too.c index 6d53601b..ea814a62 100644 --- a/devices/8139too.c +++ b/devices/8139too.c @@ -136,12 +136,12 @@ #include "ecdev.h" -#define EC_LIT(X) #X -#define EC_STR(X) EC_LIT(X) +#define LIT(X) #X +#define STR(X) LIT(X) -#define COMPILE_INFO "Revision " EC_STR(EC_REV) \ - ", compiled by " EC_STR(EC_USER) \ - " at " EC_STR(EC_DATE) +#define COMPILE_INFO "Revision " STR(EC_REV) \ + ", compiled by " STR(EC_USER) \ + " at " __DATE__ " " __TIME__ /* EtherCAT <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/ diff --git a/devices/Makefile b/devices/Makefile index ad72a825..96002626 100644 --- a/devices/Makefile +++ b/devices/Makefile @@ -17,9 +17,7 @@ obj-m := ec_8139too.o ec_8139too-objs := 8139too.o -REV := $(shell svnversion $(src)) -DATE := $(shell date) -EXTRA_CFLAGS = -DEC_REV="$(REV)" -DEC_USER="$(USER)" -DEC_DATE="$(DATE)" +EXTRA_CFLAGS = -DEC_REV="$(shell svnversion $(src))" -DEC_USER="$(USER)" #------------------------------------------------------------------------------