devices/Kbuild
changeset 366 148ac5ef18ae
parent 364 9028b20e3c12
child 382 72500991bcc3
--- a/devices/Kbuild	Mon Sep 25 11:12:50 2006 +0000
+++ b/devices/Kbuild	Mon Sep 25 12:11:05 2006 +0000
@@ -39,7 +39,11 @@
 
 ec_8139too-objs := 8139too.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 = -DEC_REV=$(REV) -DEC_USER=$(USER)