Paul Sokolovsky | 4362318 | 2023-04-14 22:59:48 +0300 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | set -ex |
| 4 | |
Paul Sokolovsky | 9043471 | 2024-01-19 16:13:40 +0700 | [diff] [blame] | 5 | LICENSE_LEASE=5400 |
| 6 | |
Paul Sokolovsky | 4362318 | 2023-04-14 22:59:48 +0300 | [diff] [blame] | 7 | . tf-ci-scripts/eclair/utils.sh |
| 8 | . tf-m-ci-scripts/eclair/utils_tfm.sh |
| 9 | |
| 10 | num_configs=$(python3 ./tf-m-ci-scripts/configs.py -g "$FILTER_GROUP" | wc -l) |
| 11 | |
| 12 | echo "Number of configs to build: $num_configs" |
| 13 | |
| 14 | cnt=1 |
| 15 | |
| 16 | for 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 Sokolovsky | 9043471 | 2024-01-19 16:13:40 +0700 | [diff] [blame] | 23 | detachLicense $LICENSE_LEASE |
Paul Sokolovsky | 4362318 | 2023-04-14 22:59:48 +0300 | [diff] [blame] | 24 | tf-m-ci-scripts/run-build.sh |
| 25 | cnt=$((cnt + 1)) |
| 26 | done |
Paul Sokolovsky | 27c87e7 | 2024-01-19 00:00:31 +0700 | [diff] [blame] | 27 | |
Paul Sokolovsky | 9043471 | 2024-01-19 16:13:40 +0700 | [diff] [blame] | 28 | # Extend license lease one final time for further processing after the builds |
| 29 | # (creation of project database and rendering reports, etc.). |
| 30 | detachLicense $LICENSE_LEASE |
| 31 | |
Paul Sokolovsky | 27c87e7 | 2024-01-19 00:00:31 +0700 | [diff] [blame] | 32 | echo "Built $num_configs configs" |