1 |
commit: 9db71fcb2991472c19e590a2a555408d38799cef |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 10 23:45:27 2019 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 10 23:46:00 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/releng.git/commit/?id=9db71fcb |
7 |
|
8 |
tools-musl: add arm64 scripts |
9 |
|
10 |
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> |
11 |
|
12 |
tools-musl/portage.arm64.hardened/.keep | 0 |
13 |
tools-musl/portage.arm64.hardened/package.use/pam | 1 + |
14 |
tools-musl/portage.arm64.vanilla/.keep | 0 |
15 |
tools-musl/portage.arm64.vanilla/package.use/pam | 1 + |
16 |
tools-musl/run-arm64.sh | 59 +++++++++++++++++++++++ |
17 |
5 files changed, 61 insertions(+) |
18 |
|
19 |
diff --git a/tools-musl/portage.arm64.hardened/.keep b/tools-musl/portage.arm64.hardened/.keep |
20 |
new file mode 100644 |
21 |
index 00000000..e69de29b |
22 |
|
23 |
diff --git a/tools-musl/portage.arm64.hardened/package.use/pam b/tools-musl/portage.arm64.hardened/package.use/pam |
24 |
new file mode 100644 |
25 |
index 00000000..0ce1211a |
26 |
--- /dev/null |
27 |
+++ b/tools-musl/portage.arm64.hardened/package.use/pam |
28 |
@@ -0,0 +1 @@ |
29 |
+sys-libs/pam cracklib |
30 |
|
31 |
diff --git a/tools-musl/portage.arm64.vanilla/.keep b/tools-musl/portage.arm64.vanilla/.keep |
32 |
new file mode 100644 |
33 |
index 00000000..e69de29b |
34 |
|
35 |
diff --git a/tools-musl/portage.arm64.vanilla/package.use/pam b/tools-musl/portage.arm64.vanilla/package.use/pam |
36 |
new file mode 100644 |
37 |
index 00000000..0ce1211a |
38 |
--- /dev/null |
39 |
+++ b/tools-musl/portage.arm64.vanilla/package.use/pam |
40 |
@@ -0,0 +1 @@ |
41 |
+sys-libs/pam cracklib |
42 |
|
43 |
diff --git a/tools-musl/run-arm64.sh b/tools-musl/run-arm64.sh |
44 |
new file mode 100755 |
45 |
index 00000000..af6d49bd |
46 |
--- /dev/null |
47 |
+++ b/tools-musl/run-arm64.sh |
48 |
@@ -0,0 +1,59 @@ |
49 |
+#!/bin/bash |
50 |
+ |
51 |
+source common.sh |
52 |
+ |
53 |
+prepare_confs() { |
54 |
+ local flavor=$1 |
55 |
+ local arch="arm64" |
56 |
+ local tarch="aarch64" |
57 |
+ |
58 |
+ for s in 1 2 3; do |
59 |
+ local cstage=stage${s} |
60 |
+ local p=$(( s - 1 )) |
61 |
+ [[ $p == 0 ]] && p=3 |
62 |
+ local pstage=stage${p} |
63 |
+ |
64 |
+ local profile="default/linux/arm64/17.0/musl" |
65 |
+ [[ "${flavor}" == "hardened" ]] && profile="${profile}/hardened" |
66 |
+ |
67 |
+ cat stage.conf.template | \ |
68 |
+ sed -e "s:\(^version_stamp.*$\):\1-${mydate}:" \ |
69 |
+ -e "s:CSTAGE:${cstage}:g" \ |
70 |
+ -e "s:PSTAGE:${pstage}:g" \ |
71 |
+ -e "s:SARCH:${arch}:g" \ |
72 |
+ -e "s:TARCH:${tarch}:g" \ |
73 |
+ -e "s:FLAVOR:${flavor}:g" \ |
74 |
+ -e "s:^profile\:.*:profile\: ${profile}:" \ |
75 |
+ -e "s:MYCATALYST:$(pwd):g" \ |
76 |
+ > stage${s}-${arch}-musl-${flavor}.conf |
77 |
+ |
78 |
+ sed -i "/^portage_confdir/s:_hardfp::" \ |
79 |
+ stage${s}-${arch}-musl-${flavor}.conf |
80 |
+ |
81 |
+ portage_confdir=$(grep portage_confdir stage${s}-${arch}-musl-${flavor}.conf \ |
82 |
+ | sed -e 's/^.*:[ \t]*//') |
83 |
+ [[ ! -e ${portage_confdir} ]] && sed -i -e '/^portage_confdir/d' \ |
84 |
+ stage${s}-${arch}-musl-${flavor}.conf |
85 |
+ done |
86 |
+ |
87 |
+ sed -i "/^chost/d" stage3-${arch}-musl-${flavor}.conf |
88 |
+} |
89 |
+ |
90 |
+ |
91 |
+main() { |
92 |
+ >zzz.log |
93 |
+ |
94 |
+# catalyst -s current | tee -a zzz.log >snapshot.log 2>snapshot.err |
95 |
+ |
96 |
+ for flavor in hardened vanilla; do |
97 |
+ prepare_confs ${flavor} |
98 |
+ done |
99 |
+ |
100 |
+ # No parallelization for arm64. Its too hard on the cpu! |
101 |
+# for flavor in hardened vanilla; do |
102 |
+# do_stages ${flavor} |
103 |
+# [[ $? == 1 ]] && echo "FAILURE at ${arch} ${flavor} " | tee zzz.log |
104 |
+# done |
105 |
+} |
106 |
+ |
107 |
+main $1 & |