util/cbfstool: compile with -O2 by default
This speeds up the lzma encoder approximately four-fold. Change-Id: Ibf896098799693ddd0f8a6c74bda2e518ecea869 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Reviewed-on: https://review.coreboot.org/18098 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
parent
3051cd9265
commit
8474e7d7e8
|
@ -65,6 +65,7 @@ ifwiobj += common.o
|
||||||
TOOLCFLAGS ?= -Werror -Wall -Wextra
|
TOOLCFLAGS ?= -Werror -Wall -Wextra
|
||||||
TOOLCFLAGS += -Wcast-qual -Wmissing-prototypes -Wredundant-decls -Wshadow
|
TOOLCFLAGS += -Wcast-qual -Wmissing-prototypes -Wredundant-decls -Wshadow
|
||||||
TOOLCFLAGS += -Wstrict-prototypes -Wwrite-strings
|
TOOLCFLAGS += -Wstrict-prototypes -Wwrite-strings
|
||||||
|
TOOLCFLAGS += -O2
|
||||||
TOOLCPPFLAGS ?= -D_DEFAULT_SOURCE # memccpy() from string.h
|
TOOLCPPFLAGS ?= -D_DEFAULT_SOURCE # memccpy() from string.h
|
||||||
TOOLCPPFLAGS += -D_XOPEN_SOURCE=700 # strdup() from string.h
|
TOOLCPPFLAGS += -D_XOPEN_SOURCE=700 # strdup() from string.h
|
||||||
TOOLCPPFLAGS += -I$(top)/util/cbfstool/flashmap
|
TOOLCPPFLAGS += -I$(top)/util/cbfstool/flashmap
|
||||||
|
|
Loading…
Reference in New Issue