From bc3460aa659cf4ae736ca3e4b7b838701e22b174 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Wed, 11 Jan 2017 17:17:18 +0100 Subject: [PATCH] UPSTREAM: util/cbfstool: compile with -O2 by default This speeds up the lzma encoder approximately four-fold. BUG=chromium:630451 BRANCH=none TEST=emerge-$board chromeos-bootimage's set of adding static assets it noticeably faster Change-Id: Ie8cc9b6106ac72c0b0e96bcd76bb7d13d48b2025 Signed-off-by: Patrick Georgi Original-Change-Id: Ibf896098799693ddd0f8a6c74bda2e518ecea869 Original-Signed-off-by: Patrick Georgi Original-Reviewed-on: https://review.coreboot.org/18098 Original-Tested-by: build bot (Jenkins) Original-Reviewed-by: Stefan Reinauer Original-Reviewed-by: Paul Menzel Reviewed-on: https://chromium-review.googlesource.com/427701 Reviewed-by: Stefan Reinauer --- util/cbfstool/Makefile.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/util/cbfstool/Makefile.inc b/util/cbfstool/Makefile.inc index d666f6a06f..6882cbaf60 100644 --- a/util/cbfstool/Makefile.inc +++ b/util/cbfstool/Makefile.inc @@ -65,6 +65,7 @@ ifwiobj += common.o TOOLCFLAGS ?= -Werror -Wall -Wextra TOOLCFLAGS += -Wcast-qual -Wmissing-prototypes -Wredundant-decls -Wshadow TOOLCFLAGS += -Wstrict-prototypes -Wwrite-strings +TOOLCFLAGS += -O2 TOOLCPPFLAGS ?= -D_DEFAULT_SOURCE # memccpy() from string.h TOOLCPPFLAGS += -D_XOPEN_SOURCE=700 # strdup() from string.h TOOLCPPFLAGS += -I$(top)/util/cbfstool/flashmap