summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Eckert2024-07-22 09:24:18 +0000
committerHauke Mehrtens2024-10-20 21:33:14 +0000
commitef3ab8bc8fb18216793dd0c8106dd222c560453a (patch)
tree0478660be771683b6de4cf186ffc2893a25dd586
parent0f88a52dc8a5451bd7f1f33ffff3b1ba3db98174 (diff)
system: add build date to ubus output
In the buildsystm the value 'SOURCE_DATE_EPOCH' is used for reproducible builds. This commit adds the new information to the system board ubus call. This information must also be added during the openwrt build to the '/usr/lib/os-release' file so that this can be read. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
-rw-r--r--system.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/system.c b/system.c
index dcc37e0..680ead9 100644
--- a/system.c
+++ b/system.c
@@ -279,6 +279,8 @@ static int system_board(struct ubus_context *ctx, struct ubus_object *obj,
key = "target";
else if (!strcasecmp(key, "PRETTY_NAME"))
key = "description";
+ else if (!strcasecmp(key, "OPENWRT_BUILD_DATE"))
+ key = "builddate";
else
continue;