blob: 7bfb332c3a3b1055927f98da7f4fa89c49958f66 [file] [log] [blame]
Paul Sokolovskyc3c32f22023-06-01 14:57:06 +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-lts2.8
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).
Paul Sokolovsky824f3c12023-10-19 13:05:07 +030031cp ../ARMCompiler6.18_standalone_linux-x86_64.tar.gz .
Paul Sokolovskyc3c32f22023-06-01 14:57:06 +030032
33image=trustedfirmware/ci-${ARCHITECTURE}-${PROJECT}-ubuntu:${DISTRIBUTION}${DOCKER_SUFFIX}
34docker build --pull --no-cache --tag=$image .
35echo $image > .docker-tag
Paul Sokolovskydbc9c572024-10-16 18:18:47 +070036