Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlaf Hering <ohering@suse.de>2011-06-16 11:27:44 +0200
committerOlaf Hering <ohering@suse.de>2011-06-20 17:33:46 +0200
commitb4cf18c45990e567ebdab666e24e82d78ef3707d (patch)
treee4459d89daa445b78309cce426c4ec52221bcb1e
parent82f4a5d0dd526d77bd221a368e70d1670b455dea (diff)
rpm/kernel-binary.spec.in:
Update comment, get the number of cpus from /proc/stat
-rw-r--r--rpm/kernel-binary.spec.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpm/kernel-binary.spec.in b/rpm/kernel-binary.spec.in
index 25a63eae10..e12b25e65b 100644
--- a/rpm/kernel-binary.spec.in
+++ b/rpm/kernel-binary.spec.in
@@ -291,10 +291,10 @@ fi
# With plain rpmbuild:
# rpmbuild -ba --define 'jobs N' kernel-$flavor.spec
# To spawn as many jobs as there are cpu cores:
-# rpmbuild -ba --define "jobs 0$(grep -c ^processor /proc/cpuinfo)" \
+# rpmbuild -ba --define "jobs 0$(grep -Ec 'cpu[0-9]' /proc/stat)" \
# kernel-$flavor.spec
# You can also set this permanently in ~/.rpmmacros:
-# %jobs 0%(grep -c ^processor /proc/cpuinfo)
+# %jobs 0%(grep -Ec 'cpu[0-9]' /proc/stat)
%if %CONFIG_KMSG_IDS == "y"
chmod +x ../linux-%srcversion/scripts/kmsg-doc
make %{?jobs:-j%jobs} all $MAKE_ARGS CONFIG_DEBUG_SECTION_MISMATCH=y D=2