tools-musl: add arm64 scripts
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
This commit is contained in:
parent
0af725155e
commit
9db71fcb29
5 changed files with 61 additions and 0 deletions
0
tools-musl/portage.arm64.hardened/.keep
Normal file
0
tools-musl/portage.arm64.hardened/.keep
Normal file
1
tools-musl/portage.arm64.hardened/package.use/pam
Normal file
1
tools-musl/portage.arm64.hardened/package.use/pam
Normal file
|
@ -0,0 +1 @@
|
|||
sys-libs/pam cracklib
|
0
tools-musl/portage.arm64.vanilla/.keep
Normal file
0
tools-musl/portage.arm64.vanilla/.keep
Normal file
1
tools-musl/portage.arm64.vanilla/package.use/pam
Normal file
1
tools-musl/portage.arm64.vanilla/package.use/pam
Normal file
|
@ -0,0 +1 @@
|
|||
sys-libs/pam cracklib
|
59
tools-musl/run-arm64.sh
Executable file
59
tools-musl/run-arm64.sh
Executable file
|
@ -0,0 +1,59 @@
|
|||
#!/bin/bash
|
||||
|
||||
source common.sh
|
||||
|
||||
prepare_confs() {
|
||||
local flavor=$1
|
||||
local arch="arm64"
|
||||
local tarch="aarch64"
|
||||
|
||||
for s in 1 2 3; do
|
||||
local cstage=stage${s}
|
||||
local p=$(( s - 1 ))
|
||||
[[ $p == 0 ]] && p=3
|
||||
local pstage=stage${p}
|
||||
|
||||
local profile="default/linux/arm64/17.0/musl"
|
||||
[[ "${flavor}" == "hardened" ]] && profile="${profile}/hardened"
|
||||
|
||||
cat stage.conf.template | \
|
||||
sed -e "s:\(^version_stamp.*$\):\1-${mydate}:" \
|
||||
-e "s:CSTAGE:${cstage}:g" \
|
||||
-e "s:PSTAGE:${pstage}:g" \
|
||||
-e "s:SARCH:${arch}:g" \
|
||||
-e "s:TARCH:${tarch}:g" \
|
||||
-e "s:FLAVOR:${flavor}:g" \
|
||||
-e "s:^profile\:.*:profile\: ${profile}:" \
|
||||
-e "s:MYCATALYST:$(pwd):g" \
|
||||
> stage${s}-${arch}-musl-${flavor}.conf
|
||||
|
||||
sed -i "/^portage_confdir/s:_hardfp::" \
|
||||
stage${s}-${arch}-musl-${flavor}.conf
|
||||
|
||||
portage_confdir=$(grep portage_confdir stage${s}-${arch}-musl-${flavor}.conf \
|
||||
| sed -e 's/^.*:[ \t]*//')
|
||||
[[ ! -e ${portage_confdir} ]] && sed -i -e '/^portage_confdir/d' \
|
||||
stage${s}-${arch}-musl-${flavor}.conf
|
||||
done
|
||||
|
||||
sed -i "/^chost/d" stage3-${arch}-musl-${flavor}.conf
|
||||
}
|
||||
|
||||
|
||||
main() {
|
||||
>zzz.log
|
||||
|
||||
# catalyst -s current | tee -a zzz.log >snapshot.log 2>snapshot.err
|
||||
|
||||
for flavor in hardened vanilla; do
|
||||
prepare_confs ${flavor}
|
||||
done
|
||||
|
||||
# No parallelization for arm64. Its too hard on the cpu!
|
||||
# for flavor in hardened vanilla; do
|
||||
# do_stages ${flavor}
|
||||
# [[ $? == 1 ]] && echo "FAILURE at ${arch} ${flavor} " | tee zzz.log
|
||||
# done
|
||||
}
|
||||
|
||||
main $1 &
|
Loading…
Add table
Reference in a new issue