Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Ahmad Fatoum and committed by
Nicolas Schier
c83c9564 deab487e

+2 -2
+2 -2
usr/Makefile
··· 16 16 17 17 $(obj)/initramfs_data.o: $(obj)/initramfs_inc_data 18 18 19 + hostprogs := gen_init_cpio 20 + 19 21 ramfs-input := $(CONFIG_INITRAMFS_SOURCE) 20 22 cpio-data := 21 23 ··· 49 47 ifeq ($(cpio-data),) 50 48 51 49 cpio-data := $(obj)/initramfs_data.cpio 52 - 53 - hostprogs := gen_init_cpio 54 50 55 51 # .initramfs_data.cpio.d is used to identify all files included 56 52 # in initramfs and to detect if any files are added/removed.