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}" |
Andrew Geissler | d51439f | 2021-02-22 16:14:27 -0600 | [diff] [blame] | 16 | git clone https://github.com/openbmc/openbmc.git |
| 17 | |
| 18 | # Ensure everything is built on same filesystem |
Patrick Williams | e000d5d | 2021-03-15 14:50:49 -0500 | [diff] [blame] | 19 | export build_dir="${WORKSPACE}/build" |
Andrew Geissler | d51439f | 2021-02-22 16:14:27 -0600 | [diff] [blame] | 20 | |
Patrick Williams | e000d5d | 2021-03-15 14:50:49 -0500 | [diff] [blame] | 21 | SEED_MACHINES=( rainier gsj palmetto romulus witherspoon tiogapass zaius ) |
| 22 | for m in "${SEED_MACHINES[@]}"; do |
| 23 | echo "Seeding $m" |
| 24 | export target=$m |
| 25 | "${WORKSPACE}/openbmc-build-scripts/build-setup.sh" |
| 26 | rm -rf "${WORKSPACE}/openbmc/build" |
| 27 | done |