Re: [PATCH] klp-build: Allow passing options to make via '--'
From: Josh Poimboeuf
Date: Thu Nov 12 2026 - 01:15:15 EST
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@xxxxxxxxxx>
Does this enable anything that's not already possible via setting those
variables in the environment (or MAKEFLAGS), e.g.:
LLVM=1 klp-build
?
--
Josh