Install make.globals and create make.profile directory

Some mod_for_test images don't have the files necessary to run
emerge.  Install them.

BUG=none
TEST=Rerun package install

Review URL: http://codereview.chromium.org/3351016
This commit is contained in:
Paul Stewart 2010-09-09 20:04:11 -07:00
parent bc2aaf67f8
commit 12973e562d

View File

@ -402,6 +402,10 @@ update_dev_packages() {
--usepkgonly --depclean ${EMERGE_JOBS}
fi
# Install the bare necessary files so that the "emerge" command works
sudo cp ${root_dev_dir}/etc/make.globals ${ROOT_FS_DIR}/etc/
sudo mkdir -p ${ROOT_FS_DIR}/etc/make.profile
# Re-run ldconfig to fix /etc/ldconfig.so.cache.
sudo /sbin/ldconfig -r "${ROOT_FS_DIR}"