diff options
author | Francisco Blas Izquierdo Riera (klondike) <klondike@klondike.es> | 2016-12-14 15:06:01 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-12-14 16:04:08 -0800 |
commit | 35e669e1a254e8b60d4a8983205b383666cc01ca (patch) | |
tree | e08553ab2cf9e0f19e44eff03f8cae1e77604bb9 /usr/Kconfig | |
parent | 34aaff40b42148b23dcde40152480e25c7d2d759 (diff) | |
download | linux-35e669e1a254e8b60d4a8983205b383666cc01ca.tar.gz linux-35e669e1a254e8b60d4a8983205b383666cc01ca.tar.bz2 linux-35e669e1a254e8b60d4a8983205b383666cc01ca.zip |
initramfs: select builtin initram compression algorithm on KConfig instead of Makefile
Move the current builtin initram compression algorithm selection from
the Makefile into the INITRAMFS_COMPRESSION variable. This makes
deciding algorithm precedence easier and would allow for overrides if
new algorithms want to be tested.
Link: http://lkml.kernel.org/r/57EAD769.1090401@klondike.es
Signed-off-by: Francisco Blas Izquierdo Riera (klondike) <klondike@klondike.es>
Cc: P J P <ppandit@redhat.com>
Cc: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'usr/Kconfig')
-rw-r--r-- | usr/Kconfig | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/usr/Kconfig b/usr/Kconfig index 572dcf7b6a44..bf8e8f15358f 100644 --- a/usr/Kconfig +++ b/usr/Kconfig @@ -98,3 +98,13 @@ config RD_LZ4 help Support loading of a LZ4 encoded initial ramdisk or cpio buffer If unsure, say N. + +config INITRAMFS_COMPRESSION + string + default ".gz" if RD_GZIP + default ".lz4" if RD_LZ4 + default ".lzo" if RD_LZO + default ".xz" if RD_XZ + default ".lzma" if RD_LZMA + default ".bz2" if RD_BZIP2 + default "" |