[coreboot] [flashrom] r457 - trunk

svn at coreboot.org svn at coreboot.org
Mon May 4 14:29:59 CEST 2009


Author: hailfinger
Date: 2009-05-04 14:29:59 +0200 (Mon, 04 May 2009)
New Revision: 457

Modified:
   trunk/Makefile
Log:
Onwards with development. Re-add the svn revision to the version string.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>


Modified: trunk/Makefile
===================================================================
--- trunk/Makefile	2009-05-04 12:23:25 UTC (rev 456)
+++ trunk/Makefile	2009-05-04 12:29:59 UTC (rev 457)
@@ -38,8 +38,10 @@
 
 all: pciutils dep $(PROGRAM)
 
-# Set the flashrom version string
-SVNDEF := -D'FLASHROM_VERSION="0.9.0"'
+# Set the flashrom version string from the highest revision number
+# of the checked out flashrom files.
+SVNDEF := -D'FLASHROM_VERSION="0.9.0-r$(shell svnversion -cn . \
+          | sed -e "s/.*://" -e "s/\([0-9]*\).*/\1/")"'
 
 $(PROGRAM): $(OBJS)
 	$(CC) -o $(PROGRAM) $(OBJS) $(LDFLAGS)





More information about the coreboot mailing list