[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20080407161811.GA19755@p12n.org>
Date: Mon, 7 Apr 2008 11:18:11 -0500
From: Peter Samuelson <peter@...n.org>
To: linux-kernel@...r.kernel.org
Subject: [PATCH] Trivial: change %{_smp_flags} to {?_smp_mflags} in RPM
spec file
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@...n.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/"
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists