Checkout OpenOCD sources:
Clone git repository. This will create a folder called openocd-src:
Code Block | ||||
---|---|---|---|---|
| ||||
git clone --depth 1 git://git.code.sf.net/p/openocd/code openocd-src |
...
Code Block | ||||
---|---|---|---|---|
| ||||
sudo apt build-dep openocd |
If you see an error like:
Info | ||
---|---|---|
| ||
Then add or uncomment src-deb repositories to /etc/apt/sources.list |
Code Block | ||||
---|---|---|---|---|
| ||||
sudo apt update sudo apt build-dep openocd |
...