557a127419
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
179 lines
5.7 KiB
Plaintext
179 lines
5.7 KiB
Plaintext
# This is the config file for the catalyst-auto script. It should be pretty
|
|
# self-explanatory.
|
|
|
|
UPLOAD_USER=arm
|
|
UPLOAD_KEY=/root/.ssh/id_ed25519
|
|
|
|
host=$(hostname)
|
|
|
|
SPECS_DIR=${REPO_DIR}/releases/specs/arm
|
|
|
|
EMAIL_SUBJECT_PREPEND="[arm-auto]"
|
|
|
|
SETS="
|
|
armv4tl_openrc
|
|
armv4tl_systemd
|
|
armv4tl_systemd_mu
|
|
armv5tel_openrc
|
|
armv5tel_systemd
|
|
armv5tel_systemd_mu
|
|
armv6j_hf_openrc
|
|
armv6j_hf_systemd
|
|
armv6j_hf_systemd_mu
|
|
armv6j_sf_openrc
|
|
armv6j_sf_systemd
|
|
armv6j_sf_systemd_mu
|
|
armv6j_hf_musl_openrc
|
|
armv6j_hf_musl_hardened_openrc
|
|
armv7a_hf_openrc
|
|
armv7a_hf_systemd
|
|
armv7a_hf_systemd_mu
|
|
armv7a_sf_openrc
|
|
armv7a_sf_systemd
|
|
armv7a_sf_systemd_mu
|
|
armv7a_hf_musl_openrc
|
|
armv7a_hf_musl_hardened_openrc
|
|
"
|
|
|
|
SET_armv4tl_openrc_SPECS="armv4tl/stage1-openrc.spec armv4tl/stage3-openrc.spec"
|
|
SET_armv4tl_systemd_SPECS="armv4tl/stage1-systemd.spec armv4tl/stage3-systemd.spec"
|
|
SET_armv4tl_systemd_mu_SPECS="armv4tl/stage1-systemd-mu.spec armv4tl/stage3-systemd-mu.spec"
|
|
|
|
SET_armv5tel_openrc_SPECS="armv5tel/stage1-openrc.spec armv5tel/stage3-openrc.spec"
|
|
SET_armv5tel_systemd_SPECS="armv5tel/stage1-systemd.spec armv5tel/stage3-systemd.spec"
|
|
SET_armv5tel_systemd_mu_SPECS="armv5tel/stage1-systemd-mu.spec armv5tel/stage3-systemd-mu.spec"
|
|
|
|
SET_armv6j_hf_openrc_SPECS="armv6j/stage1-hardfloat-openrc.spec armv6j/stage3-hardfloat-openrc.spec"
|
|
SET_armv6j_hf_systemd_SPECS="armv6j/stage1-hardfloat-systemd.spec armv6j/stage3-hardfloat-systemd.spec"
|
|
SET_armv6j_hf_systemd_mu_SPECS="armv6j/stage1-hardfloat-systemd-mu.spec armv6j/stage3-hardfloat-systemd-mu.spec"
|
|
|
|
SET_armv6j_sf_openrc_SPECS="armv6j/stage1-openrc.spec armv6j/stage3-openrc.spec"
|
|
SET_armv6j_sf_systemd_SPECS="armv6j/stage1-systemd.spec armv6j/stage3-systemd.spec"
|
|
SET_armv6j_sf_systemd_mu_SPECS="armv6j/stage1-systemd-mu.spec armv6j/stage3-systemd-mu.spec"
|
|
|
|
SET_armv6j_hf_musl_openrc_SPECS="armv6j-musl/stage1-hardfloat.spec armv6j-musl/stage3-hardfloat.spec"
|
|
SET_armv6j_hf_musl_hardened_openrc_SPECS="armv6j-musl-hardened/stage1-hardfloat.spec armv6j-musl-hardened/stage3-hardfloat.spec"
|
|
|
|
SET_armv7a_hf_openrc_SPECS="armv7a/stage1-hardfloat-openrc.spec armv7a/stage3-hardfloat-openrc.spec"
|
|
SET_armv7a_hf_systemd_SPECS="armv7a/stage1-hardfloat-systemd.spec armv7a/stage3-hardfloat-systemd.spec"
|
|
SET_armv7a_hf_systemd_mu_SPECS="armv7a/stage1-hardfloat-systemd-mu.spec armv7a/stage3-hardfloat-systemd-mu.spec"
|
|
|
|
SET_armv7a_hf_musl_openrc_SPECS="armv7a-musl/stage1-hardfloat.spec armv7a-musl/stage3-hardfloat.spec"
|
|
SET_armv7a_hf_musl_hardened_openrc_SPECS="armv7a-musl-hardened/stage1-hardfloat.spec armv7a-musl-hardened/stage3-hardfloat.spec"
|
|
|
|
SET_armv7a_sf_openrc_SPECS="armv7a/stage1-openrc.spec armv7a/stage3-openrc.spec"
|
|
SET_armv7a_sf_systemd_SPECS="armv7a/stage1-systemd.spec armv7a/stage3-systemd.spec"
|
|
SET_armv7a_sf_systemd_mu_SPECS="armv7a/stage1-systemd-mu.spec armv7a/stage3-systemd-mu.spec"
|
|
|
|
update_symlinks() {
|
|
# Symlink the latest stages3 to build from
|
|
local d f
|
|
for d in "${BUILD_SRCDIR_BASE}/builds/default" "${BUILD_SRCDIR_BASE}/builds/musl" "${BUILD_SRCDIR_BASE}/builds/musl-hardened" "${BUILD_SRCDIR_BASE}/builds/mergedusr" ; do
|
|
mkdir -p "${d}"
|
|
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
|
|
|
|
pushd "${BUILD_SRCDIR_BASE}/builds/default" >/dev/null
|
|
|
|
case ${spec} in
|
|
armv4tl/stage3-openrc.spec)
|
|
upload stage3-armv4tl-openrc-${TIMESTAMP}*.xz*
|
|
;;
|
|
armv4tl/stage3-systemd.spec)
|
|
upload stage3-armv4tl-systemd-${TIMESTAMP}*.xz*
|
|
;;
|
|
armv5tel/stage3-openrc.spec)
|
|
upload stage3-armv5tel-openrc-${TIMESTAMP}*.xz*
|
|
;;
|
|
armv5tel/stage3-systemd.spec)
|
|
upload stage3-armv5tel-systemd-${TIMESTAMP}*.xz*
|
|
;;
|
|
armv6j/stage3-openrc.spec)
|
|
upload stage3-armv6j-openrc-${TIMESTAMP}*.xz*
|
|
;;
|
|
armv6j/stage3-systemd.spec)
|
|
upload stage3-armv6j-systemd-${TIMESTAMP}*.xz*
|
|
;;
|
|
armv6j/stage3-hardfloat-openrc.spec)
|
|
upload stage3-armv6j_hardfp-openrc-${TIMESTAMP}*.xz*
|
|
;;
|
|
armv6j/stage3-hardfloat-systemd.spec)
|
|
upload stage3-armv6j_hardfp-systemd-${TIMESTAMP}*.xz*
|
|
;;
|
|
armv7a/stage3-openrc.spec)
|
|
upload stage3-armv7a-openrc-${TIMESTAMP}*.xz*
|
|
;;
|
|
armv7a/stage3-systemd.spec)
|
|
upload stage3-armv7a-systemd-${TIMESTAMP}*.xz*
|
|
;;
|
|
armv7a/stage3-hardfloat-openrc.spec)
|
|
upload stage3-armv7a_hardfp-openrc-${TIMESTAMP}*.xz*
|
|
;;
|
|
armv7a/stage3-hardfloat-systemd.spec)
|
|
upload stage3-armv7a_hardfp-systemd-${TIMESTAMP}*.xz*
|
|
;;
|
|
esac
|
|
|
|
popd >/dev/null
|
|
|
|
pushd "${BUILD_SRCDIR_BASE}/builds/mergedusr" >/dev/null
|
|
|
|
case ${spec} in
|
|
armv4tl/stage3-systemd-mu.spec)
|
|
upload stage3-armv4tl-systemd-mergedusr-${TIMESTAMP}*.xz*
|
|
;;
|
|
armv5tel/stage3-systemd-mu.spec)
|
|
upload stage3-armv5tel-systemd-mergedusr-${TIMESTAMP}*.xz*
|
|
;;
|
|
armv6j/stage3-systemd-mu.spec)
|
|
upload stage3-armv6j-systemd-mergedusr-${TIMESTAMP}*.xz*
|
|
;;
|
|
armv6j/stage3-hardfloat-systemd-mu.spec)
|
|
upload stage3-armv6j_hardfp-systemd-mergedusr-${TIMESTAMP}*.xz*
|
|
;;
|
|
armv7a/stage3-systemd-mu.spec)
|
|
upload stage3-armv7a-systemd-mergedusr-${TIMESTAMP}*.xz*
|
|
;;
|
|
armv7a/stage3-hardfloat-systemd-mu.spec)
|
|
upload stage3-armv7a_hardfp-systemd-mergedusr-${TIMESTAMP}*.xz*
|
|
;;
|
|
esac
|
|
|
|
popd >/dev/null
|
|
|
|
pushd "${BUILD_SRCDIR_BASE}/builds/musl" >/dev/null
|
|
|
|
case ${spec} in
|
|
armv7a-musl/stage3-hardfloat.spec)
|
|
upload stage3-armv7a_hardfp_musl-openrc-${TIMESTAMP}*.xz*
|
|
;;
|
|
armv6j-musl/stage3-hardfloat.spec)
|
|
upload stage3-armv6j_hardfp_musl-openrc-${TIMESTAMP}*.xz*
|
|
;;
|
|
esac
|
|
|
|
popd >/dev/null
|
|
|
|
pushd "${BUILD_SRCDIR_BASE}/builds/musl-hardened" >/dev/null
|
|
|
|
case ${spec} in
|
|
armv7a-musl-hardened/stage3-hardfloat.spec)
|
|
upload stage3-armv7a_hardfp_musl-hardened-openrc-${TIMESTAMP}*.xz*
|
|
;;
|
|
armv6j-musl-hardened/stage3-hardfloat.spec)
|
|
upload stage3-armv6j_hardfp_musl-hardened-openrc-${TIMESTAMP}*.xz*
|
|
;;
|
|
esac
|
|
|
|
popd >/dev/null
|
|
}
|