diff options
Diffstat (limited to 'util/flashrom/Makefile')
-rw-r--r-- | util/flashrom/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/util/flashrom/Makefile b/util/flashrom/Makefile index 4b2fbbd161..708c077459 100644 --- a/util/flashrom/Makefile +++ b/util/flashrom/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) |