From: Josh Poimboeuf <jpoimboe@kernel.org>
To: Dylan Hatch <dylanbhatch@google.com>
Cc: Miroslav Benes <mbenes@suse.cz>, Petr Mladek <pmladek@suse.com>,
Joe Lawrence <joe.lawrence@redhat.com>,
Song Liu <song@kernel.org>,
live-patching@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] klp-build: Allow passing options to make via '--'
Date: Thu, 12 Nov 2026 10:45:23 -0800 [thread overview]
Message-ID: <avYIsWoMgZxDZsg1@jpoimboe> (raw)
In-Reply-To: <CADBMgpzH8Ogwvr6ORx5PebB=0-2gLNXM96U9=jKa5+PwnapjAA@mail.gmail.com>
On Thu, Nov 12, 2026 at 10:24:49AM -0800, Dylan Hatch wrote:
> On Wed, Nov 11, 2026 at 10:14 PM Josh Poimboeuf <jpoimboe@kernel.org> wrote:
> >
> > On Tue, Nov 03, 2026 at 11:39:09PM +0000, Dylan Hatch wrote:
> > > Livepatch builds rely on reproducing the original kernel build
> > > environment. Currently, klp-build invokes bare 'make', which drops any
> > > command-line variables or flags used during the original build (such as
> > > 'LLVM=1', 'CC=...', 'KBUILD_BUILD_TIMESTAMP=...', or custom wrapper
> > > Makefiles via '-f').
> > >
> > > Refactor the make invocations to use a common MAKE array and allow
> > > passing arbitrary make options after '--' on the klp-build command line:
> > >
> > > klp-build [OPTIONS] PATCH_FILE(s) [-- MAKE_OPTIONS]
> > >
> > > Signed-off-by: Dylan Hatch <dylanbhatch@google.com>
> >
> > Does this enable anything that's not already possible via setting those
> > variables in the environment (or MAKEFLAGS), e.g.:
> >
> > LLVM=1 klp-build
> >
> > ?
>
> Ah, I hadn't tried MAKEFLAGS, thanks for the pointer.
>
> Since Makefiles override env vars by default I had some issues with
> our internal Makefile-based build tool, but trying with MAKEFLAGS it
> does seem to work. In which case, this patch doesn't really add any
> new optionality.
>
> I would argue the [-- MAKE_OPTIONS] still has some value in that it
> makes for a slightly more intuitive command line interface, but that
> is just my subjective opinion.
Yeah, I'm not opposed to that, assuming we don't want to reserve [--]
for some other purpose.
At least the changelog should state that this isn't adding new
functionality, just creating a more ergonomic way to do it.
--
Josh
prev parent reply other threads:[~2026-11-12 18:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-03 23:39 [PATCH] klp-build: Allow passing options to make via '--' Dylan Hatch
2026-11-06 21:16 ` Song Liu
2026-11-12 6:14 ` Josh Poimboeuf
2026-11-12 18:24 ` Dylan Hatch
2026-11-12 18:45 ` Josh Poimboeuf [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=avYIsWoMgZxDZsg1@jpoimboe \
--to=jpoimboe@kernel.org \
--cc=dylanbhatch@google.com \
--cc=joe.lawrence@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=live-patching@vger.kernel.org \
--cc=mbenes@suse.cz \
--cc=pmladek@suse.com \
--cc=song@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox