diff -r 326d47aa986c -r 1baac79a40cf devices/e1000/Kbuild.in --- a/devices/e1000/Kbuild.in Thu Nov 19 14:39:10 2009 +0100 +++ b/devices/e1000/Kbuild.in Thu Nov 19 14:44:57 2009 +0100 @@ -33,10 +33,10 @@ TOPDIR := $(src)/../.. -REV := $(shell if test -s $(TOPDIR)/svnrevision; then \ - cat $(TOPDIR)/svnrevision; \ +REV := $(shell if test -s $(TOPDIR)/revision; then \ + cat $(TOPDIR)/revision; \ else \ - svnversion $(TOPDIR) 2>/dev/null || echo "unknown"; \ + hg id -i $(TOPDIR) 2>/dev/null || echo "unknown"; \ fi) ifeq (@ENABLE_E1000@,1) @@ -47,7 +47,7 @@ e1000_param-@KERNEL_E1000@-ethercat.o obj-m += ec_e1000.o ec_e1000-objs := $(EC_E1000_OBJ) - CFLAGS_e1000_main-@KERNEL_E1000@-ethercat.o = -DSVNREV=$(REV) + CFLAGS_e1000_main-@KERNEL_E1000@-ethercat.o = -DREV=$(REV) endif KBUILD_EXTRA_SYMBOLS := \