summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Gorski <jonas.gorski@gmail.com>2016-08-13 15:47:48 +0200
committerJonas Gorski <jonas.gorski@gmail.com>2016-08-13 15:49:26 +0200
commit86ec4104181992400363e5602c11079e79524d9c (patch)
treedbdc7b3788543e357f1d4c7862c75a7f82426a37
parent5fe923b15d94e27fa6db863a6d994bfb4355e4cb (diff)
downloadmaster-31e0f0ae-86ec4104181992400363e5602c11079e79524d9c.tar.gz
master-31e0f0ae-86ec4104181992400363e5602c11079e79524d9c.tar.bz2
master-31e0f0ae-86ec4104181992400363e5602c11079e79524d9c.zip
kernel: check SOURCE_DATE_EPOCH before setting KBUILD_BUILD_TIMESTAMP
Make sure SOURCE_DATE_EPOCH actually contains something. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
-rw-r--r--include/kernel-defaults.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/kernel-defaults.mk b/include/kernel-defaults.mk
index 534699b79c..53e733adc0 100644
--- a/include/kernel-defaults.mk
+++ b/include/kernel-defaults.mk
@@ -12,7 +12,7 @@ KERNEL_MAKEOPTS := -C $(LINUX_DIR) \
KBUILD_HAVE_NLS=no \
KBUILD_BUILD_USER="$(call qstrip,$(CONFIG_KERNEL_BUILD_USER))" \
KBUILD_BUILD_HOST="$(call qstrip,$(CONFIG_KERNEL_BUILD_DOMAIN))" \
- KBUILD_BUILD_TIMESTAMP="$(shell date -u --date="@$(SOURCE_DATE_EPOCH)")" \
+ $(if $(SOURCE_DATE_EPOCH),KBUILD_BUILD_TIMESTAMP="$(shell date -u --date="@$(SOURCE_DATE_EPOCH)")") \
KBUILD_BUILD_VERSION="0" \
CONFIG_SHELL="$(BASH)" \
$(if $(findstring c,$(OPENWRT_VERBOSE)),V=1,V='') \