blob: f4b743a2322c4dbfae185fa6c433f8148aa6fcf2 [file] [log] [blame]
Mate Toth-Pal5495f202020-07-16 08:33:48 +02001# Copyright (c) 2020 Arm Limited
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15FROM ubuntu:focal
16
17# get dependencies for retrieving and building TF-M with MCUBoot, and QEMU.
18RUN apt-get update && \
19 DEBIAN_FRONTEND="noninteractive" \
20 apt-get install -y \
21 cmake \
22 curl \
23 gcc-arm-none-eabi \
24 gdb-multiarch \
25 git \
26 libncurses5 \
27 python3 \
28 python3-pip \
29 qemu-system-arm
30
31RUN \
32 # installing python packages
33 python3 -m pip install \
34 imgtool==1.6.0 \
35 Jinja2==2.10 \
36 PyYAML==3.12 \
37 pyasn1==0.1.9
38
39# Clone TF-M and dependencies
40RUN mkdir -p /root/work/tfm &&\
41 cd /root/work/tfm &&\
42 git clone https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git -b TF-Mv1.2-RC1 &&\
43 mkdir mcuboot
44
45# Copy the test execution script to the image
46COPY execute_test.sh /root
47# copy the MCUBoot under test to the image
48COPY mcuboot /root/work/tfm/mcuboot
49
50# run the command
51CMD ["bash"]