All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alejandro Colomar <alx@kernel.org>
To: "Lorenzo Stoakes (ARM)" <ljs@kernel.org>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>,  linux-man@vger.kernel.org
Subject: Re: [PATCH v1] share/mk/: Use suffix rules where possible
Date: Tue, 15 Sep 2026 22:40:50 +0200	[thread overview]
Message-ID: <aqmsP8qsBabv3N-J@devuan> (raw)
In-Reply-To: <aqlyACy8rjSC2GiI@gremlin>

[-- Attachment #1: Type: text/plain, Size: 1835 bytes --]


Hi Lorenzo,

> Date: 2026-09-15 17:47:59+0100
> From: "Lorenzo Stoakes (ARM)" <ljs@kernel.org>
>
[...]
> > From what I've seen, the kernel seems to use regular 'pattern rules'
> > extensively.  I wonder if moving to 'static pattern rules' would bring
> > a benefit similar to the one we experience in the Linux man-pages
> > project.
> 
> Hmm intersting :)
> 
> I think the kernel is complicated by a lot of 'flexibility' in the build
> process.
> 
> And probably simplifying it is difficult in some cases.

Yup.

> > Another important thing is that the build system of the Linux man-pages
> > uses a single make(1) process to build (i.e., we don't use recursive
> > make(1)).  That makes it parallelize better.  I'm not sure whether the
> > kernel makefiles are recursive (for the main build) and how much that
> > affects the kernel build.  It might be something to check too, as I
> > remember it was very impactful.  Recursive make(1) is considered harmful
> > by some (I agree, IME).
> 
> Yeah I don't think that's at all feasible for the kernel :)

I think it should be possible.  At least, it could be reduced
significantly.

> Ideally we'd use something other than GNU make honestly.

I'd suggest to keep GNU make(1).  Well written GNU makefiles can be
quite fast.  And being makefiles, they're relatively easy to read (like
with C, it depends on how weird you want to go), at least to some
degree.

Something I love from the kernel (and which I've also done in the
man-pages) is that it's a single-step build system.  Multi-step
(configure, etc.) build systems are consistently a nightmare, IME.

> But it's a step at a time based on what's actually feasible I think, so
> low-hanging fruit first!

:-)


Have a lovely day!
Alex

-- 
<https://www.alejandro-colomar.es>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      reply	other threads:[~2026-09-15 20:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-30 14:51 [PATCH v1] share/mk/: Use suffix rules where possible Alejandro Colomar
2026-08-30 16:55 ` Alejandro Colomar
2026-09-11 17:54   ` Alejandro Colomar
2026-09-11 18:00     ` Alejandro Colomar
2026-09-15 16:47     ` Lorenzo Stoakes (ARM)
2026-09-15 20:40       ` Alejandro Colomar [this message]

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=aqmsP8qsBabv3N-J@devuan \
    --to=alx@kernel.org \
    --cc=linux-man@vger.kernel.org \
    --cc=ljs@kernel.org \
    --cc=lorenzo.stoakes@oracle.com \
    /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.