[lkml]   [1998]   [Mar]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: compile problems with the kernel
>   "Marty Leisner" <> 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. :-/

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.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to

 \ /
  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