[source] build: move definition of KBUILD_BUILD_TIMESTAMP to include/kernel.mk

LEDE Commits lede-commits at lists.infradead.org
Sat Jun 17 06:10:16 PDT 2017


nbd pushed a commit to source.git, branch master:
https://git.lede-project.org/e5fc15bf9a5868758e4efc8688b8bf58295fa5e7

commit e5fc15bf9a5868758e4efc8688b8bf58295fa5e7
Author: Alexander Couzens <lynxis at fe80.eu>
AuthorDate: Tue Jun 13 13:04:35 2017 +0200

    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 <lynxis at fe80.eu>
---
 include/kernel-defaults.mk | 6 ------
 include/kernel.mk          | 6 ++++++
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/include/kernel-defaults.mk b/include/kernel-defaults.mk
index 8a3e2be..f061863 100644
--- a/include/kernel-defaults.mk
+++ b/include/kernel-defaults.mk
@@ -5,12 +5,6 @@
 # See /LICENSE for more information.
 #
 
-ifneq ($(SOURCE_DATE_EPOCH),)
-  ifndef DUMP
-    KBUILD_BUILD_TIMESTAMP:=$(shell perl -e 'print scalar gmtime($(SOURCE_DATE_EPOCH))')
-  endif
-endif
-
 ifdef CONFIG_STRIP_KERNEL_EXPORTS
   KERNEL_MAKEOPTS += \
 	EXTRA_LDSFLAGS="-I$(KERNEL_BUILD_DIR) -include symtab.h"
diff --git a/include/kernel.mk b/include/kernel.mk
index effece2..464c945 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



More information about the lede-commits mailing list