Commit 88bf234f authored by Lorenzo Martinico's avatar Lorenzo Martinico

Increase speed and memory usage by copying local packages

parent 1e8cb5c7
......@@ -99,7 +99,7 @@ context =
recipe = slapos.recipe.template:jinja2
template = {{ software_dir }}/scripts/cros_full_build.in
rendered = ${directory:run}/cros_full_build
md5sum = 3cb48c8bd4f88c4d2d273c8234bfaa98
md5sum = 184bc327b159b083e8f8a9dd8b63cef9
mode = 0700
context =
key bash_path bin:bash
......
......@@ -97,7 +97,7 @@ git stash
cd ${PORTAGE_STABLE}
git stash
repo sync >> $DL_LOG || { echo "Problem while downloading Chromium OS sources (repo sync). Exiting." ; exit 1 ; }
repo sync -j 12 >> $DL_LOG || { echo "Problem while downloading Chromium OS sources (repo sync). Exiting." ; exit 1 ; }
############################## Prepare chroot environment ###################################
......@@ -311,7 +311,7 @@ for board in ${BOARDS} ; do
# preparing packages (for chroot and image)
date >> "${BUILD_LOG}"
echo "building packages for a ${board}-flavoured Chromium OS..." >> "${BUILD_LOG}"
cros_sdk --nouse-image -- ./build_packages --board=${board} >> "${BUILD_LOG}"
cros_sdk --nouse-image -- ./build_packages --reuse_pkgs_from_local_boards --board=${board} >> "${BUILD_LOG}"
# change boot pictures
cros_sdk -- cros_workon --board=${board} start chromiumos-assets
......
......@@ -28,7 +28,7 @@ recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/instance.cfg
rendered = ${buildout:directory}/instance.cfg
mode = 0644
md5sum = 6a82f0eb7bc36c76aa66de19367bc6dd
md5sum = 39b2dcfd8feb54926626a813874994d3
context =
key software_dir :_profile_base_location_
key instance_dir buildout:directory
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment