Re: [PATCH] kbuild: add target to build a cpio containing modules

From: Simon Glass

Date: Wed Nov 19 2025 - 13:26:09 EST


On Sat, 15 Nov 2025 at 07:31, Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> wrote:
>
> From: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
>
> Add a new package target to build a cpio archive containing the kernel
> modules. This is particularly useful to supplement an existing initramfs
> with the kernel modules so that the root filesystem can be started with
> all needed kernel modules without modifying it.
>
> Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
> Co-developed-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>
> Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>
> ---
> .gitignore | 5 +++++
> Makefile | 2 +-
> scripts/Makefile.package | 17 +++++++++++++++++
> 3 files changed, 23 insertions(+), 1 deletion(-)
>

Reviewed-by: Simon Glass <sjg@xxxxxxxxxxxx>
Tested-by: Simon Glass <sjg@xxxxxxxxxxxx>