2017-12-01 22:53:39 +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=arm64
|
2021-01-31 00:01:29 +00:00
|
|
|
UPLOAD_KEY=/root/.ssh/id_ed25519
|
2020-04-29 01:16:29 +00:00
|
|
|
SPECS_DIR=${REPO_DIR}/releases/specs/arm64
|
2017-12-01 22:53:39 +00:00
|
|
|
SUBARCH=`grep subarch $SPECS_DIR/stage1.spec | awk '{print $2}'`
|
|
|
|
|
|
|
|
SETS="default"
|
|
|
|
|
2020-08-17 22:08:43 +00:00
|
|
|
SET_default_SPECS="stage1.spec stage3.spec systemd-stage1.spec systemd-stage3.spec"
|
2017-12-01 22:53:39 +00:00
|
|
|
#SET_default_OPTIONAL_SPECS="installcd-stage1.spec installcd-stage2-minimal.spec"
|
|
|
|
|
2020-04-29 01:16:29 +00:00
|
|
|
#KCONFIG_DIR=${REPO_DIR}/releases/kconfig/sparc
|
2017-12-01 22:53:39 +00:00
|
|
|
|
|
|
|
EMAIL_SUBJECT_PREPEND="[${SUBARCH}-auto]"
|
|
|
|
|
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
|
|
|
|
for d in "${BUILD_SRCDIR_BASE}/builds/default" ; do
|
|
|
|
pushd "${d}" >/dev/null
|
2020-08-17 17:50:16 +00:00
|
|
|
for f in $(ls stage3-${SUBARCH}-*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
|
|
|
|
popd >/dev/null
|
|
|
|
done
|
2017-12-01 22:53:39 +00:00
|
|
|
}
|
|
|
|
|
2018-01-16 01:52:14 +00:00
|
|
|
upload() {
|
2021-01-31 00:16:03 +00:00
|
|
|
local SSH_CMD=(
|
|
|
|
ssh
|
|
|
|
-i ${UPLOAD_KEY}
|
|
|
|
-o UserKnownHostsFile=/dev/null
|
|
|
|
-o VerifyHostKeyDNS=yes
|
|
|
|
-o StrictHostKeyChecking=no
|
|
|
|
)
|
2021-01-31 00:39:55 +00:00
|
|
|
local RSYNC_OPTS=(
|
|
|
|
-e "${SSH_CMD[*]}"
|
2021-01-31 00:41:01 +00:00
|
|
|
--archive
|
|
|
|
--omit-dir-times
|
|
|
|
--delay-updates
|
2021-01-31 00:39:55 +00:00
|
|
|
)
|
2021-01-31 01:00:37 +00:00
|
|
|
rsync "${RSYNC_OPTS[@]}" "$@" ${UPLOAD_USER}@releng-incoming.gentoo.org:${UPLOAD_DEST}
|
2018-01-16 01:52:14 +00:00
|
|
|
}
|
2017-12-01 22:53:39 +00:00
|
|
|
|
|
|
|
post_build() {
|
2018-01-16 01:52:14 +00:00
|
|
|
local set=$1 spec=$2
|
|
|
|
|
|
|
|
pushd "${BUILD_SRCDIR_BASE}/builds/default" >/dev/null
|
|
|
|
|
|
|
|
case ${spec} in
|
|
|
|
stage3.spec)
|
2020-08-17 17:50:16 +00:00
|
|
|
upload stage3-${SUBARCH}-*${TIMESTAMP}*.tar.xz*
|
2018-01-16 01:52:14 +00:00
|
|
|
;;
|
2020-08-17 22:08:43 +00:00
|
|
|
systemd-stage3.spec)
|
|
|
|
upload stage3-${SUBARCH}-systemd-${TIMESTAMP}*.xz*
|
|
|
|
;;
|
2018-01-16 01:52:14 +00:00
|
|
|
esac
|
|
|
|
|
|
|
|
popd >/dev/null
|
2017-12-01 22:53:39 +00:00
|
|
|
}
|