Mate Toth-Pal | 5495f20 | 2020-07-16 08:33:48 +0200 | [diff] [blame] | 1 | # 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 | |
| 15 | FROM ubuntu:focal |
| 16 | |
| 17 | # get dependencies for retrieving and building TF-M with MCUBoot, and QEMU. |
| 18 | RUN 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 | |
| 31 | RUN \ |
| 32 | # installing python packages |
| 33 | python3 -m pip install \ |
Fabio Utzig | a069bef | 2020-12-14 17:10:15 -0300 | [diff] [blame] | 34 | imgtool==1.7.0 \ |
Mate Toth-Pal | 5495f20 | 2020-07-16 08:33:48 +0200 | [diff] [blame] | 35 | Jinja2==2.10 \ |
| 36 | PyYAML==3.12 \ |
| 37 | pyasn1==0.1.9 |
| 38 | |
Fabio Utzig | a069bef | 2020-12-14 17:10:15 -0300 | [diff] [blame] | 39 | # Add tfm work directory |
| 40 | RUN mkdir -p /root/work/tfm |
Mate Toth-Pal | 5495f20 | 2020-07-16 08:33:48 +0200 | [diff] [blame] | 41 | |
| 42 | # run the command |
Fabio Utzig | a069bef | 2020-12-14 17:10:15 -0300 | [diff] [blame] | 43 | CMD ["bash"] |