1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-07-26 00:18:15 +00:00

feat(core/prodtest): report build version in prodtest intro and version

This commit is contained in:
tychovrahe 2025-03-14 06:55:07 +01:00 committed by TychoVrahe
parent 13a576c556
commit e4a31ab0e3
3 changed files with 8 additions and 5 deletions

View File

@ -0,0 +1 @@
Report build version in prodtest intro and version command.

View File

@ -564,12 +564,12 @@ OK 1 2 3 5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
### prodtest-version ### prodtest-version
Retrieves the version of the prodtest firmware. Retrieves the version of the prodtest firmware.
The command returns `OK` followed by the version in the format `<major>.<minor>.<patch>`. The command returns `OK` followed by the version in the format `<major>.<minor>.<patch>.<build>`.
Example: Example:
``` ```
prodtest-version prodtest-version
OK 0.2.6 OK 0.2.6.1
``` ```
### prodtest-wipe ### prodtest-wipe

View File

@ -31,8 +31,9 @@
#include <version.h> #include <version.h>
static void prodtest_prodtest_intro(cli_t* cli) { static void prodtest_prodtest_intro(cli_t* cli) {
cli_trace(cli, "Welcome to Trezor %s Production Test Firmware v%d.%d.%d.", cli_trace(cli, "Welcome to Trezor %s Production Test Firmware v%d.%d.%d.%d.",
MODEL_NAME, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH); MODEL_NAME, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH,
VERSION_BUILD);
cli_trace(cli, ""); cli_trace(cli, "");
cli_trace(cli, "Type 'help' to view all available commands."); cli_trace(cli, "Type 'help' to view all available commands.");
cli_trace(cli, ""); cli_trace(cli, "");
@ -44,7 +45,8 @@ static void prodtest_prodtest_version(cli_t* cli) {
return; return;
} }
cli_ok(cli, "%d.%d.%d", VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH); cli_ok(cli, "%d.%d.%d.%d", VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH,
VERSION_BUILD);
} }
static void prodtest_prodtest_wipe(cli_t* cli) { static void prodtest_prodtest_wipe(cli_t* cli) {