aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPaul Spooren <mail@aparcar.org>2020-11-01 11:53:39 -1000
committerPetr Štetiar <ynezz@true.cz>2020-11-12 18:19:44 +0100
commit165f0b00cdd2f763c1d478c2f58c535fc19b13bd (patch)
treeb95f9586bedb39e83b242b95db41e36eff8aa1e8 /include
parent86917e4979b020e33a63e10c2f3073586964a202 (diff)
downloadupstream-165f0b00cdd2f763c1d478c2f58c535fc19b13bd.tar.gz
upstream-165f0b00cdd2f763c1d478c2f58c535fc19b13bd.tar.bz2
upstream-165f0b00cdd2f763c1d478c2f58c535fc19b13bd.zip
build: store SOURCE_DATE_EPOCH in JSON info files
The source date epoch is the only reproducible date close to the actual build date. It can be used for tooling like the firmware wizard to show the image age. Signed-off-by: Paul Spooren <mail@aparcar.org>
Diffstat (limited to 'include')
-rw-r--r--include/image.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/image.mk b/include/image.mk
index de08d04aa4..eabc9ece0b 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -563,6 +563,7 @@ define Device/Build/image
@mkdir -p $$(shell dirname $$@)
DEVICE_ID="$(DEVICE_NAME)" \
BIN_DIR="$(BIN_DIR)" \
+ SOURCE_DATE_EPOCH=$(SOURCE_DATE_EPOCH) \
IMAGE_NAME="$(IMAGE_NAME)" \
IMAGE_TYPE=$(word 1,$(subst ., ,$(2))) \
IMAGE_PREFIX="$(IMAGE_PREFIX)" \