diff options
| author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2025-11-25 14:18:19 +0100 |
|---|---|---|
| committer | Nicolas Schier <nsc@kernel.org> | 2025-11-26 21:55:40 +0100 |
| commit | c83c9564cd1c0f17008dbe6974fef90225f19d16 (patch) | |
| tree | 46d59e307af8c8350ca23e4b912270058971ae40 | |
| parent | deab487e0f9b39ae4603e22d7d00908ebfc9753c (diff) | |
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>
| -rw-r--r-- | usr/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/Makefile b/usr/Makefile index f1779496bca7..e8f42478a0b7 100644 --- a/usr/Makefile +++ b/usr/Makefile @@ -16,6 +16,8 @@ obj-$(CONFIG_BLK_DEV_INITRD) := initramfs_data.o $(obj)/initramfs_data.o: $(obj)/initramfs_inc_data +hostprogs := gen_init_cpio + ramfs-input := $(CONFIG_INITRAMFS_SOURCE) cpio-data := @@ -48,8 +50,6 @@ ifeq ($(cpio-data),) cpio-data := $(obj)/initramfs_data.cpio -hostprogs := gen_init_cpio - # .initramfs_data.cpio.d is used to identify all files included # in initramfs and to detect if any files are added/removed. # Removed files are identified by directory timestamp being updated |