diff options
author | Thomas Huth <thuth@redhat.com> | 2018-07-19 14:46:27 +0200 |
---|---|---|
committer | Alexey Kardashevskiy <aik@ozlabs.ru> | 2018-07-24 16:59:31 +1000 |
commit | a8a16a7b59c15d840225e6cf9fb4ee6bd191dbd7 (patch) | |
tree | e20fc8b334c0050f54fee2ebd53d4f41389091d9 | |
parent | d8a9354c2a351360da438826c95cf78efcaaf1b0 (diff) | |
download | SLOF-a8a16a7b59c15d840225e6cf9fb4ee6bd191dbd7.zip SLOF-a8a16a7b59c15d840225e6cf9fb4ee6bd191dbd7.tar.gz SLOF-a8a16a7b59c15d840225e6cf9fb4ee6bd191dbd7.tar.bz2 |
Makefile: Set a proper DRIVER_NAME when building from a git tree
The DRIVER_NAME environment variable is not set up correctly for the
build_romfs tool in case we build from a git tree, so the field in the
rom header did not contain much useful data. Let's use the revision
string from git as DRIVER_NAME in this case.
Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
-rw-r--r-- | Makefile.gen | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile.gen b/Makefile.gen index 2fdf23f..f18c57a 100644 --- a/Makefile.gen +++ b/Makefile.gen @@ -23,6 +23,7 @@ export DRIVER_NAME=$(shell cat ../VERSION | sed -e "s/-/./g" | awk -F . '{ print else ifneq (,$(wildcard ../.git)) RELEASE=git-$(shell git rev-parse --short=16 HEAD) +export DRIVER_NAME=git-$(shell git rev-parse --short=12 HEAD) else ifneq (,$(shell cat ../VERSION)) RELEASE="$(USER)@$(HOSTNAME) release $(shell cat ../VERSION)" |