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-16 11:50:58 +0200
commitc5eda95a6c984c581f01ab67c533e04c6ec79792 (patch)
treea0ca5fc50bdfafeda045e8e7a0741fc53ccc52f3
parent83ed0d058a12c486de7d7934fb6eb4c78d42ea8c (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