mirror of
https://github.com/eclipse-threadx/levelx.git
synced 2026-09-13 19:46:00 +08:00
Applied the standard MIT license header to all project-owned C, header, assembly, shell, and Python files that were missing a copyright notice. Third-party, toolchain startup, and auto-generated files were excluded. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
39 lines
1.1 KiB
Bash
Executable File
39 lines
1.1 KiB
Bash
Executable File
#!/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 apt-get update
|
|
sudo apt-get install -y \
|
|
gcc-multilib \
|
|
git \
|
|
g++ \
|
|
python3-pip \
|
|
ninja-build \
|
|
unifdef \
|
|
p7zip-full \
|
|
tofrodos \
|
|
gawk \
|
|
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 |