blob: d51d656ef6fc9b1f252287acbc532e9076491983 [file] [log] [blame]
Paul Sokolovsky9d311742023-10-02 11:48:59 +03001#!/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 '-')
17PROJECT=tf-a-next
18
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 ../DS500-BN-00026-r5p0-11rel0.tar.gz ../DS500-BN-00026-r5p0-19rel0.tar.gz .
Paul Sokolovsky4db912e2023-10-19 12:27:24 +030032cp ../ARMCompiler6.18_standalone_linux-x86_64.tar.gz .
Paul Sokolovsky9d311742023-10-02 11:48:59 +030033
34image=trustedfirmware/ci-${ARCHITECTURE}-${PROJECT}-ubuntu:${DISTRIBUTION}${DOCKER_SUFFIX}
35docker build --pull --no-cache --tag=$image .
36echo $image > .docker-tag