blob: 7114c4911a10f9c7bba7358db648f9b692fd9d02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
# This is the config file for the catalyst-auto script. It should be pretty
# self-explanatory.
UPLOAD_USER=riscv
UPLOAD_KEY=/root/.ssh/id_ed25519
host=$(hostname)
SPECS_DIR=${REPO_DIR}/releases/specs-qemu/riscv
EMAIL_SUBJECT_PREPEND="[riscv-qemu-auto]"
SETS="
lp64d_openrc_23
lp64d_systemd_23
lp64d_musl_23
lp64_openrc_23
lp64_systemd_23
lp64_musl_23
multilib_openrc_23
multilib_systemd_23
ilp32d_openrc_23
ilp32d_systemd_23
lp64d_openrc
lp64d_musl
lp64_openrc
lp64_musl
multilib_openrc
"
# ilp32d_musl_23
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_lp64_musl_SPECS="stage1-lp64-musl.spec stage3-lp64-musl.spec"
SET_lp64_openrc_SPECS="stage1-lp64-openrc.spec stage3-lp64-openrc.spec"
SET_multilib_openrc_SPECS="stage1-multilib-openrc.spec stage3-multilib-openrc.spec"
SET_lp64d_musl_23_SPECS="stage1-lp64d-musl-23.spec stage3-lp64d-musl-23.spec"
SET_lp64d_openrc_23_SPECS="stage1-lp64d-openrc-23.spec stage3-lp64d-openrc-23.spec"
SET_lp64d_systemd_23_SPECS="stage1-lp64d-systemd-23.spec stage3-lp64d-systemd-23.spec"
SET_lp64_musl_23_SPECS="stage1-lp64-musl-23.spec stage3-lp64-musl-23.spec"
SET_lp64_openrc_23_SPECS="stage1-lp64-openrc-23.spec stage3-lp64-openrc-23.spec"
SET_lp64_systemd_23_SPECS="stage1-lp64-systemd-23.spec stage3-lp64-systemd-23.spec"
SET_multilib_openrc_23_SPECS="stage1-multilib-openrc-23.spec stage3-multilib-openrc-23.spec"
SET_multilib_systemd_23_SPECS="stage1-multilib-systemd-23.spec stage3-multilib-systemd-23.spec"
SET_ilp32d_musl_23_SPECS="rv32_ilp32d/stage1-ilp32d-musl-23.spec rv32_ilp32d/stage3-ilp32d-musl-23.spec"
SET_ilp32d_openrc_23_SPECS="rv32_ilp32d/stage1-ilp32d-openrc-23.spec rv32_ilp32d/stage3-ilp32d-openrc-23.spec"
SET_ilp32d_systemd_23_SPECS="rv32_ilp32d/stage1-ilp32d-systemd-23.spec rv32_ilp32d/stage3-ilp32d-systemd-23.spec"
update_symlinks() {
# Symlink the latest stages3 to build from
local d f
for d in "${BUILD_SRCDIR_BASE}/builds"/* ; do
mkdir -p "${d}"
pushd "${d}" >/dev/null
for f in $(ls stage3*xz | grep -v latest | give_latest_from_dates) ; do
local of=$(echo "${f}" | convert_filename)
ln -sf "${f}" "${of}"
done
popd >/dev/null
done
}
post_build() {
local set=$1 spec=$2
pushd "${BUILD_SRCDIR_BASE}" >/dev/null
case ${spec} in
stage3-lp64d-openrc-23.spec)
upload builds/23.0-default/stage3-rv64_lp64d-openrc-${TIMESTAMP}*.xz*
;;
stage3-lp64d-systemd-23.spec)
upload builds/23.0-default/stage3-rv64_lp64d-systemd-${TIMESTAMP}*.xz*
upsync_binpackages packages/23.0-default/stage3-rv64_lp64d riscv/23.0/rv64_lp64d
;;
stage3-lp64d-musl-23.spec)
upload builds/23.0-musl/stage3-rv64_lp64d_musl-${TIMESTAMP}*.xz*
upsync_binpackages packages/23.0-musl/stage3-rv64_lp64d_musl riscv/23.0/rv64_lp64d_musl
;;
stage3-lp64-openrc-23.spec)
upload builds/23.0-default/stage3-rv64_lp64-openrc-${TIMESTAMP}*.xz*
;;
stage3-lp64-systemd-23.spec)
upload builds/23.0-default/stage3-rv64_lp64-systemd-${TIMESTAMP}*.xz*
upsync_binpackages packages/23.0-default/stage3-rv64_lp64 riscv/23.0/rv64_lp64
;;
stage3-lp64-musl-23.spec)
upload builds/23.0-musl/stage3-rv64_lp64_musl-${TIMESTAMP}*.xz*
upsync_binpackages packages/23.0-musl/stage3-rv64_lp64_musl riscv/23.0/rv64_lp64_musl
;;
stage3-multilib-openrc-23.spec)
upload builds/23.0-default/stage3-rv64_multilib-openrc-${TIMESTAMP}*.xz*
;;
stage3-multilib-systemd-23.spec)
upload builds/23.0-default/stage3-rv64_multilib-systemd-${TIMESTAMP}*.xz*
upsync_binpackages packages/23.0-default/stage3-rv64_multilib riscv/23.0/rv64_multilib
;;
rv32_ilp32d/stage3-ilp32d-openrc-23.spec)
upload builds/23.0-default/stage3-rv32_ilp32d-openrc-${TIMESTAMP}*.xz*
;;
rv32_ilp32d/stage3-ilp32d-systemd-23.spec)
upload builds/23.0-default/stage3-rv32_ilp32d-systemd-${TIMESTAMP}*.xz*
upsync_binpackages packages/23.0-default/stage3-rv32_ilp32d riscv/23.0/rv32_ilp32d
;;
rv32_ilp32d/stage3-ilp32d-musl-23.spec)
upload builds/23.0-musl/stage3-rv32_ilp32d_musl-${TIMESTAMP}*.xz*
upsync_binpackages packages/23.0-musl/stage3-rv32_ilp32d_musl riscv/23.0/rv32_ilp32d_musl
;;
stage3*openrc.spec)
upsync_binpackages packages/default/stage3-rv64_lp64d riscv/20.0/rv64_lp64d
upsync_binpackages packages/default/stage3-rv64_lp64 riscv/20.0/rv64_lp64
upsync_binpackages packages/default/stage3-rv64_multilib riscv/20.0/rv64_multilib
;;
stage3*musl.spec)
upsync_binpackages packages/musl/stage3-rv64_lp64d_musl riscv/20.0/rv64_lp64d_musl
upsync_binpackages packages/musl/stage3-rv64_lp64_musl riscv/20.0/rv64_lp64_musl
;;
*)
echo "Finished ${spec}"
;;
esac
popd >/dev/null
}
|