lkml.org 
[lkml]   [1998]   [Mar]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: compile problems with the kernel
Date
From
>   "Marty Leisner" <leisner@sdsp.mc.xerox.com> writes:
> > Why don't we just leave make alone
> > (so you can do
> >
> > make -j 2
> > like you normally do instead of
> > make MAKE='make -j 2'
>
> Easy, because the main Make just does a
> for i in $SUBDIRS; do $MAKE -C $$i; done
> which cannot be parallelized unless you somehow propagate the -j into the
> submake, which standard GNU make cannot do because it doesn't have a
> central "how many jobs are currently running" counter.
>
> Adding such a thing is basically impossible, unfortunately, unless you want
> to reimplement a /bin/sh parser inside Make. :-/
>

Urrm...
man semop(2).
It would appear SysV semaphores are all that you need to "correctly" implement
parallel make over multiple directories (the semaphore counts the number of
running jobs thereby maintaining the limit). Whether it's worth the effort is
another matter.

t



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.405 / U:0.268 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site