From e5fc15bf9a5868758e4efc8688b8bf58295fa5e7 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Tue, 13 Jun 2017 13:04:35 +0200 Subject: build: move definition of KBUILD_BUILD_TIMESTAMP to include/kernel.mk Fixes: 0aed054bec (build: add KERNEL_MAKE and KERNEL_MAKE_FLAGS variables and move to kernel.mk) Signed-off-by: Alexander Couzens --- include/kernel.mk | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/kernel.mk') diff --git a/include/kernel.mk b/include/kernel.mk index effece2869..464c94572e 100644 --- a/include/kernel.mk +++ b/include/kernel.mk @@ -10,6 +10,12 @@ CHECK:=1 DUMP:=1 endif +ifneq ($(SOURCE_DATE_EPOCH),) + ifndef DUMP + KBUILD_BUILD_TIMESTAMP:=$(shell perl -e 'print scalar gmtime($(SOURCE_DATE_EPOCH))') + endif +endif + ifeq ($(__target_inc),) ifndef CHECK include $(INCLUDE_DIR)/target.mk -- cgit