diff options
author | Bernhard Walle <bernhard.walle@gmx.de> | 2008-01-21 15:24:22 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2008-01-21 15:24:22 +0000 |
commit | 56a1d478079e21b220c329e307b00ce834bc4eee (patch) | |
tree | 8dd5462e548dade569d43b8eafd88e2aca5e827d /Makefile | |
parent | c9ea904685bac0af570149772021fc1f587e8ba0 (diff) | |
download | flashrom-56a1d478079e21b220c329e307b00ce834bc4eee.zip flashrom-56a1d478079e21b220c329e307b00ce834bc4eee.tar.gz |
This patch adds version information to flashrom
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 <bernhard.walle@gmx.de>
Acked-by: Ulf Jordan <jordan@chalmers.se>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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/")"' +CFLAGS += $(SVNDEF) + $(PROGRAM): $(OBJS) $(CC) -o $(PROGRAM) $(OBJS) $(LDFLAGS) $(STRIP) $(STRIP_ARGS) $(PROGRAM) |