path: root/Makefile
diff options
authorBernhard Walle <>2008-01-21 15:24:22 +0000
committerUwe Hermann <>2008-01-21 15:24:22 +0000
commit201bde33d0ee8df9038d15e662f345b2051e60be (patch)
tree8dd5462e548dade569d43b8eafd88e2aca5e827d /Makefile
parent7ff530b40ef862e4d1bf6b30c34635a279a1b312 (diff)
This patch adds version information
Because 'v' and 'V' are already in use, the patch uses 'R' (for release) and, of course, '--version'. Corresponding to flashrom svn r182 and coreboot v2 svn r3067. Signed-off-by: Bernhard Walle <> Acked-by: Ulf Jordan <> Acked-by: Uwe Hermann <>
Diffstat (limited to 'Makefile')
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4b2fbbd..708c077 100644
--- a/Makefile
+++ b/Makefile
@@ -28,6 +28,12 @@ OBJS = chipset_enable.o board_enable.o udelay.o jedec.o sst28sf040.o \
all: pciutils dep $(PROGRAM)
+# Set the flashrom version string from the highest revision number
+# of the checked out flashrom files.
+SVNDEF := -D'FLASHROM_VERSION="$(shell svnversion -cn . \
+ | sed -e "s/.*://" -e "s/\([0-9]*\).*/\1/")"'
OpenPOWER on IntegriCloud