This repository has been archived by the owner on Aug 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker: Update Dockerfile and cleanup dependencies
This patch refactors the Dockerfile setup process, by optimizing the installation of tools and dependencies. It simplifies the environment setup by using ARGs for tool versions. This updated Dockerfile allows to be used for `x86_64` and `aarch64` host machines. Also, it fixes the group ID extraction bug in the init script. Signed-off-by: Leandro Belli <leandro.belli@arm.com> Change-Id: I38b999b2c54230af5e26b359823815f3194de511
- Loading branch information
1 parent
706c2ce
commit c88e160
Showing
9 changed files
with
376 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# | ||
# Arm SCP/MCP Software | ||
# Copyright (c) 2024, Arm Limited and Contributors. All rights reserved. | ||
# | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# | ||
|
||
set -e | ||
|
||
tool_dir=$1 | ||
version=$2 | ||
hostarch=$(uname -m) | ||
|
||
toolchain="cmake-${version}-linux-${hostarch}" | ||
url="https://github.com/Kitware/CMake/releases/download/v${version}/${toolchain}.tar.gz" | ||
|
||
echo -e "Installing ${toolchain}\n" | ||
|
||
# Create target folder | ||
mkdir -p ${tool_dir} | ||
|
||
# Download | ||
wget -nv ${url} | ||
|
||
# Extract | ||
tar -xf ${toolchain}.tar.gz -C ${tool_dir} --strip-components=1 | ||
|
||
# Clean up | ||
rm ${toolchain}.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# | ||
# Arm SCP/MCP Software | ||
# Copyright (c) 2024, Arm Limited and Contributors. All rights reserved. | ||
# | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# | ||
|
||
set -e | ||
|
||
tool_dir=$1 | ||
version=$2 | ||
|
||
url="https://github.com/danmar/cppcheck.git" | ||
|
||
echo -e "Installing cppcheck tool version: ${version}\n" | ||
|
||
# Create target folder | ||
mkdir -p ${tool_dir} | ||
pushd ${tool_dir} | ||
|
||
# Download | ||
git clone "${url}" --depth 1 --branch "${version}" source | ||
|
||
# Build | ||
cmake -G "Ninja" -DCMAKE_INSTALL_PREFIX=${tool_dir} \ | ||
-DFILESDIR=${tool_dir} ./source | ||
cmake --build . -- install | ||
|
||
popd |
Oops, something went wrong.