amd64: migrate the x32 stages to demeter, move musl to subdir

Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
This commit is contained in:
Andreas K. Hüttel 2021-07-07 20:25:19 +02:00
parent 7ab4ecfe70
commit c603ac1a75
No known key found for this signature in database
GPG key ID: 4C49F79E54D0A206
5 changed files with 25 additions and 16 deletions

View file

@ -1,10 +1,10 @@
subarch: x32
target: stage1
version_stamp: @TIMESTAMP@
version_stamp: openrc-@TIMESTAMP@
rel_type: default
profile: default/linux/amd64/17.0/x32
snapshot: @TIMESTAMP@
source_subpath: default/stage3-x32-latest
source_subpath: default/stage3-x32-openrc-latest
compression_mode: pixz_x
update_seed: yes
update_seed_command: --update --deep --newuse @world

View file

@ -1,10 +1,10 @@
subarch: x32
target: stage2
version_stamp: @TIMESTAMP@
version_stamp: openrc-@TIMESTAMP@
rel_type: default
profile: default/linux/amd64/17.0/x32
snapshot: @TIMESTAMP@
source_subpath: default/stage1-x32-@TIMESTAMP@
source_subpath: default/stage1-x32-openrc-@TIMESTAMP@
compression_mode: pixz_x
portage_confdir: @REPO_DIR@/releases/portage/stages
portage_prefix: releng

View file

@ -1,10 +1,10 @@
subarch: x32
target: stage3
version_stamp: @TIMESTAMP@
version_stamp: openrc-@TIMESTAMP@
rel_type: default
profile: default/linux/amd64/17.0/x32
snapshot: @TIMESTAMP@
source_subpath: default/stage2-x32-@TIMESTAMP@
source_subpath: default/stage2-x32-openrc-@TIMESTAMP@
compression_mode: pixz_x
portage_confdir: @REPO_DIR@/releases/portage/stages
portage_prefix: releng

View file

@ -11,12 +11,15 @@ TYPE="auto"
SPECS_DIR=${REPO_DIR}/releases/specs/amd64
SETS="
vanilla
hardened
musl
musl_hardened
x32_openrc
"
SET_vanilla_SPECS="musl/stage1.spec musl/stage2.spec musl/stage3.spec"
SET_hardened_SPECS="musl/stage1-hardened.spec musl/stage2-hardened.spec musl/stage3-hardened.spec"
SET_musl_SPECS="musl/stage1.spec musl/stage2.spec musl/stage3.spec"
SET_musl_hardened_SPECS="musl/stage1-hardened.spec musl/stage2-hardened.spec musl/stage3-hardened.spec"
SET_x32_openrc_SPECS="x32/stage1-openrc.spec x32/stage2-openrc.spec x32/stage3-openrc.spec"
KCONFIG_DIR=${REPO_DIR}/releases/kconfig/amd64
@ -24,7 +27,7 @@ EXTENSIONS="@(.tar.xz|.tar.bz2|.tar.gz|.tar|.sfs)"
update_symlinks() {
# Symlink the latest stages3 to build from
for d in ${BUILD_SRCDIR_BASE}/builds/{musl,musl-hardened} ; do
for d in ${BUILD_SRCDIR_BASE}/builds/{default,musl,musl-hardened} ; do
pushd "${d}" >/dev/null || exit
shopt -s extglob
for f in $(ls stage3*${EXTENSIONS} | grep -v latest | give_latest_from_dates ) ; do
@ -47,8 +50,17 @@ update_symlinks() {
post_build() {
local set=$1 spec=$2
pushd "${BUILD_SRCDIR_BASE}"/builds/default >/dev/null || exit
UPLOAD_DEST=${BUILD_DESTDIR_BASE}/x32
case ${spec} in
x32/stage3-openrc.spec)
upload stage3-x32-openrc-${TIMESTAMP}.tar.xz*
;;
esac
popd >/dev/null || exit
pushd "${BUILD_SRCDIR_BASE}"/builds/musl >/dev/null || exit
UPLOAD_DEST=${BUILD_DESTDIR_BASE}
UPLOAD_DEST=${BUILD_DESTDIR_BASE}/musl
case ${spec} in
musl/stage3.spec)
upload stage3-amd64-musl-${TIMESTAMP}.tar.xz*
@ -57,7 +69,7 @@ post_build() {
popd >/dev/null || exit
pushd "${BUILD_SRCDIR_BASE}"/builds/musl-hardened >/dev/null || exit
UPLOAD_DEST=${BUILD_DESTDIR_BASE}
UPLOAD_DEST=${BUILD_DESTDIR_BASE}/musl
case ${spec} in
musl/stage3-hardened.spec)
upload stage3-amd64-musl-hardened-${TIMESTAMP}.tar.xz*

View file

@ -14,7 +14,6 @@ SPECS_DIR=${REPO_DIR}/releases/specs/amd64
SETS="
multilib minimal_multilib
nomultilib minimal_nomultilib
x32
systemd
hardened_multilib minimal_hardened_multilib
hardened_nomultilib minimal_hardened_nomultilib
@ -29,8 +28,6 @@ SET_nomultilib_SPECS="stage1-nomultilib.spec stage2-nomultilib.spec stage3-nomul
SET_systemd_SPECS="stage1-systemd.spec stage2-systemd.spec stage3-systemd.spec"
SET_x32_SPECS="stage1-x32.spec stage2-x32.spec stage3-x32.spec"
SET_hardened_multilib_SPECS="hardened/stage1.spec hardened/stage2.spec hardened/stage3.spec"
SET_hardened_multilib_OPTIONAL_SPECS="hardened/admincd-stage1.spec hardened/admincd-stage2.spec"
#SET_minimal_hardened_multilib_OPTIONAL_SPECS="hardened/stage4-minimal.spec"