Skip to content

Commit b2d5c0d

Browse files
committed
ci: Update FIH docker to Ubuntu Plucky (25.04)
This distribution includes a newer version (14.2) of the GNU Arm toolchain. Use Python virtual environment for package installation since system-wide installation is now disallowed by default settings. Bump the Docker image version to 0.0.4 to start using the updated image. Update FIH tests to reference and work with a recent Trusted Firmware-M (TF-M) version. Change-Id: Iea583fca586b54a2c984c04164289603313c81d7 Signed-off-by: David Vincze <david.vincze@arm.com>
1 parent e4fc5ae commit b2d5c0d

File tree

4 files changed

+27
-12
lines changed

4 files changed

+27
-12
lines changed

ci/fih-tests_config.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@
66
# Copyright (c) 2025 Arm Limited
77
#
88

9-
FIH_IMAGE_VERSION=0.0.3
9+
FIH_IMAGE_VERSION=0.0.4
1010

1111
FIH_IMAGE_NAME=mcuboot-fih-test
1212

1313
FIH_IMAGE=$FIH_IMAGE_NAME:$FIH_IMAGE_VERSION
1414

1515
CONTAINER_REGISTRY=ghcr.io/mcu-tools
16+
17+
TFM_TAG=ef7e8f34b48100c9ab0d169980e84d37d6b3c8b9

ci/fih-tests_run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ source $(dirname "$0")/fih-tests_config.sh
2323
pushd ..
2424
git clone https://github.com/mcu-tools/trusted-firmware-m
2525
pushd trusted-firmware-m
26-
git checkout eb8ff0db7d657b77abcd0262d5bf7f38eb1e1cdc
26+
git checkout $TFM_TAG
2727
source lib/ext/tf-m-tests/version.txt
2828
popd
2929
git clone https://github.com/mcu-tools/tf-m-tests.git
Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2020 Arm Limited
1+
# Copyright (c) 2020-2025 Arm Limited
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM ubuntu:jammy
15+
FROM ubuntu:plucky
1616

1717
# Get dependencies for retrieving and building TF-M with MCUBoot, and QEMU.
1818
RUN apt-get update && \
@@ -23,23 +23,29 @@ RUN apt-get update && \
2323
gcc-arm-none-eabi \
2424
gdb-multiarch \
2525
git \
26-
libncurses5 \
26+
libncurses6 \
2727
python3 \
2828
python3-pip \
29+
python3-venv \
2930
qemu-system-arm \
3031
file &&\
3132
apt-get clean all
3233

33-
# Installing python packages
34-
RUN python3 -m pip install \
34+
# Add tfm work directory
35+
WORKDIR /root/work
36+
37+
# Get rid of spurious git ownership errors
38+
RUN git config --global --add safe.directory '*'
39+
40+
# Create Python virtual environment since PEP 668 protection is present
41+
RUN python3 -m venv .venv
42+
43+
# Activate Python environment and install Python packages
44+
RUN . .venv/bin/activate && python3 -m pip install \
3545
imgtool>=1.9.0 \
3646
Jinja2>=2.10.3 \
3747
PyYAML \
3848
pyasn1
3949

40-
# Add tfm work directory && get rid of spurious git ownership errors
41-
RUN mkdir -p /root/work/tfm &&\
42-
git config --global --add safe.directory '*'
43-
4450
# run the command
4551
CMD ["bash"]

ci/fih_test_docker/execute_test.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash -x
22

3-
# Copyright (c) 2020-2023 Arm Limited
3+
# Copyright (c) 2020-2025 Arm Limited
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -18,6 +18,13 @@ set -e
1818

1919
source $(dirname "$0")/paths.sh
2020

21+
# Activate Python virtual environment
22+
source $WORK_PATH/../.venv/bin/activate
23+
24+
# Required for git am to apply patches under TF-M
25+
git config --global user.email "docker@fih-test.com"
26+
git config --global user.name "docker fih-test"
27+
2128
SKIP_SIZE=$1
2229
BUILD_TYPE=$2
2330
DAMAGE_TYPE=$3

0 commit comments

Comments
 (0)