tools-musl: improve armv7a/arm64 scripts
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
This commit is contained in:
parent
9db71fcb29
commit
189b629168
|
@ -6,6 +6,8 @@ prepare_confs() {
|
||||||
local flavor=$1
|
local flavor=$1
|
||||||
local arch="arm64"
|
local arch="arm64"
|
||||||
local tarch="aarch64"
|
local tarch="aarch64"
|
||||||
|
local profile="default/linux/arm64/17.0/musl"
|
||||||
|
[[ "${flavor}" == "hardened" ]] && profile="${profile}/hardened"
|
||||||
|
|
||||||
for s in 1 2 3; do
|
for s in 1 2 3; do
|
||||||
local cstage=stage${s}
|
local cstage=stage${s}
|
||||||
|
@ -13,9 +15,6 @@ prepare_confs() {
|
||||||
[[ $p == 0 ]] && p=3
|
[[ $p == 0 ]] && p=3
|
||||||
local pstage=stage${p}
|
local pstage=stage${p}
|
||||||
|
|
||||||
local profile="default/linux/arm64/17.0/musl"
|
|
||||||
[[ "${flavor}" == "hardened" ]] && profile="${profile}/hardened"
|
|
||||||
|
|
||||||
cat stage.conf.template | \
|
cat stage.conf.template | \
|
||||||
sed -e "s:\(^version_stamp.*$\):\1-${mydate}:" \
|
sed -e "s:\(^version_stamp.*$\):\1-${mydate}:" \
|
||||||
-e "s:CSTAGE:${cstage}:g" \
|
-e "s:CSTAGE:${cstage}:g" \
|
||||||
|
@ -43,17 +42,16 @@ prepare_confs() {
|
||||||
main() {
|
main() {
|
||||||
>zzz.log
|
>zzz.log
|
||||||
|
|
||||||
# catalyst -s current | tee -a zzz.log >snapshot.log 2>snapshot.err
|
catalyst -s current | tee -a zzz.log >snapshot.log 2>snapshot.err
|
||||||
|
|
||||||
for flavor in hardened vanilla; do
|
for flavor in hardened vanilla; do
|
||||||
prepare_confs ${flavor}
|
prepare_confs ${flavor}
|
||||||
done
|
done
|
||||||
|
|
||||||
# No parallelization for arm64. Its too hard on the cpu!
|
for flavor in hardened vanilla; do
|
||||||
# for flavor in hardened vanilla; do
|
do_stages ${flavor}
|
||||||
# do_stages ${flavor}
|
[[ $? == 1 ]] && echo "FAILURE at ${arch} ${flavor} " | tee zzz.log
|
||||||
# [[ $? == 1 ]] && echo "FAILURE at ${arch} ${flavor} " | tee zzz.log
|
done
|
||||||
# done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main $1 &
|
main $1 &
|
||||||
|
|
|
@ -3,36 +3,27 @@
|
||||||
source common.sh
|
source common.sh
|
||||||
|
|
||||||
prepare_confs() {
|
prepare_confs() {
|
||||||
local arch=$1
|
local flavor=$1
|
||||||
local flavor=$2
|
local arch="armv7a_hardfp"
|
||||||
|
local tarch="armv7a"
|
||||||
|
local profile="default/linux/arm/17.0/musl/armv7a"
|
||||||
|
[[ "${flavor}" == "hardened" ]] && profile="${profile}/hardened"
|
||||||
|
|
||||||
for s in 1 2 3; do
|
for s in 1 2 3; do
|
||||||
|
|
||||||
local cstage=stage${s}
|
local cstage=stage${s}
|
||||||
local p=$(( s - 1 ))
|
local p=$(( s - 1 ))
|
||||||
[[ $p == 0 ]] && p=3
|
[[ $p == 0 ]] && p=3
|
||||||
local pstage=stage${p}
|
local pstage=stage${p}
|
||||||
local tarch="${arch%_hardfp}"
|
|
||||||
local parch="arm/${tarch}"
|
|
||||||
local float
|
|
||||||
|
|
||||||
[[ "${arch}" == "${tarch}" ]] \
|
|
||||||
&& float="softfp" \
|
|
||||||
|| float="hardfloat"
|
|
||||||
|
|
||||||
local profile=${flavor}
|
|
||||||
[[ "${flavor}" == "vanilla" ]] && profile="default"
|
|
||||||
|
|
||||||
cat stage.conf.template | \
|
cat stage.conf.template | \
|
||||||
sed -e "s:\(^version_stamp.*$\):\1-${mydate}:" \
|
sed -e "s:\(^version_stamp.*$\):\1-${mydate}:" \
|
||||||
-e "s:CSTAGE:${cstage}:g" \
|
-e "s:CSTAGE:${cstage}:g" \
|
||||||
-e "s:PSTAGE:${pstage}:g" \
|
-e "s:PSTAGE:${pstage}:g" \
|
||||||
-e "s:SARCH:${arch}:g" \
|
-e "s:SARCH:${arch}:g" \
|
||||||
-e "s:PARCH:${parch}:g" \
|
|
||||||
-e "s:TARCH:${tarch}:g" \
|
-e "s:TARCH:${tarch}:g" \
|
||||||
-e "s:gentoo-linux-musl:${float}-linux-musleabi:" \
|
|
||||||
-e "s:FLAVOR:${flavor}:g" \
|
-e "s:FLAVOR:${flavor}:g" \
|
||||||
-e "s:PROFILE:${profile}:g" \
|
-e "s:gentoo-linux-musl:hardfloat-linux-musleabi:" \
|
||||||
|
-e "s:^profile\:.*:profile\: ${profile}:" \
|
||||||
-e "s:MYCATALYST:$(pwd):g" \
|
-e "s:MYCATALYST:$(pwd):g" \
|
||||||
> stage${s}-${arch}-musl-${flavor}.conf
|
> stage${s}-${arch}-musl-${flavor}.conf
|
||||||
|
|
||||||
|
@ -57,19 +48,14 @@ main() {
|
||||||
|
|
||||||
catalyst -s current | tee -a zzz.log >snapshot.log 2>snapshot.err
|
catalyst -s current | tee -a zzz.log >snapshot.log 2>snapshot.err
|
||||||
|
|
||||||
for arch in armv7a_hardfp; do
|
|
||||||
for flavor in hardened vanilla; do
|
for flavor in hardened vanilla; do
|
||||||
prepare_confs ${arch} ${flavor}
|
prepare_confs ${flavor}
|
||||||
done
|
|
||||||
done
|
done
|
||||||
|
|
||||||
# No parallelization for arm. Its too hard on the cpu!
|
|
||||||
for arch in armv7a_hardfp; do
|
|
||||||
for flavor in hardened vanilla; do
|
for flavor in hardened vanilla; do
|
||||||
do_stages ${arch} ${flavor}
|
do_stages ${flavor}
|
||||||
[[ $? == 1 ]] && echo "FAILURE at ${arch} ${flavor} " | tee zzz.log
|
[[ $? == 1 ]] && echo "FAILURE at ${arch} ${flavor} " | tee zzz.log
|
||||||
done
|
done
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main $1 &
|
main $1 &
|
||||||
|
|
Loading…
Reference in a new issue