From 172c5eb6e0b60058c68f5f30630635f8e736f0d5 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 3 Nov 2012 00:55:49 -0400 Subject: [PATCH] build pkgs in parallel, and build gdb too --- .bin/cros-setup-chroot | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.5