target/espressif: add semihosting support
[fw/openocd] / tcl / target / esp_common.cfg
diff --git a/tcl/target/esp_common.cfg b/tcl/target/esp_common.cfg
new file mode 100644 (file)
index 0000000..424c0cd
--- /dev/null
@@ -0,0 +1,10 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Common ESP chips definitions
+
+if { [info exists ESP_SEMIHOST_BASEDIR] } {
+       set _SEMIHOST_BASEDIR $ESP_SEMIHOST_BASEDIR
+} else {
+       # by default current dir (when OOCD has been started)
+       set _SEMIHOST_BASEDIR "."
+}