blob: fb5d2f5085459eb8e7bbae4d63aa7cd61775fc39 [file] [log] [blame]
Paul Sokolovsky4e5f2f02024-02-05 20:19:15 +07001#!/bin/sh
2
3set -e
4
5trap cleanup_exit INT TERM EXIT
6
7cleanup_exit()
8{
9 rm -f *.list *.key
10}
11
12export LANG=C
13
14DISTRIBUTION=$(basename ${PWD} | cut -f1 -d '-')
15ARCHITECTURE=$(basename ${PWD} | cut -f2 -d '-')
16#PROJECT=$(basename ${PWD} | cut -f3 -d '-')-$(basename ${PWD} | cut -f4 -d '-')
Paul Sokolovskybee0a002024-02-06 13:57:55 +070017PROJECT=tf-a-lts2.10
Paul Sokolovsky4e5f2f02024-02-05 20:19:15 +070018
19# This image is a fork of jammy-amd64-tf-a-build. Copy all files from there,
20# unless already exists here.
21for f in $(ls -1 ../jammy-amd64-tf-a-build/*); do
22 if [ ! -e $(basename $f) ]; then
23 cp -a $f .
24 fi
25done
26
27cp -a ../setup-sshd .
28
29# Copy armclang toolchains required for the build (previously fetched
30# from s3://trustedfirmware-private/armclang/ by build harness).
31cp ../ARMCompiler6.18_standalone_linux-x86_64.tar.gz .
32
33image=trustedfirmware/ci-${ARCHITECTURE}-${PROJECT}-ubuntu:${DISTRIBUTION}${DOCKER_SUFFIX}
34docker build --pull --no-cache --tag=$image .
35echo $image > .docker-tag