aboutsummaryrefslogtreecommitdiffstats
path: root/include/kernel.mk
diff options
context:
space:
mode:
Diffstat (limited to 'include/kernel.mk')
-rw-r--r--include/kernel.mk6
1 files changed, 6 insertions, 0 deletions
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