summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSven Schnelle <svens@stackframe.org>2011-05-02 19:53:04 +0000
committerSven Schnelle <svens@stackframe.org>2011-05-02 19:53:04 +0000
commit8eee19d0eafd3a34742df4d26c810424097211fe (patch)
tree32d7e6a6e0fc459a9e92f9907e201dcb94023fab /src
parent4ee7d80e06a206a248a265348669b78150ba059d (diff)
downloadcoreboot-8eee19d0eafd3a34742df4d26c810424097211fe.tar.xz
Add option 'compress ramstage'
Add an option to make compression of ramstage configurable. Right now it is always compressed. On my Thinkpad, the complete boot to grub takes 4s, with around 1s required for decompressing ramstage. This is probably caused by the fact the decompression does a lot of single byte/word/qword accesses, which are really slow on SPI buses. So give the user the option to store ramstage uncompressed, if he has enough memory. Signed-off-by: Sven Schnelle <svens@stackframe.org> Acked-by: Patrick Georgi <patrick@georgi-clan.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6552 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src')
-rw-r--r--src/Kconfig8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Kconfig b/src/Kconfig
index 76e77f8401..9abbc2169d 100644
--- a/src/Kconfig
+++ b/src/Kconfig
@@ -98,6 +98,14 @@ config USE_OPTION_TABLE
Enable this option if coreboot shall read options from the "CMOS"
NVRAM instead of using hard coded values.
+config COMPRESS_RAMSTAGE
+ bool "Compress ramstage with LZMA"
+ default y
+ help
+ Compress ramstage to save memory in the flash image. Note
+ that decompression might slow down booting if the boot flash
+ is connected through a slow Link (i.e. SPI)
+
endmenu
source src/mainboard/Kconfig