blob: b1590fa3d290453a8814bc025fa133dac69ee866 (
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
|
# This is the config file for the catalyst-auto script. It should be pretty
# self-explanatory.
UPLOAD_USER=arm
UPLOAD_KEY=/root/.ssh/id_ed25519
host=$(hostname)
SPECS_DIR=${REPO_DIR}/releases/specs/arm
EMAIL_SUBJECT_PREPEND="[arm-auto]"
SETS="
armv4tl_openrc_23
armv4tl_systemd_23
armv5tel_openrc_23
armv5tel_systemd_23
armv6j_hf_openrc_23
armv6j_hf_systemd_23
armv6j_sf_openrc_23
armv6j_sf_systemd_23
armv6j_hf_musl_openrc_23
armv6j_hf_musl_hardened_openrc_23
armv7a_hf_openrc_23
armv7a_hf_systemd_23
armv7a_sf_openrc_23
armv7a_sf_systemd_23
armv7a_hf_musl_openrc_23
armv7a_hf_musl_hardened_openrc_23
"
SET_armv4tl_openrc_23_SPECS="armv4tl/stage1-openrc-23.spec armv4tl/stage3-openrc-23.spec"
SET_armv4tl_systemd_23_SPECS="armv4tl/stage1-systemd-23.spec armv4tl/stage3-systemd-23.spec"
SET_armv5tel_openrc_23_SPECS="armv5tel/stage1-openrc-23.spec armv5tel/stage3-openrc-23.spec"
SET_armv5tel_systemd_23_SPECS="armv5tel/stage1-systemd-23.spec armv5tel/stage3-systemd-23.spec"
SET_armv6j_hf_openrc_23_SPECS="armv6j/stage1-hardfloat-openrc-23.spec armv6j/stage3-hardfloat-openrc-23.spec"
SET_armv6j_hf_systemd_23_SPECS="armv6j/stage1-hardfloat-systemd-23.spec armv6j/stage3-hardfloat-systemd-23.spec"
SET_armv6j_sf_openrc_23_SPECS="armv6j/stage1-openrc-23.spec armv6j/stage3-openrc-23.spec"
SET_armv6j_sf_systemd_23_SPECS="armv6j/stage1-systemd-23.spec armv6j/stage3-systemd-23.spec"
SET_armv6j_hf_musl_openrc_23_SPECS="armv6j-musl/stage1-hardfloat-23.spec armv6j-musl/stage3-hardfloat-23.spec"
SET_armv6j_hf_musl_hardened_openrc_23_SPECS="armv6j-musl-hardened/stage1-hardfloat-23.spec armv6j-musl-hardened/stage3-hardfloat-23.spec"
SET_armv7a_hf_openrc_23_SPECS="armv7a/stage1-hardfloat-openrc-23.spec armv7a/stage3-hardfloat-openrc-23.spec"
SET_armv7a_hf_systemd_23_SPECS="armv7a/stage1-hardfloat-systemd-23.spec armv7a/stage3-hardfloat-systemd-23.spec"
SET_armv7a_sf_openrc_23_SPECS="armv7a/stage1-openrc-23.spec armv7a/stage3-openrc-23.spec"
SET_armv7a_sf_systemd_23_SPECS="armv7a/stage1-systemd-23.spec armv7a/stage3-systemd-23.spec"
SET_armv7a_hf_musl_openrc_23_SPECS="armv7a-musl/stage1-hardfloat-23.spec armv7a-musl/stage3-hardfloat-23.spec"
SET_armv7a_hf_musl_hardened_openrc_23_SPECS="armv7a-musl-hardened/stage1-hardfloat-23.spec armv7a-musl-hardened/stage3-hardfloat-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}/builds/23.0-default" >/dev/null
case ${spec} in
armv4tl/stage3-openrc-23.spec)
upload stage3-armv4tl-openrc-${TIMESTAMP}*.xz*
;;
armv4tl/stage3-systemd-23.spec)
upload stage3-armv4tl-systemd-${TIMESTAMP}*.xz*
upsync_binpackages "${BUILD_SRCDIR_BASE}/packages/23.0-default/stage3-armv4tl" arm/23.0/armv4tl
;;
armv5tel/stage3-openrc-23.spec)
upload stage3-armv5tel-openrc-${TIMESTAMP}*.xz*
;;
armv5tel/stage3-systemd-23.spec)
upload stage3-armv5tel-systemd-${TIMESTAMP}*.xz*
upsync_binpackages "${BUILD_SRCDIR_BASE}/packages/23.0-default/stage3-armv5tel" arm/23.0/armv5tel
;;
armv6j/stage3-openrc-23.spec)
upload stage3-armv6j-openrc-${TIMESTAMP}*.xz*
;;
armv6j/stage3-systemd-23.spec)
upload stage3-armv6j-systemd-${TIMESTAMP}*.xz*
upsync_binpackages "${BUILD_SRCDIR_BASE}/packages/23.0-default/stage3-armv6j" arm/23.0/armv6j_sf
;;
armv6j/stage3-hardfloat-openrc-23.spec)
upload stage3-armv6j_hardfp-openrc-${TIMESTAMP}*.xz*
;;
armv6j/stage3-hardfloat-systemd-23.spec)
upload stage3-armv6j_hardfp-systemd-${TIMESTAMP}*.xz*
upsync_binpackages "${BUILD_SRCDIR_BASE}/packages/23.0-default/stage3-armv6j_hardfp" arm/23.0/armv6j_hf
;;
armv7a/stage3-openrc-23.spec)
upload stage3-armv7a-openrc-${TIMESTAMP}*.xz*
;;
armv7a/stage3-systemd-23.spec)
upload stage3-armv7a-systemd-${TIMESTAMP}*.xz*
upsync_binpackages "${BUILD_SRCDIR_BASE}/packages/23.0-default/stage3-armv7a" arm/23.0/armv7a_sf
;;
armv7a/stage3-hardfloat-openrc-23.spec)
upload stage3-armv7a_hardfp-openrc-${TIMESTAMP}*.xz*
;;
armv7a/stage3-hardfloat-systemd-23.spec)
upload stage3-armv7a_hardfp-systemd-${TIMESTAMP}*.xz*
upsync_binpackages "${BUILD_SRCDIR_BASE}/packages/23.0-default/stage3-armv7a_hardfp" arm/23.0/armv7a_hf
;;
esac
popd >/dev/null
pushd "${BUILD_SRCDIR_BASE}/builds/23.0-musl" >/dev/null
case ${spec} in
armv7a-musl/stage3-hardfloat-23.spec)
upload stage3-armv7a_hardfp_musl-openrc-${TIMESTAMP}*.xz*
upsync_binpackages "${BUILD_SRCDIR_BASE}/packages/23.0-musl/stage3-armv7a_hardfp_musl" arm/23.0/armv7a_hardfp_musl
;;
armv6j-musl/stage3-hardfloat-23.spec)
upload stage3-armv6j_hardfp_musl-openrc-${TIMESTAMP}*.xz*
upsync_binpackages "${BUILD_SRCDIR_BASE}/packages/23.0-musl/stage3-armv6j_hardfp_musl" arm/23.0/armv6j_hardfp_musl
;;
esac
popd >/dev/null
pushd "${BUILD_SRCDIR_BASE}/builds/23.0-musl-hardened" >/dev/null
case ${spec} in
armv7a-musl-hardened/stage3-hardfloat-23.spec)
upload stage3-armv7a_hardfp_musl-hardened-openrc-${TIMESTAMP}*.xz*
upsync_binpackages "${BUILD_SRCDIR_BASE}/packages/23.0-musl-hardened/stage3-armv7a_hardfp_musl" arm/23.0/armv7a_hardfp_musl_hardened
;;
armv6j-musl-hardened/stage3-hardfloat-23.spec)
upload stage3-armv6j_hardfp_musl-hardened-openrc-${TIMESTAMP}*.xz*
upsync_binpackages "${BUILD_SRCDIR_BASE}/packages/23.0-musl-hardened/stage3-armv6j_hardfp_musl" arm/23.0/armv6j_hardfp_musl_hardened
;;
esac
popd >/dev/null
}
|