aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2013-02-18 11:49:53 -0500
committerKevin O'Connor <kevin@koconnor.net>2013-02-18 11:49:53 -0500
commit4cf2067f7cbf42be809e40e98a34cd00897667b0 (patch)
tree5ba7b4ef9486188c878d58196dd3ac6ea8b2f181
parent41fb363927bf31e3e999fad970d155a0fe5f4e76 (diff)
downloadseabios-4cf2067f7cbf42be809e40e98a34cd00897667b0.tar.gz
Disable handle_post() on CSM builds.
This reduces the size of the CSM binary by a few bytes. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r--src/post.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/post.c b/src/post.c
index cf0d9b4..7f096de 100644
--- a/src/post.c
+++ b/src/post.c
@@ -313,6 +313,9 @@ dopost(void)
void VISIBLE32FLAT
handle_post(void)
{
+ if (!CONFIG_QEMU && !CONFIG_COREBOOT)
+ return;
+
debug_serial_preinit();
dprintf(1, "Start bios (version %s)\n", VERSION);