Skip to content

Commit 67f7cb8

Browse files
committed
tools: update paths to use runtime variables
Refactor tool paths in platform.txt to utilize runtime variables for better consistency and maintainability across different environments. Signed-off-by: ChihoSin [email protected]
1 parent 7e15235 commit 67f7cb8

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

platform.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
name=FoBE ESP32
22
version=3.3.0
33

4-
tools.esp32-arduino-libs.path={runtime.platform.path}/tools/esp32-arduino-libs
5-
tools.esp32-arduino-libs.path.windows={runtime.platform.path}\tools\esp32-arduino-libs
6-
tools.xtensa-esp-elf-gcc.path={runtime.platform.path}/tools/xtensa-esp-elf
7-
tools.xtensa-esp-elf-gdb.path={runtime.platform.path}/tools/xtensa-esp-elf-gdb
8-
tools.riscv32-esp-elf-gcc.path={runtime.platform.path}/tools/riscv32-esp-elf
9-
tools.riscv32-esp-elf-gdb.path={runtime.platform.path}/tools/riscv32-esp-elf-gdb
10-
11-
tools.esptool_py.path={runtime.platform.path}/tools/esptool
4+
tools.esp32-arduino-libs.path={runtime.tools.esp32-arduino-libs.path}
5+
tools.esp32-arduino-libs.path.windows={runtime.tools.esp32-arduino-libs.path}
6+
tools.xtensa-esp-elf-gcc.path={runtime.tools.xtensa-esp-elf-gcc.path}
7+
tools.xtensa-esp-elf-gdb.path={runtime.tools.xtensa-esp-elf-gdb.path}
8+
tools.riscv32-esp-elf-gcc.path={runtime.tools.riscv32-esp-elf-gcc.path}
9+
tools.riscv32-esp-elf-gdb.path={runtime.tools.riscv32-esp-elf-gdb.path}
10+
11+
tools.esptool_py.path={runtime.tools.esptool_py.path}
1212
tools.esptool_py.cmd=esptool
1313
tools.esptool_py.cmd.windows=esptool.exe
1414

@@ -275,9 +275,9 @@ debug.toolchain=gcc
275275
debug.toolchain.path={tools.{build.tarch}-esp-elf-gdb.path}/bin/
276276
debug.toolchain.prefix={build.tarch}-{build.target}-elf
277277
debug.server=openocd
278-
debug.server.openocd.path={runtime.platform.path}/tools/openocd-esp32/bin/openocd
279-
debug.server.openocd.scripts_dir={runtime.platform.path}/tools/openocd-esp32/share/openocd/scripts/
280-
debug.server.openocd.scripts_dir.windows={runtime.platform.path}\tools\openocd-esp32\share\openocd\scripts\
278+
debug.server.openocd.path={runtime.tools.openocd-esp32.path}/bin/openocd
279+
debug.server.openocd.scripts_dir={runtime.tools.openocd-esp32.path}/share/openocd/scripts/
280+
debug.server.openocd.scripts_dir.windows={runtime.tools.openocd-esp32.path}\share\openocd\scripts\
281281
debug.server.openocd.scripts.0=board/{debug_script.{build.mcu}}
282282
debug.svd_file={runtime.platform.path}/tools/ide-debug/svd/{build.mcu}.svd
283283

0 commit comments

Comments
 (0)