diff options
author | P J P <ppandit@redhat.com> | 2013-11-13 00:10:22 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-11-13 04:09:26 +0100 |
commit | 9ba4bcb645898d562498ea66a0df958ef0e7a68c (patch) | |
tree | 20befe80438adaec351eff0eb1f225d0b3df0963 /scripts/sortextable.c | |
parent | init: make init failures more explicit (diff) | |
download | linux-9ba4bcb645898d562498ea66a0df958ef0e7a68c.tar.xz linux-9ba4bcb645898d562498ea66a0df958ef0e7a68c.zip |
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/sortextable.c')
0 files changed, 0 insertions, 0 deletions