Skip to content

Commit 781f954

Browse files
Added SEGGER Ozone install script to setup-devcontainer
1 parent d850158 commit 781f954

File tree

2 files changed

+23
-5
lines changed

2 files changed

+23
-5
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ e.g. "`cu -l /dev/ttyACM0 -s 115200`".
4848

4949
To close the connection, press RETURN/ESC/Ctrl-C, type "`~.`" (tilde, dot) and wait for 3 seconds.
5050

51+
### SEGGER Ozone
52+
Use the `setup-devcontainer` script to download and install [SEGGER Ozone](https://www.segger.com/products/development-tools/ozone-j-link-debugger/) and its dependencies:
53+
54+
setup-devcontainer --install-ozone
55+
56+
Launch it from a terminal tab using the `ozone` command.
57+
5158
## Licensing
5259

5360
If not stated otherwise, the contents of this project are licensed under The MIT License. The full license text is provided in the [`LICENSE`](LICENSE) file.

setup-devcontainer

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
#!/bin/bash
22

3-
setup_dir=$(pwd)/.vscode/setup
4-
mkdir -p $setup_dir
5-
cp /opt/SEGGER/JLink/99-jlink.rules $setup_dir/
6-
cp /opt/OpenOCD/openocd/contrib/60-openocd.rules $setup_dir/
7-
cp /opt/devcontainer/install-rules $setup_dir/
3+
case $1 in
4+
--install-ozone)
5+
curl -LO https://www.segger.com/downloads/jlink/Ozone_Linux_x86_64.deb
6+
sudo bash -c 'add-apt-repository -y ppa:rock-core/qt4 && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y libfreetype-dev libsm-dev libxrender-dev libxrandr-dev libxfixes-dev libxcursor-dev libfontconfig-dev libqtcore4'
7+
sudo bash -c 'DEBIAN_FRONTEND=noninteractive apt-get install -y ./Ozone_Linux_x86_64.deb'
8+
rm Ozone_Linux_x86_64.deb
9+
;;
10+
11+
*)
12+
setup_dir=$(pwd)/.vscode/setup
13+
mkdir -p $setup_dir
14+
cp /opt/SEGGER/JLink/99-jlink.rules $setup_dir/
15+
cp /opt/OpenOCD/openocd/contrib/60-openocd.rules $setup_dir/
16+
cp /opt/devcontainer/install-rules $setup_dir/
17+
;;
18+
esac

0 commit comments

Comments
 (0)