Add arm64 llvm stages

Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
This commit is contained in:
Andreas K. Hüttel 2022-10-14 20:14:41 +02:00
parent 1716e0f39b
commit c769e47306
No known key found for this signature in database
GPG key ID: DC2B16215ED5412A
7 changed files with 103 additions and 2 deletions

View file

@ -0,0 +1,12 @@
subarch: arm64
target: stage1
version_stamp: llvm-openrc-@TIMESTAMP@
rel_type: llvm
profile: default/linux/arm64/17.0/llvm
snapshot: @TIMESTAMP@
source_subpath: llvm/stage3-arm64-llvm-openrc-latest.tar.xz
compression_mode: pixz
update_seed: yes
update_seed_command: --update --deep --jobs=5 --newuse --complete-graph @world
portage_confdir: @REPO_DIR@/releases/portage/stages
portage_prefix: releng

View file

@ -0,0 +1,12 @@
subarch: arm64
target: stage1
version_stamp: llvm-systemd-@TIMESTAMP@
rel_type: llvm
profile: default/linux/arm64/17.0/systemd/llvm
snapshot: @TIMESTAMP@
source_subpath: llvm/stage3-arm64-llvm-systemd-latest.tar.xz
compression_mode: pixz
update_seed: yes
update_seed_command: --update --deep --jobs=5 --newuse --complete-graph @world
portage_confdir: @REPO_DIR@/releases/portage/stages
portage_prefix: releng

View file

@ -0,0 +1,10 @@
subarch: arm64
target: stage3
version_stamp: llvm-openrc-@TIMESTAMP@
rel_type: llvm
profile: default/linux/arm64/17.0/llvm
snapshot: @TIMESTAMP@
source_subpath: llvm/stage1-arm64-llvm-openrc-@TIMESTAMP@.tar.xz
compression_mode: pixz
portage_confdir: @REPO_DIR@/releases/portage/stages
portage_prefix: releng

View file

@ -0,0 +1,10 @@
subarch: arm64
target: stage3
version_stamp: llvm-systemd-@TIMESTAMP@
rel_type: llvm
profile: default/linux/arm64/17.0/systemd/llvm
snapshot: @TIMESTAMP@
source_subpath: llvm/stage1-arm64-llvm-systemd-@TIMESTAMP@.tar.xz
compression_mode: pixz
portage_confdir: @REPO_DIR@/releases/portage/stages
portage_prefix: releng

View file

@ -0,0 +1,13 @@
subarch: arm64
target: stage1
version_stamp: musl-llvm-@TIMESTAMP@
rel_type: musl-llvm
profile: default/linux/arm64/17.0/musl/llvm
snapshot: @TIMESTAMP@
source_subpath: musl-llvm/stage3-arm64-musl-llvm-latest.tar.xz
compression_mode: pixz
update_seed: yes
update_seed_command: --update --deep --jobs=5 --newuse --complete-graph @world
portage_confdir: @REPO_DIR@/releases/portage/stages
portage_prefix: releng
chost: aarch64-gentoo-linux-musl

View file

@ -0,0 +1,10 @@
subarch: arm64
target: stage3
version_stamp: musl-llvm-@TIMESTAMP@
rel_type: musl-llvm
profile: default/linux/arm64/17.0/musl/llvm
snapshot: @TIMESTAMP@
source_subpath: musl-llvm/stage1-arm64-musl-llvm-@TIMESTAMP@.tar.xz
compression_mode: pixz
portage_confdir: @REPO_DIR@/releases/portage/stages
portage_prefix: releng

View file

@ -6,15 +6,20 @@ UPLOAD_KEY=/root/.ssh/id_ed25519
SPECS_DIR=${REPO_DIR}/releases/specs/arm64
SUBARCH=arm64
SETS="openrc systemd musl muslhardened"
SETS="openrc llvmopenrc systemd llvmsystemd musl muslhardened muslllvm"
SET_openrc_SPECS="stage1-openrc.spec stage3-openrc.spec stage3d-openrc.spec"
SET_openrc_OPTIONAL_SPECS="installcd-stage1.spec installcd-stage2-minimal.spec"
SET_systemd_SPECS="stage1-systemd.spec stage3-systemd.spec stage3d-systemd.spec"
SET_llvmopenrc_SPECS="llvm/stage1-openrc.spec llvm/stage3-openrc.spec"
SET_llvmsystemd_SPECS="llvm/stage1-systemd.spec llvm/stage3-systemd.spec"
SET_musl_SPECS="musl/stage1.spec musl/stage3.spec"
SET_muslhardened_SPECS="musl-hardened/stage1.spec musl-hardened/stage3.spec"
SET_muslllvm_SPECS="musl-llvm/stage1.spec musl-llvm/stage3.spec"
KCONFIG_DIR=${REPO_DIR}/releases/kconfig/arm64
EMAIL_SUBJECT_PREPEND="[${SUBARCH}-auto]"
@ -22,7 +27,7 @@ EMAIL_SUBJECT_PREPEND="[${SUBARCH}-auto]"
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"; do
for d in "${BUILD_SRCDIR_BASE}/builds/default" "${BUILD_SRCDIR_BASE}/builds/llvm" "${BUILD_SRCDIR_BASE}/builds/musl" "${BUILD_SRCDIR_BASE}/builds/musl-hardened" "${BUILD_SRCDIR_BASE}/builds/musl-llvm"; do
pushd "${d}" >/dev/null
for f in $(ls stage3-${SUBARCH}-*xz | grep -v latest | give_latest_from_dates) ; do
local of=$(echo "${f}" | convert_filename)
@ -60,6 +65,22 @@ post_build() {
popd >/dev/null
pushd "${BUILD_SRCDIR_BASE}/builds/llvm" >/dev/null
case ${spec} in
llvm/stage3-openrc.spec)
upload stage3-${SUBARCH}-llvm-openrc-${TIMESTAMP}*.xz*
;;
llvm/stage3-systemd.spec)
upload stage3-${SUBARCH}-llvm-systemd-${TIMESTAMP}*.xz*
;;
*)
echo "Finished ${spec}"
;;
esac
popd >/dev/null
pushd "${BUILD_SRCDIR_BASE}/builds/musl" >/dev/null
case ${spec} in
@ -85,4 +106,17 @@ post_build() {
esac
popd >/dev/null
pushd "${BUILD_SRCDIR_BASE}/builds/musl-llvm" >/dev/null
case ${spec} in
musl-llvm/stage3.spec)
upload stage3-${SUBARCH}-*${TIMESTAMP}*.tar.xz*
;;
*)
echo "Finished ${spec}"
;;
esac
popd >/dev/null
}