build: use git to get GITVERSION
This commit is contained in:
parent
47d1503892
commit
97d6ca37ca
2
Makefile
2
Makefile
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user