From 35e669e1a254e8b60d4a8983205b383666cc01ca Mon Sep 17 00:00:00 2001 From: Francisco Blas Izquierdo Riera (klondike) Date: Wed, 14 Dec 2016 15:06:01 -0800 Subject: 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) Cc: P J P Cc: Paul Bolle Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- usr/Kconfig | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'usr/Kconfig') 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 "" -- cgit v1.2.3-55-g7522