summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSubrata Banik <subrata.banik@intel.com>2019-11-18 17:57:01 +0530
committerCommit Bot <commit-bot@chromium.org>2019-11-20 07:13:46 +0000
commit7a4fce3b4b6a41b00668ad516ed1f0559cdf6f2c (patch)
tree1b9abe3b420702228a4e2153c083f4e293987c83
parent5b4d4aea5e62768e099d88f59cba21cc0e391dcd (diff)
downloadvboot-7a4fce3b4b6a41b00668ad516ed1f0559cdf6f2c.tar.gz
Makefile: Define UNROLL_LOOPS to save ~50ms of boot time
TEST=Able to save ~50ms of bootime with this CL Without this CL 1100:finished vboot kernel verification 802,443 (148,108) With this CL 1100:finished vboot kernel verification 775,914 (102,601) Signed-off-by: Subrata Banik <subrata.banik@intel.com> Change-Id: I96bea22667ebf45b446a26d84de96e52f3d28aa0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1919094 Reviewed-by: Julius Werner <jwerner@chromium.org> Commit-Queue: Tim Wawrzynczak <twawrzynczak@chromium.org> (cherry picked from commit 7dedd9a88847a7b10ecb75e7c3fd0b28c3f86609) Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1924303 Reviewed-by: Shelley Chen <shchen@chromium.org> Commit-Queue: Shelley Chen <shchen@chromium.org> Tested-by: Shelley Chen <shchen@chromium.org>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e49a3ffb..1eb3baf1 100644
--- a/Makefile
+++ b/Makefile
@@ -854,7 +854,7 @@ ${TLCL_OBJS}: CFLAGS += -DTPM_BLOCKING_CONTINUESELFTEST
# CFLAGS += -DTPM_MANUAL_SELFTEST
-ifeq (${FIRMWARE_ARCH},i386)
+ifneq ($(filter $(FIRMWARE_ARCH),x86 x86_64),)
# Unrolling loops in cryptolib makes it faster
${FWLIB_OBJS}: CFLAGS += -DUNROLL_LOOPS
${FWLIB2X_OBJS}: CFLAGS += -DUNROLL_LOOPS