diff options
author | Dean Sanner <dsanner@us.ibm.com> | 2019-06-17 07:14:35 -0500 |
---|---|---|
committer | William G Hoffa <wghoffa@us.ibm.com> | 2019-07-25 13:59:23 -0500 |
commit | cd1e5c91e4a15ca933c699553ece9b841825ac03 (patch) | |
tree | a0cbcda16f0a35c33aeb1faedcd31aa52df4f307 /src/build/mkrules/cflags.env.mk | |
parent | 0d622822edb081334fcd7cf258c46d667175eeea (diff) | |
download | talos-hostboot-cd1e5c91e4a15ca933c699553ece9b841825ac03.tar.gz talos-hostboot-cd1e5c91e4a15ca933c699553ece9b841825ac03.zip |
Compile Hostboot with -Os
Hostboot currently spends a significant percentage of
time loading data from PNOR across a relatively slow LPC
bus. This commit enables compilation of Hostboot with
-Os, optimized for space to reduce the amount of data required
to be transferred across the LPC bus
Rough measurements show a ~30% size reduction of the hostboot
image and a ~10% reduction (improvement) in boot time
Change-Id: Ib140e6f07b112ae95a901f49b75416ef91c94a9d
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/79059
Reviewed-by: Nicholas E Bofferding <bofferdn@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Reviewed-by: Zachary Clark <zach@ibm.com>
Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com>
Reviewed-by: William G Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/build/mkrules/cflags.env.mk')
-rw-r--r-- | src/build/mkrules/cflags.env.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build/mkrules/cflags.env.mk b/src/build/mkrules/cflags.env.mk index 04ff6fedd..e1d36c190 100644 --- a/src/build/mkrules/cflags.env.mk +++ b/src/build/mkrules/cflags.env.mk @@ -28,7 +28,7 @@ # Description: # Configuration of the compiler, linker, etc. flags. -OPT_LEVEL ?= -O3 +OPT_LEVEL ?= -Os ifdef MODULE COMMONFLAGS += -fPIC -Bsymbolic -Bsymbolic-functions |