diff --git a/core/embed/projects/prodtest/.changelog.d/5050.changed b/core/embed/projects/prodtest/.changelog.d/5050.changed new file mode 100644 index 0000000000..0184e0bef6 --- /dev/null +++ b/core/embed/projects/prodtest/.changelog.d/5050.changed @@ -0,0 +1 @@ +Report build version in prodtest intro and version command. diff --git a/core/embed/projects/prodtest/README.md b/core/embed/projects/prodtest/README.md index 71a9514056..9f289bb91e 100644 --- a/core/embed/projects/prodtest/README.md +++ b/core/embed/projects/prodtest/README.md @@ -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 Retrieves the version of the prodtest firmware. -The command returns `OK` followed by the version in the format `..`. +The command returns `OK` followed by the version in the format `...`. Example: ``` prodtest-version -OK 0.2.6 +OK 0.2.6.1 ``` ### prodtest-wipe diff --git a/core/embed/projects/prodtest/cmd/prodtest_prodtest.c b/core/embed/projects/prodtest/cmd/prodtest_prodtest.c index 00fd34f756..3040aa351f 100644 --- a/core/embed/projects/prodtest/cmd/prodtest_prodtest.c +++ b/core/embed/projects/prodtest/cmd/prodtest_prodtest.c @@ -31,8 +31,9 @@ #include static void prodtest_prodtest_intro(cli_t* cli) { - cli_trace(cli, "Welcome to Trezor %s Production Test Firmware v%d.%d.%d.", - MODEL_NAME, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH); + cli_trace(cli, "Welcome to Trezor %s Production Test Firmware v%d.%d.%d.%d.", + MODEL_NAME, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH, + VERSION_BUILD); cli_trace(cli, ""); cli_trace(cli, "Type 'help' to view all available commands."); cli_trace(cli, ""); @@ -44,7 +45,8 @@ static void prodtest_prodtest_version(cli_t* cli) { 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) {