From ef3ab8bc8fb18216793dd0c8106dd222c560453a Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Mon, 22 Jul 2024 11:24:18 +0200 Subject: [PATCH] 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 --- system.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.30.2