run kvm instance with the right number of cpus according to given parallel build...
authorAdrian Schröter <adrian@suse.de>
Thu, 10 Jun 2010 07:02:28 +0000 (09:02 +0200)
committerAdrian Schröter <adrian@suse.de>
Thu, 10 Jun 2010 07:03:27 +0000 (09:03 +0200)
build

diff --git a/build b/build
index 7e90b3f..69b7a6f 100755 (executable)
--- a/build
+++ b/build
@@ -993,6 +993,9 @@ if [ "$VM_TYPE" = 'kvm' -a -z "$RUNNING_IN_VM" ]; then
        cleanup_and_exit 3
     fi
     qemu_bin="$kvm_bin"
+    if [ -n "$BUILD_JOBS" ]; then
+        qemu_bin="$kvm_bin -smp $BUILD_JOBS"
+    fi
     if [ -n "$VM_KERNEL" ]; then
        qemu_kernel="$VM_KERNEL"
     fi