From: Jonas Gorski Date: Sat, 13 Aug 2016 13:47:48 +0000 (+0200) Subject: kernel: check SOURCE_DATE_EPOCH before setting KBUILD_BUILD_TIMESTAMP X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=86ec4104181992400363e5602c11079e79524d9c;p=openwrt%2Fstaging%2Fadrian.git kernel: check SOURCE_DATE_EPOCH before setting KBUILD_BUILD_TIMESTAMP Make sure SOURCE_DATE_EPOCH actually contains something. Signed-off-by: Jonas Gorski --- 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='') \