summaryrefslogtreecommitdiff
path: root/scripts/install_secure.sh
blob: 05ed023586f1622a29ae1cf99a83d1127858b48d (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
#! /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
##############################################################################


sudo dpkg --add-architecture i386

sudo cp /usr/bin/openssl /usr/bin/openssl-1.1

sudo apt update
sudo apt install -y \
    gcc-multilib \
    g++ \
    python3-pip \
    ninja-build \
    unifdef \
    tofrodos \
    gcovr \
    libpcap-dev:i386 libgcc-s1:i386 \
    ethtool

wget https://www.openssl.org/source/old/1.0.2/openssl-1.0.2n.tar.gz
tar -xzvf openssl-1.0.2n.tar.gz
cd openssl-1.0.2n
sudo ./config
sudo make install

sudo ln -sf /usr/local/ssl/bin/openssl /usr/bin/openssl

openssl version -v