What changed, and why it matters
This commit is a simple rename of an internal developer tool from 'tf-tools' to 'tbench'. It updates folder names, configuration file references, and VS Code extension settings. There is no change to the actual Trezor firmware code that runs on devices, and nothing in the commit affects security.
No security action needed. Treat as routine maintenance/rename.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch renames the ‘tf-tools’ VS Code extension workspace configuration to ‘tbench’ (Trezor Bench). It moves debug templates and SVD files from core/embed/xtask/tf-tools to core/embed/xtask/tbench, updates variable placeholders like ${tfTools.executablePath} to ${tbench.executablePath}, replaces tf-tools.toml with tbench.toml, and updates .gitignore and a comment in presets.toml. No firmware source code, build logic, cryptography, or device-facing behavior is modified.
Changed components
core/embed/xtask/tbench debug configuration filestbench.tomltf-tools.toml.gitignorecore/embed/xtask/presets.toml commentInspect captured patch +26 / −27
### .gitignore
@@ -14,4 +14,3 @@ proto.gv*
crypto/tests/libtrezor-crypto.so.dSYM/
.hypothesis/
/.clangd
-/.tf-tools
### core/embed/xtask/presets.toml
@@ -1,4 +1,4 @@
-# Build presets shared by xtask and tf-tools.
+# Build presets shared by xtask and Trezor Bench VSCode Extension.
#
# Each [[<presets-name>]] table is a preset fragment. Fragments whose optional
# `when` filter matches are applied in file order; later matching fragments
### core/embed/xtask/tbench/README
@@ -1,4 +1,4 @@
-This directory contains configuration assets for the Trezor Firmware Tools VS Code extension.
+This directory contains configuration assets for the Trezor Bench VSCode extension.
The extension is available at https://github.com/cepetr/vscode-tf-tools.
### core/embed/xtask/tbench/debug/emu-firmware.json
@@ -1,7 +1,7 @@
{
"type": "cppdbg",
"request": "launch",
- "program": "${tfTools.executablePath}",
+ "program": "${tbench.executablePath}",
"args": [
"-m",
"main"
### core/embed/xtask/tbench/debug/emu-generic.json
@@ -1,7 +1,7 @@
{
"type": "cppdbg",
"request": "launch",
- "program": "${tfTools.executablePath}",
+ "program": "${tbench.executablePath}",
"cwd": "${workspaceFolder}/core",
"linux": {
"MIMode": "gdb",
### core/embed/xtask/tbench/debug/f4-generic.json
@@ -1,6 +1,6 @@
{
"cwd": "${workspaceFolder}",
- "executable": "${tfTools.executablePath}",
+ "executable": "${tbench.executablePath}",
"request": "attach",
"type": "cortex-debug",
"runToEntryPoint": "main",
@@ -9,7 +9,7 @@
"interface/stlink.cfg",
"target/stm32f4x.cfg"
],
- "svdFile": "core/embed/.tf-tools/svd/STM32F427.svd",
+ "svdFile": "core/embed/xtask/tbench/svd/STM32F427.svd",
"swoConfig": {
"enabled": true,
"cpuFrequency": 180000000,
### core/embed/xtask/tbench/debug/f4-kernel+coreapp.json
@@ -1,5 +1,5 @@
{
- "executable": "${tfTools.artifactPath}/kernel.elf",
+ "executable": "${tbench.artifactPath}/kernel.elf",
"request": "attach",
"type": "cortex-debug",
"runToEntryPoint": "main",
@@ -8,10 +8,10 @@
"interface/stlink.cfg",
"target/stm32f4x.cfg"
],
- "svdFile": "core/embed/.tf-tools/svd/STM32F427.svd",
+ "svdFile": "core/embed/xtask/tbench/svd/STM32F427.svd",
"postAttachCommands": [
"monitor adapter speed 8000",
- "add-symbol-file ${tfTools.executablePath}"
+ "add-symbol-file ${tbench.executablePath}"
],
"swoConfig": {
"enabled": true,
### core/embed/xtask/tbench/debug/u5-generic.json
@@ -1,5 +1,5 @@
{
- "executable": "${tfTools.executablePath}",
+ "executable": "${tbench.executablePath}",
"request": "attach",
"type": "cortex-debug",
"runToEntryPoint": "main",
@@ -8,7 +8,7 @@
"interface/stlink.cfg",
"target/stm32u5x.cfg"
],
- "svdFile": "core/embed/.tf-tools/svd/STM32U5Gx.svd",
+ "svdFile": "core/embed/xtask/tbench/svd/STM32U5Gx.svd",
"postAttachCommands": [
"monitor adapter speed 8000"
],
### core/embed/xtask/tbench/debug/u5-kernel+coreapp.json
@@ -1,5 +1,5 @@
{
- "executable": "${tfTools.artifactPath}/kernel.elf",
+ "executable": "${tbench.artifactPath}/kernel.elf",
"request": "attach",
"type": "cortex-debug",
"runToEntryPoint": "main",
@@ -8,10 +8,10 @@
"interface/stlink.cfg",
"target/stm32u5x.cfg"
],
- "svdFile": "core/embed/.tf-tools/svd/STM32U5Gx.svd",
+ "svdFile": "core/embed/xtask/tbench/svd/STM32U5Gx.svd",
"postAttachCommands": [
"monitor adapter speed 8000",
- "add-symbol-file ${tfTools.executablePath}"
+ "add-symbol-file ${tbench.executablePath}"
],
"swoConfig": {
"enabled": true,
### core/embed/xtask/tbench/debug/u5-secmon+kernel+coreapp.json
@@ -1,5 +1,5 @@
{
- "executable": "${tfTools.artifactPath}/secmon.elf",
+ "executable": "${tbench.artifactPath}/secmon.elf",
"request": "attach",
"type": "cortex-debug",
"runToEntryPoint": "main",
@@ -8,11 +8,11 @@
"interface/stlink.cfg",
"target/stm32u5x.cfg"
],
- "svdFile": "core/embed/.tf-tools/svd/STM32U5Gx.svd",
+ "svdFile": "core/embed/xtask/tbench/svd/STM32U5Gx.svd",
"postAttachCommands": [
"monitor adapter speed 2000",
- "add-symbol-file ${tfTools.artifactPath}/kernel.elf",
- "add-symbol-file ${tfTools.executablePath}"
+ "add-symbol-file ${tbench.artifactPath}/kernel.elf",
+ "add-symbol-file ${tbench.executablePath}"
],
"swoConfig": {
"enabled": true,
### core/embed/xtask/tbench/manifest.yaml
[binary or diff unavailable]
### core/embed/xtask/tbench/svd/STM32F427.svd
[binary or diff unavailable]
### core/embed/xtask/tbench/svd/STM32U5Gx.svd
[binary or diff unavailable]
### tbench.toml
@@ -0,0 +1,8 @@
+# Configuration file for the Trezor Bench VS Code extension.
+
+[paths]
+cargo-workspace = "core/embed"
+debug-templates = "core/embed/xtask/tbench/debug"
+build-artifacts = "core/build-xtask/artifacts"
+xtask-presets = "core/embed/xtask"
+manifest = "core/embed/xtask/tbench/manifest.yaml"
### tf-tools.toml
@@ -1,8 +0,0 @@
-# Configuration file for the Trezor Firmware Tools VS Code extension.
-
-[paths]
-cargo-workspace = "core/embed"
-debug-templates = "core/embed/xtask/tf-tools/debug"
-build-artifacts = "core/build-xtask/artifacts"
-xtask-presets = "core/embed/xtask"
-manifest = "core/embed/xtask/tf-tools/manifest.yaml"Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.