Paul Sokolovsky | c3c32f2 | 2023-06-01 14:57:06 +0300 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | trap cleanup_exit INT TERM EXIT |
| 6 | |
| 7 | cleanup_exit() |
| 8 | { |
| 9 | rm -f *.list *.key |
| 10 | } |
| 11 | |
| 12 | export LANG=C |
| 13 | |
| 14 | DISTRIBUTION=$(basename ${PWD} | cut -f1 -d '-') |
| 15 | ARCHITECTURE=$(basename ${PWD} | cut -f2 -d '-') |
| 16 | #PROJECT=$(basename ${PWD} | cut -f3 -d '-')-$(basename ${PWD} | cut -f4 -d '-') |
| 17 | PROJECT=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. |
| 21 | for f in $(ls -1 ../jammy-amd64-tf-a-build/*); do |
| 22 | if [ ! -e $(basename $f) ]; then |
| 23 | cp -a $f . |
| 24 | fi |
| 25 | done |
| 26 | |
| 27 | cp -a ../setup-sshd . |
| 28 | |
| 29 | # Copy armclang toolchains required for the build (previously fetched |
| 30 | # from s3://trustedfirmware-private/armclang/ by build harness). |
Paul Sokolovsky | 824f3c1 | 2023-10-19 13:05:07 +0300 | [diff] [blame] | 31 | cp ../ARMCompiler6.18_standalone_linux-x86_64.tar.gz . |
Paul Sokolovsky | c3c32f2 | 2023-06-01 14:57:06 +0300 | [diff] [blame] | 32 | |
| 33 | image=trustedfirmware/ci-${ARCHITECTURE}-${PROJECT}-ubuntu:${DISTRIBUTION}${DOCKER_SUFFIX} |
| 34 | docker build --pull --no-cache --tag=$image . |
| 35 | echo $image > .docker-tag |
Paul Sokolovsky | dbc9c57 | 2024-10-16 18:18:47 +0700 | [diff] [blame] | 36 | |