Messages in this thread Patch in this message | | | Date | Tue, 7 Sep 2004 14:58:46 -0700 | From | William Lee Irwin III <> | Subject | [scripts] pass %{_smp_mflags} to make(1) in scripts/package/mkspec |
| |
On Tue, Sep 07, 2004 at 02:17:41PM -0700, Andrew Morton wrote: > Yes, I get them too, with make -j6(ish). I used to get tons of these > warnings, but it stopped happening maybe a year ago. It looks like Sam > found a way to bring it back ;)
This appears to have a specific effect, which is that make -j$N rpm in fact runs single-threaded. I've been using the following patch on SuSE and RedHat systems for a while.
This patch passes %{_smp_mflags} to various build phases in scripts/package/mkspec so that -j$N is honored by make rpm.
-- wli
Index: mm2-2.6.8-rc2/scripts/package/mkspec =================================================================== --- mm2-2.6.8-rc2.orig/scripts/package/mkspec 2004-08-02 03:03:55.000000000 -0700 +++ mm2-2.6.8-rc2/scripts/package/mkspec 2004-08-03 06:23:08.000000000 -0700 @@ -57,14 +57,14 @@ echo "%build" if ! $PREBUILT; then -echo "make clean && make" +echo "make clean && make %{_smp_mflags}" echo "" fi echo "%install" echo 'mkdir -p $RPM_BUILD_ROOT/boot $RPM_BUILD_ROOT/lib $RPM_BUILD_ROOT/lib/modules' -echo 'INSTALL_MOD_PATH=$RPM_BUILD_ROOT make modules_install' +echo 'INSTALL_MOD_PATH=$RPM_BUILD_ROOT make %{_smp_mflags} modules_install' echo 'cp $KBUILD_IMAGE $RPM_BUILD_ROOT'"/boot/vmlinuz-$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION" echo 'cp System.map $RPM_BUILD_ROOT'"/boot/System.map-$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION" - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |