From 7dedd9a88847a7b10ecb75e7c3fd0b28c3f86609 Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Mon, 18 Nov 2019 17:57:01 +0530 Subject: 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 Change-Id: I96bea22667ebf45b446a26d84de96e52f3d28aa0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1919094 Reviewed-by: Julius Werner Commit-Queue: Tim Wawrzynczak --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1d8ab299..b2e2fde5 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 -- cgit v1.2.1