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
|
2024-02-10 15:36:05 +00:00
|
|
|
|
|
|
|
SETS="
|
|
|
|
openrc_23
|
|
|
|
systemd_23
|
2024-03-11 12:46:18 +00:00
|
|
|
musl_hardened_23
|
2024-02-10 15:36:05 +00:00
|
|
|
openrc_64_23
|
|
|
|
systemd_64_23
|
2024-03-11 12:46:18 +00:00
|
|
|
musl_hardened_64_23
|
2024-02-10 15:36:05 +00:00
|
|
|
"
|
2010-09-06 17:22:38 +00:00
|
|
|
|
2024-02-10 15:36:05 +00:00
|
|
|
SET_openrc_23_SPECS="ppc32/stage1-openrc-23.spec ppc32/stage3-openrc-23.spec"
|
2024-04-05 18:21:07 +00:00
|
|
|
SET_openrc_23_OPTIONAL_SPECS="ppc32/installcd-stage1.spec ppc32/installcd-stage2-minimal.spec"
|
2024-02-10 15:36:05 +00:00
|
|
|
|
|
|
|
SET_systemd_23_SPECS="ppc32/stage1-systemd-23.spec ppc32/stage3-systemd-23.spec"
|
|
|
|
|
2024-03-11 12:46:18 +00:00
|
|
|
SET_musl_hardened_23_SPECS="ppc32/stage1-musl-hardened-openrc-23.spec ppc32/stage3-musl-hardened-openrc-23.spec"
|
|
|
|
|
2024-02-10 15:36:05 +00:00
|
|
|
SET_openrc_64_23_SPECS="ppc64/stage1-openrc-23.spec ppc64/stage3-openrc-23.spec"
|
2010-09-06 17:22:38 +00:00
|
|
|
|
2024-02-10 15:36:05 +00:00
|
|
|
SET_systemd_64_23_SPECS="ppc64/stage1-systemd-23.spec ppc64/stage3-systemd-23.spec"
|
2023-12-25 11:48:11 +00:00
|
|
|
|
2024-03-11 12:46:18 +00:00
|
|
|
SET_musl_hardened_64_23_SPECS="ppc64/stage1-musl-hardened-openrc-23.spec ppc64/stage3-musl-hardened-openrc-23.spec"
|
2023-12-25 11:48:11 +00:00
|
|
|
|
2021-05-12 23:55:07 +00:00
|
|
|
|
2020-04-29 01:16:29 +00:00
|
|
|
KCONFIG_DIR=${REPO_DIR}/releases/kconfig/powerpc
|
2010-09-06 17:22:38 +00:00
|
|
|
|
|
|
|
EMAIL_SUBJECT_PREPEND="[ppc-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
|
2024-02-10 15:36:05 +00:00
|
|
|
for d in "${BUILD_SRCDIR_BASE}/builds"/* ; do
|
2022-11-22 02:05:55 +00:00
|
|
|
mkdir -p "${d}"
|
2018-01-16 07:01:19 +00:00
|
|
|
pushd "${d}" >/dev/null
|
2018-09-16 15:09:38 +00:00
|
|
|
for f in $(ls stage3-ppc-*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
|
2018-09-16 15:23:26 +00:00
|
|
|
for f in $(ls stage3-ppc64-*xz | grep -v latest | give_latest_from_dates) ; do
|
|
|
|
local of=$(echo "${f}" | convert_filename)
|
|
|
|
ln -sf "${f}" "${of}"
|
|
|
|
done
|
2018-01-16 07:01:19 +00:00
|
|
|
popd >/dev/null
|
|
|
|
done
|
2010-09-06 17:22:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
post_build() {
|
2018-01-16 01:52:14 +00:00
|
|
|
local set=$1 spec=$2
|
|
|
|
|
2021-05-12 23:48:01 +00:00
|
|
|
pushd "${BUILD_SRCDIR_BASE}/builds" >/dev/null
|
2018-01-16 01:52:14 +00:00
|
|
|
|
|
|
|
case ${spec} in
|
2024-03-23 10:22:57 +00:00
|
|
|
ppc32/stage3-openrc-23.spec)
|
|
|
|
upload 23.0-default/stage3-ppc-openrc-*${TIMESTAMP}*.xz*
|
|
|
|
;;
|
2024-02-10 15:36:05 +00:00
|
|
|
ppc32/stage3-systemd-23.spec)
|
2024-03-23 10:22:57 +00:00
|
|
|
upload 23.0-default/stage3-ppc-systemd-*${TIMESTAMP}*.xz*
|
2024-02-10 15:36:05 +00:00
|
|
|
upsync_binpackages "${BUILD_SRCDIR_BASE}/packages/23.0-default/stage3-ppc" ppc/23.0/ppc
|
|
|
|
;;
|
2024-03-11 12:46:18 +00:00
|
|
|
ppc32/stage3-musl-hardened-openrc-23.spec)
|
2024-03-23 10:22:57 +00:00
|
|
|
upload 23.0-musl-hardened/stage3-ppc-musl-hardened-openrc-*${TIMESTAMP}*.xz*
|
2024-03-11 12:46:18 +00:00
|
|
|
upsync_binpackages "${BUILD_SRCDIR_BASE}/packages/23.0-musl-hardened/stage3-ppc" ppc/23.0/ppc_musl_hardened
|
|
|
|
;;
|
2024-04-05 18:21:07 +00:00
|
|
|
ppc32/installcd-stage2-minimal.spec)
|
|
|
|
upload 23.0-default/*${TIMESTAMP}*.iso*
|
|
|
|
;;
|
2024-03-23 10:22:57 +00:00
|
|
|
ppc64/stage3-openrc-23.spec)
|
|
|
|
upload 23.0-default/stage3-ppc64-openrc-*${TIMESTAMP}*.xz*
|
|
|
|
;;
|
2024-02-10 15:36:05 +00:00
|
|
|
ppc64/stage3-systemd-23.spec)
|
2024-03-23 10:22:57 +00:00
|
|
|
upload 23.0-default/stage3-ppc64-systemd-*${TIMESTAMP}*.xz*
|
2024-02-10 15:36:05 +00:00
|
|
|
upsync_binpackages "${BUILD_SRCDIR_BASE}/packages/23.0-default/stage3-ppc64" ppc/23.0/ppc64
|
|
|
|
;;
|
2024-03-11 12:46:18 +00:00
|
|
|
ppc64/stage3-musl-hardened-openrc-23.spec)
|
2024-03-23 10:22:57 +00:00
|
|
|
upload 23.0-musl-hardened/stage3-ppc64-musl-hardened-openrc-*${TIMESTAMP}*.xz*
|
2024-03-11 12:46:18 +00:00
|
|
|
upsync_binpackages "${BUILD_SRCDIR_BASE}/packages/23.0-musl-hardened/stage3-ppc64" ppc/23.0/ppc64_musl_hardened
|
|
|
|
;;
|
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
|
|
|
}
|