From 8cc922411561dfa6f65fbb492a7bdb6fb9bbb6d5 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 21 Oct 2016 12:21:40 +0200 Subject: sdk: predefine SOURCE_DATE_EPOCH When building packages within the SDK, there is no Git revision history available so prepopulate SOURCE_DATE_EPOCH in version.mk, similar to how we handle REVISION already. Acked-by: Felix Fietkau Signed-off-by: Jo-Philipp Wich --- include/toplevel.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/toplevel.mk') diff --git a/include/toplevel.mk b/include/toplevel.mk index e13acafe9c..81329ac414 100644 --- a/include/toplevel.mk +++ b/include/toplevel.mk @@ -16,13 +16,14 @@ ifeq ($(SDK),1) include $(TOPDIR)/include/version.mk else REVISION:=$(shell $(TOPDIR)/scripts/getver.sh) + SOURCE_DATE_EPOCH:=$(shell $(TOPDIR)/scripts/get_source_date_epoch.sh) endif HOSTCC ?= $(CC) export REVISION +export SOURCE_DATE_EPOCH export GIT_CONFIG_PARAMETERS='core.autocrlf=false' export MAKE_JOBSERVER=$(filter --jobserver%,$(MAKEFLAGS)) -export SOURCE_DATE_EPOCH:=$(shell $(TOPDIR)/scripts/get_source_date_epoch.sh) # prevent perforce from messing with the patch utility unexport P4PORT P4USER P4CONFIG P4CLIENT -- cgit v1.2.3