summaryrefslogtreecommitdiff
path: root/scripts/install.sh
blob: 63b4040813206421c7427a04cc2d0b9f36854227 (plain)
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
#!/bin/bash
##############################################################################
# Copyright (c) 2024 Microsoft Corporation
# Copyright (c) 2026 Eclipse ThreadX contributors
#
# This program and the accompanying materials are made available under the
# terms of the MIT License which is available at
# https://opensource.org/licenses/MIT.
#
# SPDX-License-Identifier: MIT
##############################################################################

#

# Remove large folder
rm -rf /opt/hostedtoolcache

# Install necessary softwares for Ubuntu.

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install -y \
    gcc-multilib \
    git \
    g++ \
    python3-pip \
    ninja-build \
    unifdef \
    p7zip-full \
    tofrodos \
    dos2unix \
    gawk \
    libssl-dev:i386 \
    libcmocka-dev:i386 \
    gcc-arm-none-eabi \
    software-properties-common

wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | sudo apt-key add -
CODENAME=$(lsb_release -c | cut -f2 -d':' | sed 's/\t//')
apt-add-repository "deb https://apt.kitware.com/ubuntu/ $CODENAME main"

python3 -m pip install --upgrade pip
pip3 install gcovr==4.1
pip install --upgrade cmake