1 |
commit: 1e2d304a58a1d39f82985fb7a6f35372f473cc4d |
2 |
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 21 12:58:27 2022 +0000 |
4 |
Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 21 12:58:27 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/releng.git/commit/?id=1e2d304a |
7 |
|
8 |
Add mips autocatalyst file |
9 |
|
10 |
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org> |
11 |
|
12 |
tools/catalyst-auto-mips.conf | 44 +++++++++++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 44 insertions(+) |
14 |
|
15 |
diff --git a/tools/catalyst-auto-mips.conf b/tools/catalyst-auto-mips.conf |
16 |
new file mode 100644 |
17 |
index 00000000..93055aa7 |
18 |
--- /dev/null |
19 |
+++ b/tools/catalyst-auto-mips.conf |
20 |
@@ -0,0 +1,44 @@ |
21 |
+# This is the config file for the catalyst-auto script. It should be pretty |
22 |
+# self-explanatory. |
23 |
+ |
24 |
+UPLOAD_USER=mips |
25 |
+UPLOAD_KEY=/root/.ssh/id_rsa |
26 |
+SPECS_DIR=${REPO_DIR}/releases/specs-qemu/mips |
27 |
+ |
28 |
+ |
29 |
+SETS="mips64len64" |
30 |
+ |
31 |
+SET_mips64len64_SPECS="stage1-mips64le-n64-openrc.spec stage3-mips64le-n64-openrc.spec" |
32 |
+ |
33 |
+KCONFIG_DIR=${REPO_DIR}/releases/kconfig/mips |
34 |
+ |
35 |
+ |
36 |
+update_symlinks() { |
37 |
+ # Symlink the latest stages3 to build from |
38 |
+ local d f |
39 |
+ for d in "${BUILD_SRCDIR_BASE}/builds/default" ; do |
40 |
+ pushd "${d}" >/dev/null |
41 |
+ for f in $(ls stage3*xz | grep -v latest | give_latest_from_dates) ; do |
42 |
+ local of=$(echo "${f}" | convert_filename) |
43 |
+ ln -sf "${f}" "${of}" |
44 |
+ done |
45 |
+ popd >/dev/null |
46 |
+ done |
47 |
+} |
48 |
+ |
49 |
+post_build() { |
50 |
+ local set=$1 spec=$2 |
51 |
+ |
52 |
+ pushd "${BUILD_SRCDIR_BASE}/builds/default" >/dev/null |
53 |
+ |
54 |
+ case ${spec} in |
55 |
+ stage3-mips64le-n64-openrc.spec) |
56 |
+ upload stage3-mips64le_n64-openrc-${TIMESTAMP}.xz* |
57 |
+ ;; |
58 |
+ *) |
59 |
+ echo "Finished ${spec}" |
60 |
+ ;; |
61 |
+ esac |
62 |
+ |
63 |
+ popd >/dev/null |
64 |
+} |