aboutsummaryrefslogtreecommitdiffstats
path: root/target/sdk/Makefile
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2016-10-21 12:21:40 +0200
committerJo-Philipp Wich <jo@mein.io>2016-10-21 12:43:45 +0200
commit8cc922411561dfa6f65fbb492a7bdb6fb9bbb6d5 (patch)
tree9fc8a0c515525e0ba8f47e607e260e5d03425498 /target/sdk/Makefile
parent3b26a5bb15978914118a7958764f5c8079bf72f9 (diff)
downloadupstream-8cc922411561dfa6f65fbb492a7bdb6fb9bbb6d5.tar.gz
upstream-8cc922411561dfa6f65fbb492a7bdb6fb9bbb6d5.tar.bz2
upstream-8cc922411561dfa6f65fbb492a7bdb6fb9bbb6d5.zip
sdk: predefine SOURCE_DATE_EPOCH
When building packages within the SDK, there is no Git revision history available so prepopulate SOURCE_DATE_EPOCH in version.mk, similar to how we handle REVISION already. Acked-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'target/sdk/Makefile')
-rw-r--r--target/sdk/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/sdk/Makefile b/target/sdk/Makefile
index 77695ee285..06889044ea 100644
--- a/target/sdk/Makefile
+++ b/target/sdk/Makefile
@@ -118,6 +118,7 @@ $(BIN_DIR)/$(SDK_NAME).tar.bz2: clean
cat $(TOPDIR)/feeds.conf.default >> $(SDK_BUILD_DIR)/feeds.conf.default; \
fi
$(SED) 's,^# REVISION:=.*,REVISION:=$(REVISION),g' $(SDK_BUILD_DIR)/include/version.mk
+ $(SED) 's,^# SOURCE_DATE_EPOCH:=.*,SOURCE_DATE_EPOCH:=$(SOURCE_DATE_EPOCH),g' $(SDK_BUILD_DIR)/include/version.mk
$(SED) '/LINUX_VERMAGIC:=/ { s,unknown,$(LINUX_VERMAGIC),g }' $(SDK_BUILD_DIR)/include/kernel.mk
find $(SDK_BUILD_DIR) -name .git | $(XARGS) rm -rf
find $(SDK_BUILD_DIR) -name .svn | $(XARGS) rm -rf