* [PATCH] Trivial: change %{_smp_flags} to {?_smp_mflags} in RPM spec file
@ 2008-04-07 16:18 Peter Samuelson
0 siblings, 0 replies; only message in thread
From: Peter Samuelson @ 2008-04-07 16:18 UTC (permalink / raw)
To: linux-kernel
Trivial: change %{_smp_flags} to {?_smp_mflags} in RPM spec file
Seems to work, though I don't know the spec format well enough to
explain the syntax change.
Signed-off-by: Peter Samuelson <peter@p12n.org>
diff --git a/scripts/package/mkspec b/scripts/package/mkspec
index ffd61fe..3dfbf92 100755
--- a/scripts/package/mkspec
+++ b/scripts/package/mkspec
@@ -57,7 +57,7 @@ fi
echo "%build"
if ! $PREBUILT; then
-echo "make clean && make %{_smp_mflags}"
+echo "make clean && make %{?_smp_mflags}"
echo ""
fi
@@ -68,7 +68,7 @@ echo "%else"
echo 'mkdir -p $RPM_BUILD_ROOT/boot $RPM_BUILD_ROOT/lib/modules'
echo "%endif"
-echo 'INSTALL_MOD_PATH=$RPM_BUILD_ROOT make %{_smp_mflags} modules_install'
+echo 'INSTALL_MOD_PATH=$RPM_BUILD_ROOT make %{?_smp_mflags} modules_install'
echo "%ifarch ia64"
echo 'cp $KBUILD_IMAGE $RPM_BUILD_ROOT'"/boot/efi/vmlinuz-$KERNELRELEASE"
echo 'ln -s '"efi/vmlinuz-$KERNELRELEASE" '$RPM_BUILD_ROOT'"/boot/"
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-04-07 16:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-07 16:18 [PATCH] Trivial: change %{_smp_flags} to {?_smp_mflags} in RPM spec file Peter Samuelson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).