build: use git to get GITVERSION

This commit is contained in:
Fabian Grünbichler 2017-06-20 09:51:41 +02:00
parent 47d1503892
commit 97d6ca37ca

View File

@ -24,7 +24,7 @@ ifneq (${ARCH}, amd64)
KERNEL_ARCH=${ARCH} KERNEL_ARCH=${ARCH}
endif endif
GITVERSION:=$(shell cat .git/refs/heads/master) GITVERSION:=$(shell git rev-parse HEAD)
CHANGELOG_DATE:=$(shell dpkg-parsechangelog -SDate -lchangelog.Debian) CHANGELOG_DATE:=$(shell dpkg-parsechangelog -SDate -lchangelog.Debian)
export SOURCE_DATE_EPOCH ?= $(shell dpkg-parsechangelog -STimestamp -lchangelog.Debian) export SOURCE_DATE_EPOCH ?= $(shell dpkg-parsechangelog -STimestamp -lchangelog.Debian)