master/Kbuild
changeset 366 148ac5ef18ae
parent 364 9028b20e3c12
child 382 72500991bcc3
--- a/master/Kbuild	Mon Sep 25 11:12:50 2006 +0000
+++ b/master/Kbuild	Mon Sep 25 12:11:05 2006 +0000
@@ -40,7 +40,11 @@
 ec_master-objs := module.o master.o device.o slave.o datagram.o \
 		domain.o mailbox.o ethernet.o debug.o fsm.o xmldev.o
 
-REV := $(shell svnversion $(src) 2>/dev/null || echo "unknown")
+REV := $(shell if test -s $(src)/../svnrevision; then \
+		cat $(src)/../svnrevision; \
+	else \
+		svnversion $(src) 2>/dev/null || echo "unknown"; \
+	fi)
 
 EXTRA_CFLAGS := -DSVNREV=$(REV) -DUSER=$(USER)