From: Florian Eckert Date: Mon, 22 Jul 2024 09:24:18 +0000 (+0200) Subject: system: add build date to ubus output X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ef3ab8bc8fb18216793dd0c8106dd222c560453a;p=project%2Fprocd.git 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 --- 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;