mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 14:11:15 +02:00
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 <bernhard.walle@gmx.de> Acked-by: Ulf Jordan <jordan@chalmers.se> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
This commit is contained in:

committed by
Uwe Hermann

parent
7ff530b40e
commit
201bde33d0
6
Makefile
6
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/")"'
|
||||
CFLAGS += $(SVNDEF)
|
||||
|
||||
$(PROGRAM): $(OBJS)
|
||||
$(CC) -o $(PROGRAM) $(OBJS) $(LDFLAGS)
|
||||
$(STRIP) $(STRIP_ARGS) $(PROGRAM)
|
||||
|
Reference in New Issue
Block a user