Skip to content

Conversation

@stephanosio
Copy link
Member

@stephanosio stephanosio commented Oct 19, 2025

Add a script to build OpenOCD for macOS and Windows and update the CI workflow to use it.


Tested in https://github.com/zephyrproject-rtos/sdk-ng/actions/runs/18622759004

Add OpenOCD as a submodule in preparation for adding multiplatform
OpenOCD builds.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
This commit updates the OpenOCD recipe to obtain the SRCREV from the
sdk-ng 'openocd' submodule.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
Host tool build job requires the OpenOCD submodule.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
Actually make use of the previously unused `QEMU_SOURCE` variable.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
Shebang

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
This commit updates the CI workflow to use the sdk-build v1.4.2 image,
which includes the additional MinGW-w64 libraries required for building
OpenOCD for Windows.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
Add a script to build OpenOCD for macOS and Windows, and update the CI
workflow to use it.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
In the macOS Zephyr SDK host tools, OpenOCD scripts are located under
`/opt/openocd/share/openocd/scripts`.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
Add OpenOCD prefix for the Windows host tools -- note that there is no
"unified bin directory" in the Windows Zephyr SDK host tools.

Also, fix the `OPENOCD_DEFAULT_PATH`.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
@stephanosio stephanosio marked this pull request as ready for review October 19, 2025 02:42
@stephanosio stephanosio merged commit 99e03db into zephyrproject-rtos:main Oct 19, 2025
40 of 41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant