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

Ahmad Fatoum posted 2 patches 6 days, 10 hours ago
scripts/Makefile.package | 20 ++++++++++++++++++++
usr/Makefile             |  4 ++--
2 files changed, 22 insertions(+), 2 deletions(-)
[PATCH v2 0/2] kbuild: add target to build a cpio containing modules
Posted by Ahmad Fatoum 6 days, 10 hours ago
---
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@pengutronix.de

---
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@pengutronix.de>
Re: [PATCH v2 0/2] kbuild: add target to build a cpio containing modules
Posted by Nicolas Schier 3 days, 1 hour ago
On Tue, 25 Nov 2025 14:18:18 +0100, Ahmad Fatoum wrote:
> 
> 

Applied, thanks!

[1/2] initramfs: add gen_init_cpio to hostprogs unconditionally
      https://git.kernel.org/kbuild/c/c83c9564
[2/2] kbuild: add target to build a cpio containing modules
      https://git.kernel.org/kbuild/c/2a9c8c0b

Best regards,
-- 
Nicolas
Re: [PATCH v2 0/2] kbuild: add target to build a cpio containing modules
Posted by Thomas Weißschuh 5 days, 16 hours ago
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@pengutronix.de
> 
> ---
> Ahmad Fatoum (1):
>       initramfs: add gen_init_cpio to hostprogs unconditionally
> 
> Sascha Hauer (1):
>       kbuild: add target to build a cpio containing modules

For the series:

Reviewed-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>

> 
>  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@pengutronix.de>
> 
Re: [PATCH v2 0/2] kbuild: add target to build a cpio containing modules
Posted by Nathan Chancellor 5 days, 23 hours ago
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@pengutronix.de
> 
> ---
> 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@pengutronix.de>
> 

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@kernel.org>
Tested-by: Nathan Chancellor <nathan@kernel.org>

Cheers,
Nathan