Commit [9ba4bc]  Maximize  Restore  History

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

This patch updates the Makefile to use CONFIG_RD_* variables and adds
support for LZ4 compression algorithm. Also updates the
'' 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 <>
Signed-off-by: Andrew Morton <>
Signed-off-by: Linus Torvalds <>

P J P P J P 2013-11-12

Linus Torvalds Linus Torvalds 2013-11-13

changed scripts/
changed usr/Makefile
scripts/ Diff Switch to side-by-side view
usr/Makefile Diff Switch to side-by-side view

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks