From 7c07008335086b1c655beb6438eb629ecf6c5b03 Mon Sep 17 00:00:00 2001 From: Alexandre Paillier Date: Fri, 5 May 2023 14:26:09 +0200 Subject: [PATCH] Dynamic year shown in settings --- Makefile | 1 + src_nbgl/ui_settings.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d037261..104d521 100644 --- a/Makefile +++ b/Makefile @@ -89,6 +89,7 @@ DEFINES += OS_IO_SEPROXYHAL DEFINES += HAVE_SPRINTF HAVE_SNPRINTF_FORMAT_U DEFINES += HAVE_IO_USB HAVE_L4_USBLIB IO_USB_MAX_ENDPOINTS=4 IO_HID_EP_LENGTH=64 HAVE_USB_APDU DEFINES += LEDGER_MAJOR_VERSION=$(APPVERSION_M) LEDGER_MINOR_VERSION=$(APPVERSION_N) LEDGER_PATCH_VERSION=$(APPVERSION_P) +DEFINES += BUILD_YEAR=\"$(shell date +%Y)\" # U2F DEFINES += HAVE_U2F HAVE_IO_U2F diff --git a/src_nbgl/ui_settings.c b/src_nbgl/ui_settings.c index c952140..7981356 100644 --- a/src_nbgl/ui_settings.c +++ b/src_nbgl/ui_settings.c @@ -3,7 +3,7 @@ #include "nbgl_use_case.h" static const char* const infoTypes[] = {"Version", APPNAME " App"}; -static const char* const infoContents[] = {APPVERSION, "(c) 2022 Ledger"}; +static const char* const infoContents[] = {APPVERSION, "(c) " BUILD_YEAR " Ledger"}; enum { BLIND_SIGNING_TOKEN = FIRST_USER_TOKEN,