]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
initramfs: add gen_init_cpio to hostprogs unconditionally
authorAhmad Fatoum <a.fatoum@pengutronix.de>
Tue, 25 Nov 2025 13:18:19 +0000 (14:18 +0100)
committerNicolas Schier <nsc@kernel.org>
Wed, 26 Nov 2025 20:55:40 +0000 (21:55 +0100)
commitc83c9564cd1c0f17008dbe6974fef90225f19d16
tree46d59e307af8c8350ca23e4b912270058971ae40
parentdeab487e0f9b39ae4603e22d7d00908ebfc9753c
initramfs: add gen_init_cpio to hostprogs unconditionally

gen_init_cpio is currently only needed when an initramfs cpio archive is
to be created out of CONFIG_INITRAMFS_SOURCE's contents. In other cases,
it's not added to hostprogs and no make target is available.

In preparation to use the host program from Makefile.package, define it
unconditionally. The program will still only be built as needed.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Tested-by: Nathan Chancellor <nathan@kernel.org>
Tested-by: Nicolas Schier <nsc@kernel.org>
Link: https://patch.msgid.link/20251125-cpio-modules-pkg-v2-1-aa8277d89682@pengutronix.de
Signed-off-by: Nicolas Schier <nsc@kernel.org>
usr/Makefile