summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Spooren2026-09-23 12:52:24 +0000
committerPaul Spooren2026-09-24 15:23:08 +0000
commite2aa1d759647837a9e82e22ed5db9a3b79b27cc2 (patch)
treed4a186fb145f46421aaa977f2d040809198cca64
parent8b7604f90a872366e956333001ac16960832b80b (diff)
apex: take the build date from SOURCE_DATE_EPOCH
The APEX boot loader embeds the time of the build in its version banner, which makes the Iomega NAS100D factory image differ between builds: -compiled for OpenWrt NAS100D/BE on 2026.Sep.23-04:17:21 +compiled for OpenWrt NAS100D/BE on 2026.Sep.23-11:06:03 APEX sets BUILDDATE with $(shell date) in its top level Makefile. Pass BUILDDATE on the command line, formatted from SOURCE_DATE_EPOCH in UTC and the C locale, which overrides it for all sub-makes. Link: https://github.com/openwrt/openwrt/pull/25354 Signed-off-by: Paul Spooren <mail@aparcar.org>
-rw-r--r--package/boot/apex/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/boot/apex/Makefile b/package/boot/apex/Makefile
index cf8d97bb1c..5a04237d25 100644
--- a/package/boot/apex/Makefile
+++ b/package/boot/apex/Makefile
@@ -9,7 +9,7 @@ PKG_NAME:=apex
# This version was created from the stalled and unreleased v1.6.10
# with some patches on top.
PKG_VERSION:=1.6.10-openwrt
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/linusw/apex.git
@@ -41,6 +41,7 @@ define build_apex
$(TARGET_CONFIGURE_OPTS) \
KBUILD_HAVE_NLS=no \
ARCH=arm \
+ $(if $(SOURCE_DATE_EPOCH),BUILDDATE="$(shell LC_ALL=C date --utc --date="@$(SOURCE_DATE_EPOCH)" "+%Y.%b.%d-%R:%S")") \
clean all
$(INSTALL_BIN) $(PKG_BUILD_DIR)/apex.bin $(PKG_BUILD_DIR)/out/apex-$(2).bin
endef