From: Mike Frysinger Date: Sat, 3 Nov 2012 04:55:49 +0000 (-0400) Subject: build pkgs in parallel, and build gdb too X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=172c5eb6e0b60058c68f5f30630635f8e736f0d5;p=home.git build pkgs in parallel, and build gdb too --- diff --git a/.bin/cros-setup-chroot b/.bin/cros-setup-chroot index cee4c77..a09a095 100755 --- a/.bin/cros-setup-chroot +++ b/.bin/cros-setup-chroot @@ -1,5 +1,6 @@ #!/bin/bash set -ex +ncpus=$(getconf _NPROCESSORS_ONLN) cd ${1:-~/chromiumos} chr=${PWD}/chroot chome=${chr}/home/vapier @@ -35,7 +36,8 @@ pkgs=() [[ -L ${chr}/usr/bin/esearch ]] || pkgs+=( esearch ) [[ -x ${chr}/usr/bin/strace ]] || pkgs+=( strace ) [[ -x ${chr}/usr/bin/time ]] || pkgs+=( time ) +[[ -x ${chr}/usr/bin/gdb ]] || pkgs+=( sys-devel/gdb ) [[ -x ${chr}/usr/bin/diffstat ]] || pkgs+=( diffstat ) -[[ ${#pkgs[@]} -eq 0 ]] || cros_sdk -- sudo emerge -1 ${pkgs[@]} +[[ ${#pkgs[@]} -eq 0 ]] || cros_sdk -- sudo emerge -1q --jobs ${ncpus} ${pkgs[@]} sudo sed -i -e '/^# inc/s:^# *::' ${chr}/etc/nanorc