]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
dont hardcode the numbers of CPUs
authorHolger Levsen <holger@layer-acht.org>
Mon, 31 Oct 2011 18:21:46 +0000 (19:21 +0100)
committerHolger Levsen <holger@layer-acht.org>
Mon, 31 Oct 2011 18:21:46 +0000 (19:21 +0100)
build-oot.sh

index 73ef97440e0f45561cf568ed1e4b4e1a2589dfca..90adb928fde44d484134ffd0d0e5568f48c65a16 100755 (executable)
@@ -72,7 +72,7 @@ EFO
         cp /boot/config-*-$PB_FLAVOUR .config
         make prepare
         make modules_prepare
-       /usr/bin/make-kpkg -j 25 --arch amd64 --rootcmd fakeroot --append-to-version -profitbricks-$PB_FLAVOUR --initrd --arch_in_name  modules
+       /usr/bin/make-kpkg -j \$(grep processor /proc/cpuinfo |wc -l) --arch amd64 --rootcmd fakeroot --append-to-version -profitbricks-$PB_FLAVOUR --initrd --arch_in_name  modules
 
         cd /usr/src/
         ls *deb