Andrew Geissler | d51439f | 2021-02-22 16:14:27 -0600 | [diff] [blame] | 1 | #!/bin/bash -xe |
| 2 | # |
| 3 | # Purpose: |
| 4 | # This script is responsible for building all CI machines to get a |
| 5 | # new CI systems sstate and download caches setup. |
| 6 | # |
| 7 | # This script assumes openbmc-build-scripts has been cloned into |
| 8 | # the WORKSPACE directory. |
| 9 | # |
| 10 | # Required Inputs: |
| 11 | # WORKSPACE: Directory to run the builds out of |
| 12 | |
| 13 | export LANG=en_US.UTF8 |
| 14 | |
Patrick Williams | e000d5d | 2021-03-15 14:50:49 -0500 | [diff] [blame] | 15 | cd "${WORKSPACE}" |
Patrick Williams | 0775972 | 2021-04-13 08:23:01 -0500 | [diff] [blame] | 16 | if [ -d openbmc ]; then |
| 17 | git -C openbmc fetch |
| 18 | git -C openbmc rebase |
| 19 | else |
| 20 | git clone https://github.com/openbmc/openbmc.git |
| 21 | fi |
Andrew Geissler | d51439f | 2021-02-22 16:14:27 -0600 | [diff] [blame] | 22 | |
| 23 | # Ensure everything is built on same filesystem |
Patrick Williams | e000d5d | 2021-03-15 14:50:49 -0500 | [diff] [blame] | 24 | export build_dir="${WORKSPACE}/build" |
Andrew Geissler | d51439f | 2021-02-22 16:14:27 -0600 | [diff] [blame] | 25 | |
Patrick Williams | 247ae50 | 2021-04-13 08:16:13 -0500 | [diff] [blame] | 26 | SEED_MACHINES=( |
Andrew Geissler | 9968f96 | 2023-02-02 06:56:00 -0700 | [diff] [blame] | 27 | ahe50dc |
Andrew Geissler | 5b2f4ab | 2023-02-01 13:35:09 -0700 | [diff] [blame] | 28 | bletchley |
| 29 | e3c246d4i |
Andrew Geissler | 01370f2 | 2021-05-07 13:25:23 -0500 | [diff] [blame] | 30 | gbs |
Patrick Williams | 22c3375 | 2023-11-27 13:22:26 -0600 | [diff] [blame] | 31 | harma |
Patrick Williams | 04fde22 | 2023-11-27 21:08:57 -0600 | [diff] [blame] | 32 | minerva |
Adriana Kobylak | 17c69ed | 2021-04-12 15:59:26 +0000 | [diff] [blame] | 33 | p10bmc |
Patrick Williams | 247ae50 | 2021-04-13 08:16:13 -0500 | [diff] [blame] | 34 | palmetto |
Andrew Geissler | 9968f96 | 2023-02-02 06:56:00 -0700 | [diff] [blame] | 35 | romed8hm3 |
Patrick Williams | 247ae50 | 2021-04-13 08:16:13 -0500 | [diff] [blame] | 36 | romulus |
Patrick Williams | 247ae50 | 2021-04-13 08:16:13 -0500 | [diff] [blame] | 37 | witherspoon |
Patrick Williams | 260e85d | 2023-08-07 07:26:03 -0500 | [diff] [blame] | 38 | yosemite4 |
Patrick Williams | 247ae50 | 2021-04-13 08:16:13 -0500 | [diff] [blame] | 39 | zaius |
| 40 | ) |
| 41 | |
Patrick Williams | e000d5d | 2021-03-15 14:50:49 -0500 | [diff] [blame] | 42 | for m in "${SEED_MACHINES[@]}"; do |
| 43 | echo "Seeding $m" |
| 44 | export target=$m |
Patrick Williams | 6c420e7 | 2021-04-13 08:13:18 -0500 | [diff] [blame] | 45 | "${WORKSPACE}/openbmc-build-scripts/build-setup.sh" || \ |
| 46 | echo "Build failed for $m; continuing." |
Patrick Williams | e000d5d | 2021-03-15 14:50:49 -0500 | [diff] [blame] | 47 | rm -rf "${WORKSPACE}/openbmc/build" |
Patrick Williams | 124607f | 2021-04-13 11:40:11 -0500 | [diff] [blame] | 48 | rm -rf "${build_dir}" |
Patrick Williams | e000d5d | 2021-03-15 14:50:49 -0500 | [diff] [blame] | 49 | done |