mediatek: switch to use seperate ramdisk for initramfs images
authorDaniel Golle <daniel@makrotopia.org>
Thu, 25 Feb 2021 14:51:41 +0000 (14:51 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 25 Feb 2021 16:39:55 +0000 (16:39 +0000)
commit198385b69de14494e282035a2293fc253f839864
tree4887a76ff325c6524b8216cca20260989533c132
parent45c0e0ee419f678cf995127cef38093b974727d6
mediatek: switch to use seperate ramdisk for initramfs images

MediaTek targets always use U-Boot's modern uImage.FIT format which
allows bundling several blobs into a single file including hashes,
descriptions and more. In fact, we are already using that to bundle
the Flattened Device Tree blob with the kernel on this and many
other targets.
In the same fashion, we can now make use of the newly introduced
support for building seperate ramdisk to uImage.FIT with a dedicated
initrd blob checked and loaded by U-Boot instead of embedding the
cpio archive into the kernel itself.
This allows for having larger ramdisks, choosing ramdisk compression
independently of kernel compression (while only kernel is decompressed
by the bootloader) and for more easily replacing or modifying the
filesystem contained in an initramfs image.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/mediatek/Makefile
target/linux/mediatek/image/Makefile