2021-08-29 13:40:54 +00:00
|
|
|
# This is the config file for the catalyst-auto script. It should be pretty
|
|
|
|
# self-explanatory.
|
|
|
|
|
|
|
|
UPLOAD_USER=arm
|
2021-08-29 16:58:48 +00:00
|
|
|
UPLOAD_KEY=/root/.ssh/id_ed25519
|
2021-08-29 13:40:54 +00:00
|
|
|
|
|
|
|
host=$(hostname)
|
|
|
|
|
|
|
|
SPECS_DIR=${REPO_DIR}/releases/specs/arm
|
|
|
|
|
|
|
|
EMAIL_SUBJECT_PREPEND="[arm-auto]"
|
|
|
|
|
|
|
|
SETS="
|
2021-08-29 13:48:18 +00:00
|
|
|
armv4tl_openrc
|
2022-11-16 20:40:58 +00:00
|
|
|
armv4tl_systemd_mu
|
2021-08-29 16:58:48 +00:00
|
|
|
armv5tel_openrc
|
2022-11-16 20:40:58 +00:00
|
|
|
armv5tel_systemd_mu
|
2021-08-29 19:13:14 +00:00
|
|
|
armv6j_hf_openrc
|
2022-11-16 20:40:58 +00:00
|
|
|
armv6j_hf_systemd_mu
|
2021-08-29 19:13:14 +00:00
|
|
|
armv6j_sf_openrc
|
2022-11-16 20:40:58 +00:00
|
|
|
armv6j_sf_systemd_mu
|
2021-12-05 22:43:07 +00:00
|
|
|
armv6j_hf_musl_openrc
|
|
|
|
armv6j_hf_musl_hardened_openrc
|
2021-09-02 10:43:47 +00:00
|
|
|
armv7a_hf_openrc
|
2022-11-16 20:40:58 +00:00
|
|
|
armv7a_hf_systemd_mu
|
2021-09-02 10:43:47 +00:00
|
|
|
armv7a_sf_openrc
|
2022-11-16 20:40:58 +00:00
|
|
|
armv7a_sf_systemd_mu
|
2021-12-05 22:43:07 +00:00
|
|
|
armv7a_hf_musl_openrc
|
|
|
|
armv7a_hf_musl_hardened_openrc
|
2021-08-29 13:40:54 +00:00
|
|
|
"
|
|
|
|
|
2021-08-29 13:48:18 +00:00
|
|
|
SET_armv4tl_openrc_SPECS="armv4tl/stage1-openrc.spec armv4tl/stage3-openrc.spec"
|
2022-11-16 20:40:58 +00:00
|
|
|
SET_armv4tl_systemd_mu_SPECS="armv4tl/stage1-systemd-mu.spec armv4tl/stage3-systemd-mu.spec"
|
2021-08-29 13:40:54 +00:00
|
|
|
|
2021-08-29 16:58:48 +00:00
|
|
|
SET_armv5tel_openrc_SPECS="armv5tel/stage1-openrc.spec armv5tel/stage3-openrc.spec"
|
2022-11-16 20:40:58 +00:00
|
|
|
SET_armv5tel_systemd_mu_SPECS="armv5tel/stage1-systemd-mu.spec armv5tel/stage3-systemd-mu.spec"
|
2021-08-29 13:40:54 +00:00
|
|
|
|
2021-08-29 19:13:14 +00:00
|
|
|
SET_armv6j_hf_openrc_SPECS="armv6j/stage1-hardfloat-openrc.spec armv6j/stage3-hardfloat-openrc.spec"
|
2022-11-16 20:40:58 +00:00
|
|
|
SET_armv6j_hf_systemd_mu_SPECS="armv6j/stage1-hardfloat-systemd-mu.spec armv6j/stage3-hardfloat-systemd-mu.spec"
|
2021-08-29 19:13:14 +00:00
|
|
|
|
|
|
|
SET_armv6j_sf_openrc_SPECS="armv6j/stage1-openrc.spec armv6j/stage3-openrc.spec"
|
2022-11-16 20:40:58 +00:00
|
|
|
SET_armv6j_sf_systemd_mu_SPECS="armv6j/stage1-systemd-mu.spec armv6j/stage3-systemd-mu.spec"
|
2021-08-29 13:40:54 +00:00
|
|
|
|
2021-11-20 14:48:10 +00:00
|
|
|
SET_armv6j_hf_musl_openrc_SPECS="armv6j-musl/stage1-hardfloat.spec armv6j-musl/stage3-hardfloat.spec"
|
2021-11-21 12:59:37 +00:00
|
|
|
SET_armv6j_hf_musl_hardened_openrc_SPECS="armv6j-musl-hardened/stage1-hardfloat.spec armv6j-musl-hardened/stage3-hardfloat.spec"
|
2021-11-20 14:48:10 +00:00
|
|
|
|
2021-08-30 08:54:34 +00:00
|
|
|
SET_armv7a_hf_openrc_SPECS="armv7a/stage1-hardfloat-openrc.spec armv7a/stage3-hardfloat-openrc.spec"
|
2022-11-16 20:40:58 +00:00
|
|
|
SET_armv7a_hf_systemd_mu_SPECS="armv7a/stage1-hardfloat-systemd-mu.spec armv7a/stage3-hardfloat-systemd-mu.spec"
|
2021-08-29 13:40:54 +00:00
|
|
|
|
2021-11-21 12:59:37 +00:00
|
|
|
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"
|
2021-11-10 20:39:38 +00:00
|
|
|
|
2021-08-30 08:54:34 +00:00
|
|
|
SET_armv7a_sf_openrc_SPECS="armv7a/stage1-openrc.spec armv7a/stage3-openrc.spec"
|
2022-11-16 20:40:58 +00:00
|
|
|
SET_armv7a_sf_systemd_mu_SPECS="armv7a/stage1-systemd-mu.spec armv7a/stage3-systemd-mu.spec"
|
2021-08-29 13:40:54 +00:00
|
|
|
|
|
|
|
update_symlinks() {
|
|
|
|
# Symlink the latest stages3 to build from
|
|
|
|
local d f
|
2023-12-14 22:33:18 +00:00
|
|
|
for d in "${BUILD_SRCDIR_BASE}/builds"/* ; do
|
2022-11-22 02:05:55 +00:00
|
|
|
mkdir -p "${d}"
|
2021-08-29 13:40:54 +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
|
|
|
|
|
|
|
|
pushd "${BUILD_SRCDIR_BASE}/builds/default" >/dev/null
|
|
|
|
|
|
|
|
case ${spec} in
|
2021-08-29 13:48:18 +00:00
|
|
|
armv4tl/stage3-openrc.spec)
|
|
|
|
upload stage3-armv4tl-openrc-${TIMESTAMP}*.xz*
|
2023-08-08 17:54:44 +00:00
|
|
|
upsync_binpackages "${BUILD_SRCDIR_BASE}/packages/default/stage3-armv4tl" arm/17.0/armv4tl
|
2021-08-29 13:40:54 +00:00
|
|
|
;;
|
2021-08-29 16:58:48 +00:00
|
|
|
armv5tel/stage3-openrc.spec)
|
|
|
|
upload stage3-armv5tel-openrc-${TIMESTAMP}*.xz*
|
2023-08-08 17:54:44 +00:00
|
|
|
upsync_binpackages "${BUILD_SRCDIR_BASE}/packages/default/stage3-armv5tel" arm/17.0/armv5tel
|
2021-08-29 13:40:54 +00:00
|
|
|
;;
|
2021-08-30 08:54:34 +00:00
|
|
|
armv6j/stage3-openrc.spec)
|
2021-08-30 08:47:55 +00:00
|
|
|
upload stage3-armv6j-openrc-${TIMESTAMP}*.xz*
|
2023-08-08 17:54:44 +00:00
|
|
|
upsync_binpackages "${BUILD_SRCDIR_BASE}/packages/default/stage3-armv6j" arm/17.0/armv6j
|
2021-08-29 13:40:54 +00:00
|
|
|
;;
|
2021-08-30 08:54:34 +00:00
|
|
|
armv6j/stage3-hardfloat-openrc.spec)
|
2021-08-30 08:47:55 +00:00
|
|
|
upload stage3-armv6j_hardfp-openrc-${TIMESTAMP}*.xz*
|
2023-08-08 17:54:44 +00:00
|
|
|
upsync_binpackages "${BUILD_SRCDIR_BASE}/packages/default/stage3-armv6j_hardfp" arm/17.0/armv6j_hardfp
|
2021-08-29 13:40:54 +00:00
|
|
|
;;
|
2021-08-30 08:54:34 +00:00
|
|
|
armv7a/stage3-openrc.spec)
|
2021-08-30 12:30:07 +00:00
|
|
|
upload stage3-armv7a-openrc-${TIMESTAMP}*.xz*
|
2023-08-09 23:18:08 +00:00
|
|
|
upsync_binpackages "${BUILD_SRCDIR_BASE}/packages/default/stage3-armv7a" arm/17.0/armv7a
|
2021-08-29 13:40:54 +00:00
|
|
|
;;
|
2021-08-30 08:54:34 +00:00
|
|
|
armv7a/stage3-hardfloat-openrc.spec)
|
2021-08-30 12:30:07 +00:00
|
|
|
upload stage3-armv7a_hardfp-openrc-${TIMESTAMP}*.xz*
|
2023-08-09 23:18:08 +00:00
|
|
|
upsync_binpackages "${BUILD_SRCDIR_BASE}/packages/default/stage3-armv7a_hardfp" arm/17.0/armv7a_hardfp
|
2021-08-29 13:40:54 +00:00
|
|
|
;;
|
2022-11-23 11:18:10 +00:00
|
|
|
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*
|
|
|
|
;;
|
2022-11-16 20:40:58 +00:00
|
|
|
armv7a/stage3-hardfloat-systemd-mu.spec)
|
|
|
|
upload stage3-armv7a_hardfp-systemd-mergedusr-${TIMESTAMP}*.xz*
|
|
|
|
;;
|
2021-08-29 13:40:54 +00:00
|
|
|
esac
|
|
|
|
|
|
|
|
popd >/dev/null
|
2021-11-10 20:58:56 +00:00
|
|
|
|
|
|
|
pushd "${BUILD_SRCDIR_BASE}/builds/musl" >/dev/null
|
|
|
|
|
|
|
|
case ${spec} in
|
2021-11-19 21:38:42 +00:00
|
|
|
armv7a-musl/stage3-hardfloat.spec)
|
|
|
|
upload stage3-armv7a_hardfp_musl-openrc-${TIMESTAMP}*.xz*
|
2023-08-09 23:18:08 +00:00
|
|
|
upsync_binpackages "${BUILD_SRCDIR_BASE}/packages/musl/stage3-armv7a_hardfp_musl" arm/17.0/armv7a_hardfp_musl
|
2021-11-10 20:58:56 +00:00
|
|
|
;;
|
2021-11-20 14:48:10 +00:00
|
|
|
armv6j-musl/stage3-hardfloat.spec)
|
|
|
|
upload stage3-armv6j_hardfp_musl-openrc-${TIMESTAMP}*.xz*
|
2023-08-08 17:54:44 +00:00
|
|
|
upsync_binpackages "${BUILD_SRCDIR_BASE}/packages/musl/stage3-armv6j_hardfp_musl" arm/17.0/armv6j_hardfp_musl
|
2021-11-20 14:48:10 +00:00
|
|
|
;;
|
2021-11-10 20:58:56 +00:00
|
|
|
esac
|
|
|
|
|
|
|
|
popd >/dev/null
|
2021-11-21 12:59:37 +00:00
|
|
|
|
|
|
|
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*
|
2023-08-09 23:18:08 +00:00
|
|
|
upsync_binpackages "${BUILD_SRCDIR_BASE}/packages/musl-hardened/stage3-armv7a_hardfp_musl" arm/17.0/armv7a_hardfp_musl_hardened
|
2021-11-21 12:59:37 +00:00
|
|
|
;;
|
|
|
|
armv6j-musl-hardened/stage3-hardfloat.spec)
|
|
|
|
upload stage3-armv6j_hardfp_musl-hardened-openrc-${TIMESTAMP}*.xz*
|
2023-08-08 17:54:44 +00:00
|
|
|
upsync_binpackages "${BUILD_SRCDIR_BASE}/packages/musl-hardened/stage3-armv6j_hardfp_musl" arm/17.0/armv6j_hardfp_musl_hardened
|
2021-11-21 12:59:37 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
popd >/dev/null
|
2021-08-29 13:40:54 +00:00
|
|
|
}
|