blob: 202e469bfc3c8a975bbc10579d44d552014561ab [file] [log] [blame]
Paul Sokolovsky43623182023-04-14 22:59:48 +03001#!/bin/bash
2
3set -ex
4
Paul Sokolovsky90434712024-01-19 16:13:40 +07005LICENSE_LEASE=5400
6
Paul Sokolovsky43623182023-04-14 22:59:48 +03007. tf-ci-scripts/eclair/utils.sh
8. tf-m-ci-scripts/eclair/utils_tfm.sh
9
10num_configs=$(python3 ./tf-m-ci-scripts/configs.py -g "$FILTER_GROUP" | wc -l)
11
12echo "Number of configs to build: $num_configs"
13
14cnt=1
15
16for cfg in $(python3 ./tf-m-ci-scripts/configs.py -g "$FILTER_GROUP"); do
17 echo "============== $cfg ($cnt/$num_configs) =============="
18 export CONFIG_NAME=$cfg
19 (cd mbedtls; git checkout .; git clean -fq)
20 (cd psa-arch-tests; git checkout .; git clean -fq)
21 (cd trusted-firmware-m; git checkout .; git clean -fq)
22 eclair_tfm_set_toolchain_path
Paul Sokolovsky90434712024-01-19 16:13:40 +070023 detachLicense $LICENSE_LEASE
Paul Sokolovsky43623182023-04-14 22:59:48 +030024 tf-m-ci-scripts/run-build.sh
25 cnt=$((cnt + 1))
26done
Paul Sokolovsky27c87e72024-01-19 00:00:31 +070027
Paul Sokolovsky90434712024-01-19 16:13:40 +070028# Extend license lease one final time for further processing after the builds
29# (creation of project database and rendering reports, etc.).
30detachLicense $LICENSE_LEASE
31
Paul Sokolovsky27c87e72024-01-19 00:00:31 +070032echo "Built $num_configs configs"