linux: enable initrd/initramfs support when cpio rootfs is chosen
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 29 Dec 2013 17:33:45 +0000 (18:33 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 29 Dec 2013 17:58:26 +0000 (18:58 +0100)
commited23c92b6267ac1ae4c118ecc6196fe019541141
tree6087d3041d4b507078edc164c1d865e19014cdd9
parent015e8f2bd1800695f57e655904a6a674f0ef3e70
linux: enable initrd/initramfs support when cpio rootfs is chosen

When one enables the generation of a cpio archive of the root
filesystem, the most likely usage is as an initramfs for the
kernel. This commit ensures that the kernel has initramfs support when
the rootfs cpio image format is chosen.

This will for example ensure that if the user selects the ISO9660
filesystem format (which uses a cpio initramfs), the kernel will have
proper support to load and use the initramfs.

It is worth mentionning that when BR2_TARGET_ROOTFS_INITRAMFS is
enabled, then BR2_TARGET_ROOTFS_CPIO is always enabled. That's why we
move the enabling of CONFIG_BLK_DEV_INITRD from the initramfs case to
the cpio case.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
linux/linux.mk