All of lore.kernel.org
 help / color / mirror / Atom feed
From: William Lee Irwin III <wli@holomorphy.com>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org, Sam Ravnborg <sam@ravnborg.org>
Subject: [scripts] pass %{_smp_mflags} to make(1) in scripts/package/mkspec
Date: Tue, 7 Sep 2004 14:58:46 -0700	[thread overview]
Message-ID: <20040907215846.GR3106@holomorphy.com> (raw)
In-Reply-To: <20040907141741.58174cfd.akpm@osdl.org>

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"

  reply	other threads:[~2004-09-07 21:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-07 16:45 2.6.9-rc1-mm4 Martin J. Bligh
2004-09-07 20:13 ` 2.6.9-rc1-mm4 Sam Ravnborg
2004-09-07 21:17 ` 2.6.9-rc1-mm4 Andrew Morton
2004-09-07 21:58   ` William Lee Irwin III [this message]
2004-09-08 23:20     ` [scripts] pass %{_smp_mflags} to make(1) in scripts/package/mkspec Sam Ravnborg
2004-09-09 14:27   ` 2.6.9-rc1-mm4 Martin J. Bligh
2004-09-09 17:57     ` 2.6.9-rc1-mm4 Nick Piggin
2004-09-07 21:29 ` 2.6.9-rc1-mm4 Sam Ravnborg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040907215846.GR3106@holomorphy.com \
    --to=wli@holomorphy.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sam@ravnborg.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.