setup_board: fix compiling toolchains from scratch

Commit 0d29e735 broke this by not properly initializing the toolchain
ebuild flags when binary packages were disabled.
This commit is contained in:
Michael Marineau 2014-07-20 19:36:51 -07:00
parent 859cea0306
commit 986845608a

View File

@ -259,12 +259,13 @@ if [[ ${FLAGS_regen_configs} -eq ${FLAGS_FALSE} ]]; then
if [[ "${FLAGS_jobs}" -ne -1 ]]; then if [[ "${FLAGS_jobs}" -ne -1 ]]; then
EMERGE_FLAGS+=" --jobs=${FLAGS_jobs}" EMERGE_FLAGS+=" --jobs=${FLAGS_jobs}"
fi fi
EMERGE_TOOLCHAIN_FLAGS="${EMERGE_FLAGS}"
if [[ "${FLAGS_usepkg}" -eq "${FLAGS_TRUE}" && \ if [[ "${FLAGS_usepkg}" -eq "${FLAGS_TRUE}" && \
"${FLAGS_getbinpkg}" -eq "${FLAGS_TRUE}" ]] "${FLAGS_getbinpkg}" -eq "${FLAGS_TRUE}" ]]
then then
EMERGE_FLAGS+=" --usepkg --getbinpkg" EMERGE_FLAGS+=" --usepkg --getbinpkg"
EMERGE_TOOLCHAIN_FLAGS="${EMERGE_FLAGS} --usepkgonly" EMERGE_TOOLCHAIN_FLAGS+=" --usepkgonly"
else else
# When binary packages are disabled we need to make sure the cross # When binary packages are disabled we need to make sure the cross
# sysroot includes any build dependencies for the toolchain. # sysroot includes any build dependencies for the toolchain.