Build riscv64 lp64d musl

Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
This commit is contained in:
Andreas K. Hüttel 2022-02-27 16:09:22 +01:00
parent 57d40dc2fa
commit 337f8feec7
No known key found for this signature in database
GPG key ID: 4C49F79E54D0A206
3 changed files with 40 additions and 2 deletions

View file

@ -0,0 +1,14 @@
subarch: rv64_lp64d
target: stage1
version_stamp: musl-@TIMESTAMP@
interpreter: /usr/bin/qemu-riscv64
rel_type: musl
profile: default/linux/riscv/20.0/rv64gc/lp64d/musl
snapshot: @TIMESTAMP@
source_subpath: musl/stage3-rv64_lp64d-musl-latest
compression_mode: pixz
decompressor_search_order: xz bzip2
update_seed: yes
update_seed_command: -uDN @world
portage_confdir: @REPO_DIR@/releases/portage/stages-qemu
portage_prefix: releng

View file

@ -0,0 +1,12 @@
subarch: rv64_lp64d
target: stage3
version_stamp: musl-@TIMESTAMP@
interpreter: /usr/bin/qemu-riscv64
rel_type: musl
profile: default/linux/riscv/20.0/rv64gc/lp64d/musl
snapshot: @TIMESTAMP@
source_subpath: musl/stage1-rv64_lp64d-musl-@TIMESTAMP@
compression_mode: pixz
decompressor_search_order: xz bzip2
portage_confdir: @REPO_DIR@/releases/portage/stages-qemu
portage_prefix: releng

View file

@ -11,6 +11,7 @@ SPECS_DIR=${REPO_DIR}/releases/specs-qemu/riscv
EMAIL_SUBJECT_PREPEND="[riscv-qemu-auto]"
SETS="
lp64d_musl
lp64d_openrc
lp64d_systemd
lp64_openrc
@ -19,6 +20,7 @@ SETS="
multilib_systemd
"
SET_lp64d_musl_SPECS="stage1-lp64d-musl.spec stage3-lp64d-musl.spec"
SET_lp64d_openrc_SPECS="stage1-lp64d-openrc.spec stage3-lp64d-openrc.spec"
SET_lp64d_systemd_SPECS="stage1-lp64d-systemd.spec stage3-lp64d-systemd.spec"
SET_lp64_openrc_SPECS="stage1-lp64-openrc.spec stage3-lp64-openrc.spec"
@ -29,7 +31,7 @@ SET_multilib_systemd_SPECS="stage1-multilib-systemd.spec stage3-multilib-systemd
update_symlinks() {
# Symlink the latest stages3 to build from
local d f
for d in "${BUILD_SRCDIR_BASE}/builds/default" ; do
for d in "${BUILD_SRCDIR_BASE}/builds/default" "${BUILD_SRCDIR_BASE}/builds/musl" ; do
pushd "${d}" >/dev/null
for f in $(ls stage3*xz | grep -v latest | give_latest_from_dates) ; do
local of=$(echo "${f}" | convert_filename)
@ -43,11 +45,21 @@ post_build() {
local set=$1 spec=$2
case ${spec} in
stage3*.spec)
stage3*openrc.spec)
pushd "${BUILD_SRCDIR_BASE}/builds/default" >/dev/null
upload stage3-rv64_$(echo ${spec}|sed -e 's:^stage3-::g' -e 's:\.spec$::g')-${TIMESTAMP}*.xz*
popd >/dev/null
;;
stage3*systemd.spec)
pushd "${BUILD_SRCDIR_BASE}/builds/default" >/dev/null
upload stage3-rv64_$(echo ${spec}|sed -e 's:^stage3-::g' -e 's:\.spec$::g')-${TIMESTAMP}*.xz*
popd >/dev/null
;;
stage3*musl.spec)
pushd "${BUILD_SRCDIR_BASE}/builds/musl" >/dev/null
upload stage3-rv64_$(echo ${spec}|sed -e 's:^stage3-::g' -e 's:\.spec$::g')-${TIMESTAMP}*.xz*
popd >/dev/null
;;
*)
echo "Finished ${spec}"
;;