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-08-21 21:45:34 +00:00
|
|
|
lp64d_openrc
|
2023-11-11 23:45:27 +00:00
|
|
|
lp64d_systemd_mu
|
2023-01-24 23:14:17 +00:00
|
|
|
lp64d_musl
|
2021-08-21 21:45:34 +00:00
|
|
|
lp64_openrc
|
2023-11-11 23:45:27 +00:00
|
|
|
lp64_systemd_mu
|
2023-01-24 23:14:17 +00:00
|
|
|
lp64_musl
|
2023-09-09 09:17:56 +00:00
|
|
|
multilib_openrc
|
2023-11-11 23:45:27 +00:00
|
|
|
multilib_systemd_mu
|
2020-07-27 23:13:35 +00:00
|
|
|
"
|
|
|
|
|
2022-02-27 15:09:22 +00:00
|
|
|
SET_lp64d_musl_SPECS="stage1-lp64d-musl.spec stage3-lp64d-musl.spec"
|
2021-08-21 21:45:34 +00:00
|
|
|
SET_lp64d_openrc_SPECS="stage1-lp64d-openrc.spec stage3-lp64d-openrc.spec"
|
|
|
|
SET_lp64d_systemd_SPECS="stage1-lp64d-systemd.spec stage3-lp64d-systemd.spec"
|
2022-11-19 13:50:07 +00:00
|
|
|
SET_lp64d_systemd_mu_SPECS="stage1-lp64d-systemd-mu.spec stage3-lp64d-systemd-mu.spec"
|
|
|
|
|
2022-08-09 16:53:10 +00:00
|
|
|
SET_lp64_musl_SPECS="stage1-lp64-musl.spec stage3-lp64-musl.spec"
|
2021-08-21 21:45:34 +00:00
|
|
|
SET_lp64_openrc_SPECS="stage1-lp64-openrc.spec stage3-lp64-openrc.spec"
|
|
|
|
SET_lp64_systemd_SPECS="stage1-lp64-systemd.spec stage3-lp64-systemd.spec"
|
2022-11-19 13:50:07 +00:00
|
|
|
SET_lp64_systemd_mu_SPECS="stage1-lp64-systemd-mu.spec stage3-lp64-systemd-mu.spec"
|
|
|
|
|
2021-08-21 21:45:34 +00:00
|
|
|
SET_multilib_openrc_SPECS="stage1-multilib-openrc.spec stage3-multilib-openrc.spec"
|
|
|
|
SET_multilib_systemd_SPECS="stage1-multilib-systemd.spec stage3-multilib-systemd.spec"
|
2022-11-19 13:50:07 +00:00
|
|
|
SET_multilib_systemd_mu_SPECS="stage1-multilib-systemd-mu.spec stage3-multilib-systemd-mu.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
|
2022-11-24 13:43:48 +00:00
|
|
|
for d in "${BUILD_SRCDIR_BASE}/builds/default" "${BUILD_SRCDIR_BASE}/builds/mergedusr" "${BUILD_SRCDIR_BASE}/builds/musl" ; do
|
2022-11-22 02:05:55 +00:00
|
|
|
mkdir -p "${d}"
|
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
|
2022-02-27 15:09:22 +00:00
|
|
|
stage3*openrc.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
|
|
|
|
;;
|
2022-02-27 15:09:22 +00:00
|
|
|
stage3*systemd.spec)
|
|
|
|
pushd "${BUILD_SRCDIR_BASE}/builds/default" >/dev/null
|
2022-11-19 13:50:07 +00:00
|
|
|
upload stage3-rv64_$(echo ${spec}|sed -e 's:^stage3-::g' -e 's:\.spec$::g' -e 's:-mu:-mergedusr:g')-${TIMESTAMP}*.xz*
|
2023-08-12 18:18:21 +00:00
|
|
|
upsync_binpackages "${BUILD_SRCDIR_BASE}/packages/default/stage3-rv64_lp64d" riscv/20.0/rv64_lp64d
|
|
|
|
upsync_binpackages "${BUILD_SRCDIR_BASE}/packages/default/stage3-rv64_lp64" riscv/20.0/rv64_lp64
|
2023-08-18 18:01:02 +00:00
|
|
|
upsync_binpackages "${BUILD_SRCDIR_BASE}/packages/default/stage3-rv64_multilib" riscv/20.0/rv64_multilib
|
2022-02-27 15:09:22 +00:00
|
|
|
popd >/dev/null
|
|
|
|
;;
|
2022-11-24 13:43:48 +00:00
|
|
|
stage3*systemd-mu.spec)
|
|
|
|
pushd "${BUILD_SRCDIR_BASE}/builds/mergedusr" >/dev/null
|
|
|
|
upload stage3-rv64_$(echo ${spec}|sed -e 's:^stage3-::g' -e 's:\.spec$::g' -e 's:-mu:-mergedusr:g')-${TIMESTAMP}*.xz*
|
|
|
|
popd >/dev/null
|
|
|
|
;;
|
2022-02-27 15:09:22 +00:00
|
|
|
stage3*musl.spec)
|
|
|
|
pushd "${BUILD_SRCDIR_BASE}/builds/musl" >/dev/null
|
2022-02-27 15:56:12 +00:00
|
|
|
upload stage3-rv64_$(echo ${spec}|sed -e 's:^stage3-::g' -e 's:-:_:g' -e 's:\.spec$::g')-${TIMESTAMP}*.xz*
|
2023-08-16 19:29:42 +00:00
|
|
|
upsync_binpackages "${BUILD_SRCDIR_BASE}/packages/musl/stage3-rv64_lp64d_musl" riscv/20.0/rv64_lp64d_musl
|
|
|
|
upsync_binpackages "${BUILD_SRCDIR_BASE}/packages/musl/stage3-rv64_lp64_musl" riscv/20.0/rv64_lp64_musl
|
2022-02-27 15:09:22 +00:00
|
|
|
popd >/dev/null
|
|
|
|
;;
|
2021-06-15 14:18:23 +00:00
|
|
|
*)
|
|
|
|
echo "Finished ${spec}"
|
2020-07-27 23:13:35 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|