[PATCH 0/2] Move tool for generating initramfs cpio to scripts/
From: Nicolas Schier
Date: Mon Mar 09 2026 - 03:58:46 EST
initramfs cpio tools had been subject of several recent discussions on
linux-kbuild. Let's get two minor steps forward by enabling a
top-level target for building gen_init_cpio w/o the need of a valid
kbuild configuration [1] and move the tools for generating the builtin
initramfs from usr/ to scripts/ [2].
Link: https://lore.kernel.org/all/20260220191150.244006-1-safinaskar@xxxxxxxxx # [1]
Link: https://lore.kernel.org/all/aSdrCFkUQup3qb-q@xxxxxxxxxxxxxxxx/ # [2]
---
Nicolas Schier (2):
kbuild: Mark usr_gen_init_cpio as no-dot-config-target
kbuild: Move gen_init_cpio and gen_initramfs.sh to scripts/
MAINTAINERS | 1 +
Makefile | 9 +++++----
scripts/.gitignore | 1 +
scripts/Makefile | 2 ++
{usr => scripts}/gen_init_cpio.c | 0
{usr => scripts}/gen_initramfs.sh | 2 +-
scripts/remove-stale-files | 2 ++
usr/.gitignore | 4 +++-
usr/Makefile | 4 +---
9 files changed, 16 insertions(+), 9 deletions(-)
---
base-commit: 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
change-id: 20260225-move-gen_init_cpio-to-scripts-9e89ef99e51a
Best regards,
--
Nicolas