Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f16466af authored by Vasily Gorbik's avatar Vasily Gorbik Committed by Martin Schwidefsky
Browse files

init/Kconfig: add an option for uncompressed kernel



Add "None" as the kernel compression mode.

This option is useful for debugging the kernel in slow simulation
environments, where decompressing and moving the kernel is awfully slow.

Uncompressed kernel implementation might allow early boot code to skip the
decompressor and jump right at uncompressed kernel image entry point.

Platforms implementing that should define HAVE_KERNEL_UNCOMPRESSED.

Reviewed-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent c98b6c67
Loading
Loading
Loading
Loading
+14 −1
Original line number Original line Diff line number Diff line
@@ -125,10 +125,13 @@ config HAVE_KERNEL_LZO
config HAVE_KERNEL_LZ4
config HAVE_KERNEL_LZ4
	bool
	bool


config HAVE_KERNEL_UNCOMPRESSED
	bool

choice
choice
	prompt "Kernel compression mode"
	prompt "Kernel compression mode"
	default KERNEL_GZIP
	default KERNEL_GZIP
	depends on HAVE_KERNEL_GZIP || HAVE_KERNEL_BZIP2 || HAVE_KERNEL_LZMA || HAVE_KERNEL_XZ || HAVE_KERNEL_LZO || HAVE_KERNEL_LZ4
	depends on HAVE_KERNEL_GZIP || HAVE_KERNEL_BZIP2 || HAVE_KERNEL_LZMA || HAVE_KERNEL_XZ || HAVE_KERNEL_LZO || HAVE_KERNEL_LZ4 || HAVE_KERNEL_UNCOMPRESSED
	help
	help
	  The linux kernel is a kind of self-extracting executable.
	  The linux kernel is a kind of self-extracting executable.
	  Several compression algorithms are available, which differ
	  Several compression algorithms are available, which differ
@@ -207,6 +210,16 @@ config KERNEL_LZ4
	  is about 8% bigger than LZO. But the decompression speed is
	  is about 8% bigger than LZO. But the decompression speed is
	  faster than LZO.
	  faster than LZO.


config KERNEL_UNCOMPRESSED
	bool "None"
	depends on HAVE_KERNEL_UNCOMPRESSED
	help
	  Produce uncompressed kernel image. This option is usually not what
	  you want. It is useful for debugging the kernel in slow simulation
	  environments, where decompressing and moving the kernel is awfully
	  slow. This option allows early boot code to skip the decompressor
	  and jump right at uncompressed kernel image.

endchoice
endchoice


config DEFAULT_HOSTNAME
config DEFAULT_HOSTNAME