blob: fd464b52ad74e90f1f26bfbf7ba7178c82373497 [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
Antonio de Angelisa6898582024-11-03 19:49:44 +000019 (cd mbedtls; git checkout-index -faq; git clean -fdq)
20 (cd psa-arch-tests; git checkout-index -faq; git clean -fdq)
21 (cd trusted-firmware-m; git checkout-index -faq; git clean -fdq)
Matthew Dalzell97936a92025-03-03 11:41:31 +000022 (cd t_cose; git checkout-index -faq; git clean -fdq)
Paul Sokolovsky43623182023-04-14 22:59:48 +030023 eclair_tfm_set_toolchain_path
Paul Sokolovsky90434712024-01-19 16:13:40 +070024 detachLicense $LICENSE_LEASE
Paul Sokolovsky43623182023-04-14 22:59:48 +030025 tf-m-ci-scripts/run-build.sh
26 cnt=$((cnt + 1))
27done
Paul Sokolovsky27c87e72024-01-19 00:00:31 +070028
Paul Sokolovsky90434712024-01-19 16:13:40 +070029# Extend license lease one final time for further processing after the builds
30# (creation of project database and rendering reports, etc.).
31detachLicense $LICENSE_LEASE
32
Paul Sokolovsky27c87e72024-01-19 00:00:31 +070033echo "Built $num_configs configs"