2020-07-27 23:13:35 +00:00
|
|
|
# This is the config file for the catalyst-auto script. It should be pretty
|
|
|
|
# self-explanatory.
|
|
|
|
|
2021-01-30 23:43:40 +00:00
|
|
|
UPLOAD_USER=riscv
|
2021-01-31 00:01:29 +00:00
|
|
|
UPLOAD_KEY=/root/.ssh/id_rsa
|
2021-01-30 23:43:40 +00:00
|
|
|
|
2020-07-27 23:13:35 +00:00
|
|
|
host=$(hostname)
|
|
|
|
|
2021-01-30 23:30:16 +00:00
|
|
|
SPECS_DIR=${REPO_DIR}/releases/specs-qemu/riscv
|
2020-07-27 23:13:35 +00:00
|
|
|
|
2021-01-30 23:30:16 +00:00
|
|
|
EMAIL_SUBJECT_PREPEND="[riscv-qemu-auto]"
|
2021-01-19 20:43:25 +00:00
|
|
|
|
2020-07-27 23:13:35 +00:00
|
|
|
SETS="
|
2021-06-11 16:09:55 +00:00
|
|
|
lp64d_200_openrc
|
|
|
|
lp64d_200_systemd
|
2021-06-17 22:49:08 +00:00
|
|
|
lp64_200_openrc
|
|
|
|
lp64_200_systemd
|
2021-06-23 16:13:43 +00:00
|
|
|
multilib_200_openrc
|
2021-06-25 19:16:59 +00:00
|
|
|
multilib_200_systemd
|
2020-07-27 23:13:35 +00:00
|
|
|
"
|
|
|
|
|
2021-06-16 21:28:27 +00:00
|
|
|
SET_lp64d_200_openrc_SPECS="stage1-lp64d-20.0-openrc.spec stage3-lp64d-20.0-openrc.spec"
|
|
|
|
SET_lp64d_200_systemd_SPECS="stage1-lp64d-20.0-systemd.spec stage3-lp64d-20.0-systemd.spec"
|
2021-06-17 22:49:08 +00:00
|
|
|
SET_lp64_200_openrc_SPECS="stage1-lp64-20.0-openrc.spec stage3-lp64-20.0-openrc.spec"
|
|
|
|
SET_lp64_200_systemd_SPECS="stage1-lp64-20.0-systemd.spec stage3-lp64-20.0-systemd.spec"
|
2021-06-23 16:13:43 +00:00
|
|
|
SET_multilib_200_openrc_SPECS="stage1-multilib-20.0-openrc.spec stage3-multilib-20.0-openrc.spec"
|
2021-06-25 19:16:59 +00:00
|
|
|
SET_multilib_200_systemd_SPECS="stage1-multilib-20.0-systemd.spec stage3-multilib-20.0-systemd.spec"
|
2021-06-11 16:09:55 +00:00
|
|
|
|
2020-07-27 23:13:35 +00:00
|
|
|
update_symlinks() {
|
|
|
|
# Symlink the latest stages3 to build from
|
|
|
|
local d f
|
2021-06-29 21:11:54 +00:00
|
|
|
for d in "${BUILD_SRCDIR_BASE}/builds/default" ; do
|
2020-07-27 23:13:35 +00:00
|
|
|
pushd "${d}" >/dev/null
|
|
|
|
for f in $(ls stage3*xz | grep -v latest | give_latest_from_dates) ; do
|
|
|
|
local of=$(echo "${f}" | convert_filename)
|
|
|
|
ln -sf "${f}" "${of}"
|
|
|
|
done
|
|
|
|
popd >/dev/null
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
post_build() {
|
|
|
|
local set=$1 spec=$2
|
|
|
|
|
|
|
|
case ${spec} in
|
2021-06-25 19:07:00 +00:00
|
|
|
stage3*.spec)
|
2021-06-29 21:11:54 +00:00
|
|
|
pushd "${BUILD_SRCDIR_BASE}/builds/default" >/dev/null
|
2021-06-15 14:18:23 +00:00
|
|
|
upload stage3-rv64_$(echo ${spec}|sed -e 's:^stage3-::g' -e 's:\.spec$::g')-${TIMESTAMP}*.xz*
|
|
|
|
popd >/dev/null
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "Finished ${spec}"
|
2020-07-27 23:13:35 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|