tools-musl: fix when portage_confdir is missing.
This commit is contained in:
parent
124152fc5c
commit
7639bead24
6 changed files with 25 additions and 1 deletions
|
@ -38,6 +38,10 @@ prepare_confs() {
|
|||
echo "cflags: -O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard" >> \
|
||||
stage${s}-${arch}-musl-${flavor}.conf
|
||||
|
||||
portage_confdir=$(grep portage_confdir stage${s}-${arch}-musl-${flavor}.conf \
|
||||
| sed -e 's/^.*://')
|
||||
[[ ! -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue