summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-05-04 12:29:59 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-05-04 12:29:59 +0000
commit9e67585c5dcb90f4ea1748cb0e67b64750c42158 (patch)
tree9201651cd8d449b645f74085ae22526d40ab5e0f /Makefile
parent3f8f9b65e2630246a895722719b735001ecb27b0 (diff)
downloadast2050-flashrom-9e67585c5dcb90f4ea1748cb0e67b64750c42158.zip
ast2050-flashrom-9e67585c5dcb90f4ea1748cb0e67b64750c42158.tar.gz
Onwards with development
Re-add the svn revision to the version string. Corresponding to flashrom svn r457. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8445c60..8c42343 100644
--- a/Makefile
+++ b/Makefile
@@ -38,8 +38,10 @@ OBJS = chipset_enable.o board_enable.o udelay.o jedec.o stm50flw0x0x.o \
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)
OpenPOWER on IntegriCloud