-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_tools.sh
More file actions
executable file
·51 lines (42 loc) · 1.1 KB
/
Copy pathinstall_tools.sh
File metadata and controls
executable file
·51 lines (42 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
set -e
sudo apt-get update
# Toolchain
sudo apt-get install -y \
gcc-arm-none-eabi \
gdb-multiarch \
binutils-arm-none-eabi
# Ruby (required by Ceedling/CMock)
sudo apt-get install -y \
ruby \
ruby-dev \
build-essential
# Python tools
sudo apt-get install -y \
python3-pip
# Coverage tool
python3 -m pip install --upgrade pip
python3 -m pip install \
pyelftools \
gcovr
# Ceedling (includes Unity + CMock support)
# Install Ceedling only if not already installed
if ! command -v ceedling >/dev/null 2>&1; then
sudo gem install ceedling
fi
# Renode
# Install Renode only if not already installed
if ! command -v renode >/dev/null 2>&1; then
wget -q https://github.com/renode/renode/releases/download/v1.16.1/renode_1.16.1_amd64.deb
sudo dpkg -i renode_1.16.1_amd64.deb || true
sudo apt-get update
sudo apt-get install -f -y
rm renode_1.16.1_amd64.deb
fi
# Verify installation
echo "===== Installed Versions ====="
gcc --version | head -n1 || true
ruby --version || true
ceedling version || true
gcovr --version || true
renode --version || true