I want to build and install openocd on my Omega2+ in order to program my ATSAML21G18B chip. I have installed openocd using package manager but it didn't help me because it has only jtag support. I want to use swd option (programming using bitbang) because I have two pins available. So I decided to build openocd myself. After some search I found https://review.openocd.org/c/openocd/+/6023 so I am almost sure that this is possible. I could program the chip using Raspberry pi 4 (https://learn.adafruit.com/programming-microcontrollers-using-openocd-on-raspberry-pi) but I couldn't build openocd in the same way on my omega2 board. There are some library dependencies and I couldn't resolve them. I am adding some missing files myself according to the summary of ./configure && make instructions and trying to install necessary packages manually but I am not sure I could install openocd in this way.
Some useful resources:
Thanks for support!!