Skip to content

Commit c83c956

Browse files
a3fNicolas Schier
authored andcommitted
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 <[email protected]> Reviewed-by: Simon Glass <[email protected]> Reviewed-by: Thomas Weißschuh <[email protected]> Reviewed-by: Nathan Chancellor <[email protected]> Tested-by: Nathan Chancellor <[email protected]> Tested-by: Nicolas Schier <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Nicolas Schier <[email protected]>
1 parent deab487 commit c83c956

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

usr/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ obj-$(CONFIG_BLK_DEV_INITRD) := initramfs_data.o
1616

1717
$(obj)/initramfs_data.o: $(obj)/initramfs_inc_data
1818

19+
hostprogs := gen_init_cpio
20+
1921
ramfs-input := $(CONFIG_INITRAMFS_SOURCE)
2022
cpio-data :=
2123

@@ -48,8 +50,6 @@ ifeq ($(cpio-data),)
4850

4951
cpio-data := $(obj)/initramfs_data.cpio
5052

51-
hostprogs := gen_init_cpio
52-
5353
# .initramfs_data.cpio.d is used to identify all files included
5454
# in initramfs and to detect if any files are added/removed.
5555
# Removed files are identified by directory timestamp being updated

0 commit comments

Comments
 (0)