tools-musl: add support for powerpc
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
This commit is contained in:
parent
ebb7aacb35
commit
266b474a59
15
tools-musl/portage.ppc.vanilla/bashrc
Normal file
15
tools-musl/portage.ppc.vanilla/bashrc
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
post_src_install() {
|
||||||
|
[[ $PN != musl ]] && return 0
|
||||||
|
|
||||||
|
local LDSO_ARCH=$(basename "${D}"/lib/ld-musl-*.so.1)
|
||||||
|
mkdir "${D}"/etc
|
||||||
|
cat <<- EOF > "${D}"/etc/${LDSO_ARCH%so.1}path
|
||||||
|
/lib
|
||||||
|
/usr/lib
|
||||||
|
/usr/local/lib
|
||||||
|
/usr/lib/opengl/xorg-x11/lib
|
||||||
|
/usr/lib/gcc/${CHOST}/4.7.4
|
||||||
|
/usr/${CHOST}/lib
|
||||||
|
/usr/games/lib
|
||||||
|
EOF
|
||||||
|
}
|
1
tools-musl/portage.ppc.vanilla/package.accept_keywords
Normal file
1
tools-musl/portage.ppc.vanilla/package.accept_keywords
Normal file
|
@ -0,0 +1 @@
|
||||||
|
=sys-devel/gettext-0.19.2 ~amd64 ~arm ~x86 ~ppc
|
2
tools-musl/portage.ppc.vanilla/package.use
Normal file
2
tools-musl/portage.ppc.vanilla/package.use
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
sys-devel/gettext -nls
|
||||||
|
sys-fs/e2fsprogs -nls
|
1
tools-musl/portage.ppc.vanilla/profile/use.mask
Normal file
1
tools-musl/portage.ppc.vanilla/profile/use.mask
Normal file
|
@ -0,0 +1 @@
|
||||||
|
hardened
|
56
tools-musl/run-ppc.sh
Executable file
56
tools-musl/run-ppc.sh
Executable file
|
@ -0,0 +1,56 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
source common.sh
|
||||||
|
|
||||||
|
prepare_confs() {
|
||||||
|
local arch=$1
|
||||||
|
local flavor=$2
|
||||||
|
|
||||||
|
for s in 1 2 3; do
|
||||||
|
|
||||||
|
local cstage=stage${s}
|
||||||
|
local p=$(( s - 1 ))
|
||||||
|
[[ $p == 0 ]] && p=3
|
||||||
|
local pstage=stage${p}
|
||||||
|
local parch="${arch}"
|
||||||
|
|
||||||
|
local tarch="${arch}"
|
||||||
|
[[ "${arch}" == "ppc" ]] && tarch="powerpc"
|
||||||
|
|
||||||
|
cat stage-all.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:PARCH:${parch}:g" \
|
||||||
|
-e "s:TARCH:${tarch}:g" \
|
||||||
|
-e "s:FLAVOR:${flavor}:g" \
|
||||||
|
-e "s:MYCATALYST:$(pwd):g" \
|
||||||
|
> 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 arch in ppc; do
|
||||||
|
for flavor in vanilla; do
|
||||||
|
prepare_confs ${arch} ${flavor}
|
||||||
|
done
|
||||||
|
done
|
||||||
|
|
||||||
|
# No parallelization
|
||||||
|
for arch in ppc; do
|
||||||
|
for flavor in vanilla; do
|
||||||
|
do_stages ${arch} ${flavor}
|
||||||
|
[[ $? == 1 ]] && echo "FAILURE at ${arch} ${flavor} " | tee zzz.log
|
||||||
|
done
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
main $1 &
|
Loading…
Reference in a new issue