diff options
author | Myles Watson <mylesgw@gmail.com> | 2008-02-25 18:32:23 +0000 |
---|---|---|
committer | Myles Watson <mylesgw@gmail.com> | 2008-02-25 18:32:23 +0000 |
commit | e20ec3e33b494235b7daa48b609f7eca2cf8a8d9 (patch) | |
tree | 4a2e39c5438009f91ff96ab62909fac2e49f2ee2 /Kconfig | |
parent | a5b80d49f519952e9a219f49bada52e0a7a0cb26 (diff) | |
download | coreboot-e20ec3e33b494235b7daa48b609f7eca2cf8a8d9.tar.gz coreboot-e20ec3e33b494235b7daa48b609f7eca2cf8a8d9.tar.bz2 coreboot-e20ec3e33b494235b7daa48b609f7eca2cf8a8d9.zip |
This is the part of the parse ELF patch that affects the coreboot build. It
makes the default to parse the ELF, but leaves ELF parsing available. It
doesn't include the removal of the per-file option "nocompress".
Signed-off-by: Myles Watson <mylesgw@gmail.com>
The coreboot part looks OK and is
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
git-svn-id: svn://coreboot.org/repository/coreboot-v3@620 f3766cd6-281f-0410-b1cd-43a5c92072e9
Diffstat (limited to 'Kconfig')
-rw-r--r-- | Kconfig | 48 |
1 files changed, 24 insertions, 24 deletions
@@ -96,29 +96,6 @@ choice prompt "Payload type" default PAYLOAD_NONE -config PAYLOAD_PREPARSE_ELF - bool "Pre-parse ELF file and convert ELF segments to LAR entries" - depends EXPERT - default n - help - Until now, coreboot has used ELF for the payload. There are many - problems with this, not least being the inefficiency -- the ELF has - to be decompressed to memory and then the segments have to be - copied. Plus, lar can't see the segments in the ELF -- to see all - segments, you have to extract the ELF and run readelf on it. - - There are problems with collisions of the decompressed ELF - location in memory and the segment locations in memory. - Finally, validation of the ELF is done at run time, once you have - flashed the FLASH and rebooted the machine. Boot time is really - not the time you want to find out your ELF payload is broken. - - With this option, coreboot will direct lar to break each ELF - segment into a LAR entry. ELF will not be used at all. Note that - (for now) coreboot is backward compatible -- if you put an ELF - payload in, coreboot can still parse it. We hope to remove ELF - entirely in the future. - config PAYLOAD_ELF bool "An ELF executable payload file" help @@ -143,10 +120,33 @@ endchoice config PAYLOAD_FILE string "Payload path and filename" - depends PAYLOAD_ELF || PAYLOAD_PREPARSE_ELF + depends PAYLOAD_ELF default "payload.elf" help The path and filename of the ELF executable file to use as payload. +config PAYLOAD_PREPARSE_ELF + bool "Pre-parse ELF file and convert ELF segments to LAR entries" + depends PAYLOAD_ELF + default y + help + Until now, coreboot has used ELF for the payload. There are many + problems with this, not least being the inefficiency -- the ELF has + to be decompressed to memory and then the segments have to be + copied. Plus, lar can't see the segments in the ELF -- to see all + segments, you have to extract the ELF and run readelf on it. + + There are problems with collisions of the decompressed ELF + location in memory and the segment locations in memory. + Finally, validation of the ELF is done at run time, once you have + flashed the FLASH and rebooted the machine. Boot time is really + not the time you want to find out your ELF payload is broken. + + With this option, coreboot will direct lar to break each ELF + segment into a LAR entry. ELF will not be used at all. Note that + (for now) coreboot is not backward compatible -- if you put an ELF + payload in, coreboot can not parse it. We hope to remove ELF + entirely in the future. + endmenu |