]> git.karo-electronics.de Git - karo-tx-linux.git/commit
initramfs: read CONFIG_RD_ variables for initramfs compression
authorP J P <ppandit@redhat.com>
Tue, 5 Nov 2013 05:57:04 +0000 (16:57 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 5 Nov 2013 05:57:04 +0000 (16:57 +1100)
commit208a9afce3edb8dcc5aebca6eeec6b46e9d8f10e
tree796256d4df2de2c64a6da59b1534d73508de97b7
parent33175a0e231baee6e475008510fcf3c51e80a69e
initramfs: read CONFIG_RD_ variables for initramfs compression

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: P J P <prasad@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
scripts/gen_initramfs_list.sh
usr/Makefile