superiotool: Add support for git-based version number
The superiotool Makefile extracts a version string from SVN. This does not work with a git repository, and results in an empty version string. Use the output of 'git describe' as version string instead. Change-Id: Idf92c02753b28ef5bcdd3b6df4a08d79ae974434 Signed-off-by: Guenter Roeck <linux@roeck-us.net> Reviewed-on: http://review.coreboot.org/1151 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
This commit is contained in:
parent
97de28da8a
commit
3397ceff7b
|
@ -24,13 +24,12 @@ CC = gcc
|
||||||
INSTALL = /usr/bin/install
|
INSTALL = /usr/bin/install
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
|
|
||||||
# Set the superiotool version string from the highest revision number
|
# Set the superiotool version string to the output of 'git describe'.
|
||||||
# of the checked out superiotool files.
|
|
||||||
SVNDEF := -D'SUPERIOTOOL_VERSION="$(shell svnversion -cn . \
|
VERSION := -D'SUPERIOTOOL_VERSION="$(shell git describe 2>/dev/null)"'
|
||||||
| sed -e "s/.*://" -e "s/\([0-9]*\).*/\1/")"'
|
|
||||||
|
|
||||||
CFLAGS += -O2 -Wall -Wstrict-prototypes -Wundef -Wstrict-aliasing \
|
CFLAGS += -O2 -Wall -Wstrict-prototypes -Wundef -Wstrict-aliasing \
|
||||||
-Werror-implicit-function-declaration -ansi -pedantic $(SVNDEF)
|
-Werror-implicit-function-declaration -ansi -pedantic $(VERSION)
|
||||||
LDFLAGS += -lz
|
LDFLAGS += -lz
|
||||||
|
|
||||||
OBJS = superiotool.o serverengines.o ali.o fintek.o ite.o nsc.o nuvoton.o \
|
OBJS = superiotool.o serverengines.o ali.o fintek.o ite.o nsc.o nuvoton.o \
|
||||||
|
|
Loading…
Reference in New Issue