2010-09-06 17:22:38 +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=ppc
|
2021-01-31 00:01:29 +00:00
|
|
|
UPLOAD_KEY=/root/.ssh/id_rsa
|
2020-04-29 01:16:29 +00:00
|
|
|
SPECS_DIR=${REPO_DIR}/releases/specs/ppc/ppc64le
|
2010-09-08 17:57:30 +00:00
|
|
|
|
2021-07-14 10:29:35 +00:00
|
|
|
SPECS="stage1-openrc.spec stage3-openrc.spec"
|
2021-07-14 20:43:05 +00:00
|
|
|
OPTIONAL_SPECS+=" installcd-stage1.spec installcd-stage2-minimal.spec"
|
|
|
|
OPTIONAL_SPECS+=" stage1-systemd.spec stage3-systemd.spec"
|
2022-11-19 13:37:12 +00:00
|
|
|
OPTIONAL_SPECS+=" stage1-systemd-mu.spec stage3-systemd-mu.spec"
|
2021-07-14 10:29:35 +00:00
|
|
|
OPTIONAL_SPECS+=" stage1-openrc-power9le.spec stage3-openrc-power9le.spec"
|
2021-07-14 19:49:50 +00:00
|
|
|
OPTIONAL_SPECS+=" stage1-systemd-power9le.spec stage3-systemd-power9le.spec"
|
2022-09-19 01:22:09 +00:00
|
|
|
OPTIONAL_SPECS+=" stage1-systemd-mergedusr-power9le.spec stage3-systemd-mergedusr-power9le.spec"
|
2022-11-04 20:50:59 +00:00
|
|
|
OPTIONAL_SPECS+=" stage1-musl-hardened-openrc.spec stage3-musl-hardened-openrc.spec"
|
2022-10-31 23:25:48 +00:00
|
|
|
OPTIONAL_SPECS+=" stage1-musl-hardened-openrc-power9le.spec stage3-musl-hardened-openrc-power9le.spec"
|
2010-09-08 17:57:30 +00:00
|
|
|
|
2010-09-06 17:22:38 +00:00
|
|
|
#SPECS="${SPECS} stage2-desktop.spec stage3-desktop.spec"
|
|
|
|
#SPECS="${SPECS} livecd-stage1.spec livecd-stage2.spec"
|
|
|
|
|
2020-04-29 01:16:29 +00:00
|
|
|
KCONFIG_DIR=${REPO_DIR}/releases/kconfig/powerpc
|
2010-09-06 17:22:38 +00:00
|
|
|
|
2019-01-05 23:01:48 +00:00
|
|
|
EMAIL_SUBJECT_PREPEND="[ppc64le-auto]"
|
2018-01-16 07:01:19 +00:00
|
|
|
|
2018-01-16 01:44:31 +00:00
|
|
|
update_symlinks() {
|
2018-01-16 07:01:19 +00:00
|
|
|
# Symlink the latest stages3 to build from
|
|
|
|
local d f t
|
2022-10-31 23:25:48 +00:00
|
|
|
for d in "${BUILD_SRCDIR_BASE}"/builds/{default,power9le,power9le-mergedusr,musl-hardened,power9le-musl-hardened} ; do
|
2018-01-16 07:01:19 +00:00
|
|
|
pushd "${d}" >/dev/null
|
2021-07-15 04:31:36 +00:00
|
|
|
for t in ppc64le power9le; do
|
2018-09-16 15:09:38 +00:00
|
|
|
for f in $(ls stage3-${t}-*xz | grep -v latest | give_latest_from_dates) ; do
|
2018-01-16 07:01:19 +00:00
|
|
|
local of=$(echo "${f}" | convert_filename)
|
|
|
|
ln -sf "${f}" "${of}"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
popd >/dev/null
|
|
|
|
done
|
2010-09-06 17:22:38 +00:00
|
|
|
}
|
2018-01-16 01:52:14 +00:00
|
|
|
|
2010-09-06 17:22:38 +00:00
|
|
|
post_build() {
|
2018-01-16 01:52:14 +00:00
|
|
|
local set=$1 spec=$2
|
|
|
|
|
2020-12-15 23:18:38 +00:00
|
|
|
pushd "${BUILD_SRCDIR_BASE}/builds" >/dev/null
|
2018-01-16 01:52:14 +00:00
|
|
|
|
|
|
|
case ${spec} in
|
|
|
|
installcd-stage2-minimal.spec)
|
2020-12-15 23:18:38 +00:00
|
|
|
upload default/*${TIMESTAMP}*.iso*
|
2018-01-16 01:52:14 +00:00
|
|
|
;;
|
2021-07-14 10:29:35 +00:00
|
|
|
stage3-openrc.spec)
|
|
|
|
upload default/stage3-ppc64le-openrc-${TIMESTAMP}*.xz*
|
2020-05-09 23:13:40 +00:00
|
|
|
;;
|
2021-07-14 10:29:35 +00:00
|
|
|
stage3-systemd.spec)
|
2020-12-15 23:18:38 +00:00
|
|
|
upload default/stage3-ppc64le-systemd-${TIMESTAMP}*.xz*
|
2020-10-05 20:03:16 +00:00
|
|
|
;;
|
2022-11-19 13:37:12 +00:00
|
|
|
stage3-systemd-mu.spec)
|
|
|
|
upload default/stage3-ppc64le-systemd-mergedusr-${TIMESTAMP}*.xz*
|
|
|
|
;;
|
2021-07-14 10:29:35 +00:00
|
|
|
stage3-openrc-power9le.spec)
|
|
|
|
upload power9le/stage3-power9le-openrc-${TIMESTAMP}*.xz*
|
|
|
|
;;
|
|
|
|
stage3-systemd-power9le.spec)
|
|
|
|
upload power9le/stage3-power9le-systemd-${TIMESTAMP}*.xz*
|
|
|
|
;;
|
2022-09-19 03:10:57 +00:00
|
|
|
stage3-systemd-mergedusr-power9le.spec)
|
|
|
|
upload power9le-mergedusr/stage3-power9le-systemd-mergedusr-${TIMESTAMP}*.xz*
|
|
|
|
;;
|
2021-07-14 10:29:35 +00:00
|
|
|
stage3-musl-hardened-openrc.spec)
|
|
|
|
upload musl-hardened/stage3-ppc64le-musl-hardened-openrc-${TIMESTAMP}*.xz*
|
2018-01-16 01:52:14 +00:00
|
|
|
;;
|
2022-10-31 23:25:48 +00:00
|
|
|
stage3-musl-hardened-openrc-power9le.spec)
|
|
|
|
upload power9le-musl-hardened/stage3-power9le-musl-hardened-openrc-${TIMESTAMP}*.xz*
|
|
|
|
;;
|
2021-01-31 23:06:09 +00:00
|
|
|
*)
|
|
|
|
echo "Finished ${spec}"
|
|
|
|
;;
|
2018-01-16 01:52:14 +00:00
|
|
|
esac
|
|
|
|
|
|
|
|
popd >/dev/null
|
2010-09-06 17:22:38 +00:00
|
|
|
}
|