blob: 1dab2b4f3c932e0fb2a9b34119be1567dda58f1f [file] [log] [blame]
#!/bin/sh
set -e
IAR_BINARY=$(echo $@ | grep -o "IAR_PACKAGE=.*" | sed "s/^.*=//")
IAR_PACKAGE=${IAR_BINARY:-bxarm-9.40.2.deb}
IAR_ECR=${IAR_ECR:-local}
trap cleanup_exit INT TERM EXIT
cleanup_exit()
{
rm -f *.list *.key
}
export LANG=C
DISTRIBUTION=$(basename ${PWD} | cut -f1 -d '-')
ARCHITECTURE=$(basename ${PWD} | cut -f2 -d '-')
PROJECT="tf-m-iar"
cp -a ../setup-sshd .
# Copy armclang toolchains required for the build (previously fetched
# from s3://trustedfirmware-private/armclang/ by build harness).
cp ../ARMCompiler6.21_standalone_linux-x86_64.tar.gz .
# Copy IAR toolchains required for the build (previously fetched
# from s3://trustedfirmware-iar by build harness).
cp ../$IAR_PACKAGE .
image=${IAR_ECR}:${DISTRIBUTION}-tf-m-iar
docker build $@ --pull --tag=$image .
echo $image > .docker-tag