commit:     bb1e7293ac0757337ee34a692a169bede6d39031
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Fri Jan  8 23:21:37 2021 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Fri Jan  8 23:21:37 2021 +0000
URL:        https://gitweb.gentoo.org/proj/releng.git/commit/?id=bb1e7293

Add catalyst-auto conf for qemu arm builds

Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 tools/catalyst-auto-qemu-arm.conf | 82 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 82 insertions(+)

diff --git a/tools/catalyst-auto-qemu-arm.conf 
b/tools/catalyst-auto-qemu-arm.conf
new file mode 100644
index 00000000..9326d336
--- /dev/null
+++ b/tools/catalyst-auto-qemu-arm.conf
@@ -0,0 +1,82 @@
+# This is the config file for the catalyst-auto script. It should be pretty
+# self-explanatory.
+
+ARCH="arm"
+host=$(hostname)
+
+SPECS_DIR=${REPO_DIR}/releases/specs-qemu/${ARCH}
+
+SETS="
+       armv4tl
+       armv5tel
+       armv6j_hf
+       armv6j_sf
+       armv7a_hf
+       armv7a_sf
+       armv4tl_systemd
+       armv5tel_systemd
+       armv6j_hf_systemd
+       armv6j_sf_systemd
+       armv7a_hf_systemd
+       armv7a_sf_systemd
+"
+
+SET_armv4tl_SPECS="armv4tl/stage1.spec armv4tl/stage2.spec armv4tl/stage3.spec"
+SET_armv4tl_systemd_SPECS="armv4tl/stage1-systemd.spec 
armv4tl/stage2-systemd.spec armv4tl/stage3-systemd.spec"
+
+SET_armv5tel_SPECS="armv5tel/stage1.spec armv5tel/stage2.spec 
armv5tel/stage3.spec"
+SET_armv5tel_systemd_SPECS="armv5tel/stage1-systemd.spec 
armv5tel/stage2-systemd.spec armv5tel/stage3-systemd.spec"
+
+SET_armv6j_hf_SPECS="armv6j/hardfloat/stage1.spec armv6j/hardfloat/stage2.spec 
armv6j/hardfloat/stage3.spec"
+SET_armv6j_sf_SPECS="armv6j/softfloat/stage1.spec armv6j/softfloat/stage2.spec 
armv6j/softfloat/stage3.spec"
+SET_armv6j_hf_systemd_SPECS="armv6j/hardfloat/stage1-systemd.spec 
armv6j/hardfloat/stage2-systemd.spec armv6j/hardfloat/stage3-systemd.spec"
+SET_armv6j_sf_systemd_SPECS="armv6j/softfloat/stage1-systemd.spec 
armv6j/softfloat/stage2-systemd.spec armv6j/softfloat/stage3-systemd.spec"
+
+SET_armv7a_hf_SPECS="armv7a/hardfloat/stage1.spec armv7a/hardfloat/stage2.spec 
armv7a/hardfloat/stage3.spec"
+SET_armv7a_sf_SPECS="armv7a/softfloat/stage1.spec armv7a/softfloat/stage2.spec 
armv7a/softfloat/stage3.spec"
+SET_armv7a_hf_systemd_SPECS="armv7a/hardfloat/stage1-systemd.spec 
armv7a/hardfloat/stage2-systemd.spec armv7a/hardfloat/stage3-systemd.spec"
+SET_armv7a_sf_systemd_SPECS="armv7a/softfloat/stage1-systemd.spec 
armv7a/softfloat/stage2-systemd.spec armv7a/softfloat/stage3-systemd.spec"
+
+
+update_symlinks() {
+  # Symlink the latest stages3 to build from
+  for d in ${BUILD_SRCDIR_BASE}/builds/default ; do
+    pushd $d >/dev/null
+    for f in $(ls stage3-${SUBARCH}-*bz2 | grep -v latest | 
give_latest_from_dates ) ; do
+      of=${f/20[0-9][0-9].[0-9]/latest} # for 20XX.Y stuff
+      of=${of/20[0-9][0-9][0-1][0-9][0-9][0-9]/latest} # for $
+      ln -sf $f $of
+    done
+    popd >/dev/null
+  done
+}
+
+upload() {
+    if [[ ${nonetwork} == 0 ]]; then
+       echo Uploading "$@"
+       rsync -e 'ssh -i /root/.ssh/id_rsa -o UserKnownHostsFile=/dev/null -o 
VerifyHostKeyDNS=yes -o StrictHostKeyChecking=no' "$@" 
[email protected]:
+    fi
+}
+
+post_build() {
+       local set=$1 spec=$2
+
+       pushd "${BUILD_SRCDIR_BASE}/builds/default" >/dev/null
+
+       case ${spec} in
+       armv4tl/stage3.spec)
+               upload stage3-armv4tl-${TIMESTAMP}*.xz*
+               ;;
+       armv5tel/systemd-stage3.spec)
+               upload stage3-armv5tel-systemd-${TIMESTAMP}*.xz*
+               ;;
+       armv6j_hardfp/stage3.spec)
+               upload stage3-armv6j_hardfp-${TIMESTAMP}*.xz*
+               ;;
+       armv7a_hardfp/stage3.spec)
+               upload stage3-armv7a_hardfp-${TIMESTAMP}*.xz*
+               ;;
+       esac
+
+       popd >/dev/null
+}

Reply via email to