Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlaf Hering <ohering@suse.de>2011-06-16 11:50:58 +0200
committerOlaf Hering <ohering@suse.de>2011-06-20 17:34:15 +0200
commit1009eafb161338d35128e34445bb52f5bb5679dd (patch)
tree978fde172d13c1022c8cde9dd6a9967dd437c059
parentb4cf18c45990e567ebdab666e24e82d78ef3707d (diff)
rpm/kernel-binary.spec.in:
jobs is not defined for home: projects, use the new _smp_mflags to enable parallel build
-rw-r--r--rpm/kernel-binary.spec.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/rpm/kernel-binary.spec.in b/rpm/kernel-binary.spec.in
index e12b25e65b..c1d46b30c2 100644
--- a/rpm/kernel-binary.spec.in
+++ b/rpm/kernel-binary.spec.in
@@ -284,22 +284,22 @@ if test -e %my_builddir/kabi/%cpu_arch/symtypes-%build_flavor; then
%_sourcedir/modversions --unpack . < $_
fi
-# If the %jobs macro is defined to a number, make will spawn that many jobs.
+# The %{_smp_mflags} macro is defined to a number, make will spawn that many jobs.
# There are several ways how to define it:
# If you are using the build script:
# build --jobs=N kernel-$flavor.spec
# 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 -Ec 'cpu[0-9]' /proc/stat)" \
+# rpmbuild -ba --define "%_smp_mflags -j 0$(grep -Ec 'cpu[0-9]' /proc/stat)" \
# kernel-$flavor.spec
# You can also set this permanently in ~/.rpmmacros:
-# %jobs 0%(grep -Ec 'cpu[0-9]' /proc/stat)
+# %_smp_mflags -j 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
+ make %{?_smp_mflags} all $MAKE_ARGS CONFIG_DEBUG_SECTION_MISMATCH=y D=2
%else
- make %{?jobs:-j%jobs} all $MAKE_ARGS CONFIG_DEBUG_SECTION_MISMATCH=y
+ make %{?_smp_mflags} all $MAKE_ARGS CONFIG_DEBUG_SECTION_MISMATCH=y
%endif