projects
/
librecmc
/
librecmc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
build: move definition of KBUILD_BUILD_TIMESTAMP to include/kernel.mk
[librecmc/librecmc.git]
/
include
/
kernel.mk
diff --git
a/include/kernel.mk
b/include/kernel.mk
index effece2869d5ad21eba509d2614326a1f3b6b82e..464c94572e9c67d24a6de46f8db1babc6b4d9dc7 100644
(file)
--- 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