File tree Expand file tree Collapse file tree 4 files changed +27
-12
lines changed Expand file tree Collapse file tree 4 files changed +27
-12
lines changed Original file line number Diff line number Diff line change 66# Copyright (c) 2025 Arm Limited
77#
88
9- FIH_IMAGE_VERSION=0.0.3
9+ FIH_IMAGE_VERSION=0.0.4
1010
1111FIH_IMAGE_NAME=mcuboot-fih-test
1212
1313FIH_IMAGE=$FIH_IMAGE_NAME :$FIH_IMAGE_VERSION
1414
1515CONTAINER_REGISTRY=ghcr.io/mcu-tools
16+
17+ TFM_TAG=ef7e8f34b48100c9ab0d169980e84d37d6b3c8b9
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ source $(dirname "$0")/fih-tests_config.sh
2323pushd ..
2424git clone https://github.com/mcu-tools/trusted-firmware-m
2525pushd trusted-firmware-m
26- git checkout eb8ff0db7d657b77abcd0262d5bf7f38eb1e1cdc
26+ git checkout $TFM_TAG
2727source lib/ext/tf-m-tests/version.txt
2828popd
2929git clone https://github.com/mcu-tools/tf-m-tests.git
Original file line number Diff line number Diff line change 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.
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.
1818RUN 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
4551CMD ["bash" ]
Original file line number Diff line number Diff line change 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
1919source $( 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+
2128SKIP_SIZE=$1
2229BUILD_TYPE=$2
2330DAMAGE_TYPE=$3
You can’t perform that action at this time.
0 commit comments