From 60d8f51800a94d7603639e8b694e0ea476706412 Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Tue, 10 Sep 2013 13:07:32 -0700 Subject: Unroll loops for all firmware platforms Unrolling loops shaves 20ms off pit ro boot time. This option was enabled before but inadvertently got disabled for ARM. BUG=chrome-os-partner:2115 BRANCH=pit TEST=manual Build for pit, see that code size increases slignly but RO boot time drops by about 24ms. Original size: text data bss dec hex filename 422482 17580 334796 774858 bd2ca b/chromeos_peach/u-boot 14938 1111 0 16049 3eb1 b/chromeos_peach/spl/u-boot-spl New size: 429322 17580 334788 781690 bed7a b/chromeos_peach/u-boot 14938 1111 0 16049 3eb1 b/chromeos_peach/spl/u-boot-spl Change-Id: I1ded0ed3369de9d72220112b92c322777d1ba2d5 Signed-off-by: Simon Glass Signed-off-by: Vadim Bendebury Reviewed-on: https://chromium-review.googlesource.com/168803 Reviewed-by: Randall Spangler --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 403b4d62..7d0956a4 100644 --- a/Makefile +++ b/Makefile @@ -626,10 +626,12 @@ ${FWLIB_OBJS}: CFLAGS += -DTPM_BLOCKING_CONTINUESELFTEST # CFLAGS += -DTPM_MANUAL_SELFTEST -ifeq (${FIRMWARE_ARCH},i386) +ifneq (${FIRMWARE_ARCH},) # Unrolling loops in cryptolib makes it faster ${FWLIB_OBJS}: CFLAGS += -DUNROLL_LOOPS +endif +ifeq (${FIRMWARE_ARCH},i386) # Workaround for coreboot on x86, which will power off asynchronously # without giving us a chance to react. This is not an example of the Right # Way to do things. See chrome-os-partner:7689, and the commit message -- cgit v1.2.1