• P J P's avatar
    initramfs: read CONFIG_RD_ variables for initramfs compression · 9ba4bcb6
    P J P authored
    When expert configuration option(CONFIG_EXPERT) is enabled, menuconfig
    offers a choice of compression algorithm to compress initial ramfs image;
    This choice is stored into CONFIG_RD_* variables.  But usr/Makefile uses
    earlier INITRAMFS_COMPRESSION_* macros to build initial ramfs file.  Since
    none of them is defined, resulting 'initramfs_data.cpio' file remains
    un-compressed.
    
    This patch updates the Makefile to use CONFIG_RD_* variables and adds
    support for LZ4 compression algorithm.  Also updates the
    'gen_initramfs_list.sh' script to check whether a selected compression
    command is accessible or not.  And fall-back to default gzip(1)
    compression when it is not.
    Signed-off-by: default avatarP J P <prasad@redhat.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    9ba4bcb6
Name
Last commit
Last update
..
.gitignore Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...
gen_init_cpio.c Loading commit data...
initramfs_data.S Loading commit data...