diff options
| author | Florian Eckert | 2024-07-22 09:24:18 +0000 |
|---|---|---|
| committer | Hauke Mehrtens | 2024-10-20 21:33:14 +0000 |
| commit | ef3ab8bc8fb18216793dd0c8106dd222c560453a (patch) | |
| tree | 0478660be771683b6de4cf186ffc2893a25dd586 | |
| parent | 0f88a52dc8a5451bd7f1f33ffff3b1ba3db98174 (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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |