2012-12-06 14:00:23 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2014-08-12 15:06:35 +00:00
|
|
|
source common.sh
|
2012-12-06 14:00:23 +00:00
|
|
|
|
|
|
|
prepare_confs() {
|
|
|
|
local arch=$1
|
|
|
|
local flavor=$2
|
|
|
|
|
|
|
|
for s in 1 2 3; do
|
2013-05-20 00:34:10 +00:00
|
|
|
|
|
|
|
local cstage=stage${s}
|
|
|
|
local p=$(( s - 1 ))
|
|
|
|
[[ $p == 0 ]] && p=3
|
|
|
|
local pstage=stage${p}
|
2013-07-15 21:27:41 +00:00
|
|
|
local tarch="${arch%_hardfp}"
|
2013-05-20 00:34:10 +00:00
|
|
|
local parch="arm/${tarch}"
|
2013-07-15 21:27:41 +00:00
|
|
|
local float
|
|
|
|
|
|
|
|
[[ "${arch}" == "${tarch}" ]] \
|
|
|
|
&& float="softfp" \
|
|
|
|
|| float="hardfloat"
|
2013-05-20 00:34:10 +00:00
|
|
|
|
|
|
|
cat stage-all.conf.template | \
|
2013-02-03 14:45:30 +00:00
|
|
|
sed -e "s:\(^version_stamp.*$\):\1-${mydate}:" \
|
2013-05-20 00:34:10 +00:00
|
|
|
-e "s:CSTAGE:${cstage}:g" \
|
|
|
|
-e "s:PSTAGE:${pstage}:g" \
|
|
|
|
-e "s:SARCH:${arch}:g" \
|
|
|
|
-e "s:PARCH:${parch}:g" \
|
|
|
|
-e "s:TARCH:${tarch}:g" \
|
2013-07-15 21:27:41 +00:00
|
|
|
-e "s:gentoo-linux-uclibc:${float}-linux-uclibceabi:" \
|
2013-05-20 00:34:10 +00:00
|
|
|
-e "s:FLAVOR:${flavor}:g" \
|
|
|
|
-e "s:MYCATALYST:$(pwd):g" \
|
|
|
|
> stage${s}-${arch}-uclibc-${flavor}.conf
|
2013-07-15 21:27:41 +00:00
|
|
|
|
|
|
|
sed -i "/^portage_confdir/s:_hardfp::" \
|
|
|
|
stage${s}-${arch}-uclibc-${flavor}.conf
|
|
|
|
|
2012-12-06 14:00:23 +00:00
|
|
|
done
|
2013-05-20 00:34:10 +00:00
|
|
|
|
|
|
|
sed -i "/^chost/d" stage3-${arch}-uclibc-${flavor}.conf
|
2012-12-06 14:00:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
main() {
|
|
|
|
>zzz.log
|
|
|
|
|
2013-06-14 13:29:05 +00:00
|
|
|
catalyst -s current | tee -a zzz.log >snapshot.log 2>snapshot.err
|
2012-12-06 14:00:23 +00:00
|
|
|
|
2013-07-15 21:27:41 +00:00
|
|
|
for arch in armv7a_hardfp armv7a; do
|
2012-12-06 14:00:23 +00:00
|
|
|
for flavor in hardened vanilla; do
|
|
|
|
prepare_confs ${arch} ${flavor}
|
|
|
|
done
|
|
|
|
done
|
2014-08-12 15:06:35 +00:00
|
|
|
|
|
|
|
# No parallelization for arm. Its too hard on the cpu!
|
2013-07-15 21:27:41 +00:00
|
|
|
for arch in armv7a_hardfp armv7a; do
|
2012-12-28 15:49:53 +00:00
|
|
|
for flavor in hardened vanilla; do
|
2013-06-14 13:29:05 +00:00
|
|
|
do_stages ${arch} ${flavor}
|
2014-08-12 15:06:35 +00:00
|
|
|
[[ $? == 1 ]] && echo "FAILURE at ${arch} ${flavor} " | tee zzz.log
|
2012-12-28 15:49:53 +00:00
|
|
|
done
|
|
|
|
done
|
2012-12-06 14:00:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
main $1 &
|