1 |
commit: 1ce3bc7326a9cd27e341d2d94462c80acc770bf5 |
2 |
Author: Matthew Thode <mthode <AT> mthode <DOT> org> |
3 |
AuthorDate: Fri Dec 1 22:53:39 2017 +0000 |
4 |
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 1 22:53:39 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/releng.git/commit/?id=1ce3bc73 |
7 |
|
8 |
arm64 stage building |
9 |
|
10 |
this is steev's work |
11 |
|
12 |
releases/weekly/specs/arm64/stage1.spec | 9 ++++++ |
13 |
releases/weekly/specs/arm64/stage2.spec | 8 ++++++ |
14 |
releases/weekly/specs/arm64/stage3.spec | 8 ++++++ |
15 |
tools/catalyst-auto-arm64.conf | 49 +++++++++++++++++++++++++++++++++ |
16 |
4 files changed, 74 insertions(+) |
17 |
|
18 |
diff --git a/releases/weekly/specs/arm64/stage1.spec b/releases/weekly/specs/arm64/stage1.spec |
19 |
new file mode 100644 |
20 |
index 00000000..dfe2203b |
21 |
--- /dev/null |
22 |
+++ b/releases/weekly/specs/arm64/stage1.spec |
23 |
@@ -0,0 +1,9 @@ |
24 |
+subarch: arm64 |
25 |
+version_stamp: 2008.0 |
26 |
+target: stage1 |
27 |
+rel_type: default |
28 |
+profile: default/linux/arm64/13.0 |
29 |
+snapshot: 2008.0 |
30 |
+source_subpath: default/stage3-arm64-latest |
31 |
+pkgcache_path: /var/tmp/catalyst/packages/stage1 |
32 |
+update_seed: yes |
33 |
|
34 |
diff --git a/releases/weekly/specs/arm64/stage2.spec b/releases/weekly/specs/arm64/stage2.spec |
35 |
new file mode 100644 |
36 |
index 00000000..65d7d49a |
37 |
--- /dev/null |
38 |
+++ b/releases/weekly/specs/arm64/stage2.spec |
39 |
@@ -0,0 +1,8 @@ |
40 |
+subarch: arm64 |
41 |
+version_stamp: 2008.0 |
42 |
+target: stage2 |
43 |
+rel_type: default |
44 |
+profile: default/linux/arm64/13.0 |
45 |
+snapshot: 2008.0 |
46 |
+source_subpath: default/stage1-arm64-2008.0 |
47 |
+pkgcache_path: /var/tmp/catalyst/packages/stage2 |
48 |
|
49 |
diff --git a/releases/weekly/specs/arm64/stage3.spec b/releases/weekly/specs/arm64/stage3.spec |
50 |
new file mode 100644 |
51 |
index 00000000..6b1a6692 |
52 |
--- /dev/null |
53 |
+++ b/releases/weekly/specs/arm64/stage3.spec |
54 |
@@ -0,0 +1,8 @@ |
55 |
+subarch: arm64 |
56 |
+version_stamp: 2008.0 |
57 |
+target: stage3 |
58 |
+rel_type: default |
59 |
+profile: default/linux/arm64/13.0 |
60 |
+snapshot: 2008.0 |
61 |
+source_subpath: default/stage2-arm64-2008.0 |
62 |
+pkgcache_path: /var/tmp/catalyst/packages/stage3 |
63 |
|
64 |
diff --git a/tools/catalyst-auto-arm64.conf b/tools/catalyst-auto-arm64.conf |
65 |
new file mode 100644 |
66 |
index 00000000..bede1247 |
67 |
--- /dev/null |
68 |
+++ b/tools/catalyst-auto-arm64.conf |
69 |
@@ -0,0 +1,49 @@ |
70 |
+# This is the config file for the catalyst-auto script. It should be pretty |
71 |
+# self-explanatory. |
72 |
+ |
73 |
+REPO_DIR=/root/releng/ |
74 |
+ |
75 |
+SPECS_DIR=${REPO_DIR}/releases/weekly/specs/arm64 |
76 |
+SUBARCH=`grep subarch $SPECS_DIR/stage1.spec | awk '{print $2}'` |
77 |
+ |
78 |
+SETS="default" |
79 |
+ |
80 |
+SET_default_SPECS="stage1.spec stage2.spec stage3.spec" |
81 |
+#SET_default_OPTIONAL_SPECS="installcd-stage1.spec installcd-stage2-minimal.spec" |
82 |
+ |
83 |
+#KCONFIG_DIR=${REPO_DIR}/releases/weekly/kconfig/sparc |
84 |
+ |
85 |
+EMAIL_SUBJECT_PREPEND="[${SUBARCH}-auto]" |
86 |
+ |
87 |
+give_latest_from_dates() { |
88 |
+ sed 's,-20,~20,g' | \ |
89 |
+ sort -k +1 -n -t '~' |\ |
90 |
+ awk -F\~ \ |
91 |
+ 'BEGIN{i=$1; o=$0}; |
92 |
+ { if($1 != i && i != "") { print o; }; i=$1; o=$0; } |
93 |
+ END { print o; };' | \ |
94 |
+ tr '~' '-' |
95 |
+} |
96 |
+ |
97 |
+ |
98 |
+pre_build() { |
99 |
+ cd ${REPO_DIR} |
100 |
+ git pull |
101 |
+ |
102 |
+ # Symlink the latest stages3 to build from |
103 |
+ for d in ${BUILD_SRCDIR_BASE}/builds/default ; do |
104 |
+ pushd $d |
105 |
+ for f in $(ls stage3-${SUBARCH}-*bz2 | grep -v latest | give_latest_from_dates ) ; do |
106 |
+ of=${f/20[0-9][0-9].[0-9]/latest} # for 20XX.Y stuff |
107 |
+ of=${of/20[0-9][0-9][0-1][0-9][0-9][0-9]/latest} # for $ |
108 |
+ ln -sf $f $of |
109 |
+ done |
110 |
+ popd |
111 |
+ done |
112 |
+} |
113 |
+ |
114 |
+ |
115 |
+post_build() { |
116 |
+ rsync -e 'ssh -i /root/.ssh/id_rsa' ${BUILD_SRCDIR_BASE}/builds/default/stage3-${SUBARCH}-*${DATESTAMP}*.tar.bz2* arm@×××××××××××××××××.org: |
117 |
+ # Need to update this still. |
118 |
+} |