Re: [PATCH v2 0/2] kbuild: add target to build a cpio containing modules

From: Nathan Chancellor
Date: Tue Nov 25 2025 - 18:56:35 EST


On Tue, Nov 25, 2025 at 02:18:18PM +0100, Ahmad Fatoum wrote:
>
> ---
> Changes in v2:
> - Add Simon's Tested-by and Reviewed-by
> - rename to modules-cpio-pkg (Nathan)
> - add separator/doc comment heading (Thomas)
> - Make temp directory ignoring and cleanup automatic (Thomas)
> - Use CONFIG_SHELL instead of shebang (Thomas)
> - Use -o instead of redirecting stdout when creating cpio (Thomas)
> - Drop superfluous -f as $(build)= overrides it (Thomas)
> - Add extra preparatory patch that makes hostprogs := gen_init_cpio
> unconditional
> - Link to v1: https://lore.kernel.org/r/20251115-cpio-modules-pkg-v1-1-01d5a0748442@xxxxxxxxxxxxxx
>
> ---
> Ahmad Fatoum (1):
> initramfs: add gen_init_cpio to hostprogs unconditionally
>
> Sascha Hauer (1):
> kbuild: add target to build a cpio containing modules
>
> scripts/Makefile.package | 20 ++++++++++++++++++++
> usr/Makefile | 4 ++--
> 2 files changed, 22 insertions(+), 2 deletions(-)
> ---
> base-commit: e9a6fb0bcdd7609be6969112f3fbfcce3b1d4a7c
> change-id: 20251115-cpio-modules-pkg-70d85a69892b
>
> Best regards,
> --
> Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>
>

Thanks a lot for implementing all of Thomas's suggestions (and thanks to
him for providing them). This series looks good to me and I can imagine
this being quite useful for testing.

Reviewed-by: Nathan Chancellor <nathan@xxxxxxxxxx>
Tested-by: Nathan Chancellor <nathan@xxxxxxxxxx>

Cheers,
Nathan