This repository was archived by the owner on Oct 30, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -363,9 +363,9 @@ HOST_LFS_LIBS := $(shell getconf LFS_LIBS 2>/dev/null)
363363
364364HOSTCC = gcc
365365HOSTCXX = g++
366- HOSTCFLAGS := -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 \
366+ HOSTCFLAGS := -Wall -Wmissing-prototypes -Wstrict-prototypes -O3 \
367367 -fomit-frame-pointer -std=gnu89 $(HOST_LFS_CFLAGS )
368- HOSTCXXFLAGS := -O2 $(HOST_LFS_CFLAGS )
368+ HOSTCXXFLAGS := -O3 $(HOST_LFS_CFLAGS )
369369HOSTLDFLAGS := $(HOST_LFS_LDFLAGS )
370370HOST_LOADLIBES := $(HOST_LFS_LIBS )
371371
@@ -657,12 +657,14 @@ ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
657657KBUILD_CFLAGS += -Os $(call cc-disable-warning,maybe-uninitialized,)
658658else
659659ifdef CONFIG_PROFILE_ALL_BRANCHES
660- KBUILD_CFLAGS += -O2 $(call cc-disable-warning,maybe-uninitialized,)
660+ KBUILD_CFLAGS += -O3 $(call cc-disable-warning,maybe-uninitialized,)
661661else
662- KBUILD_CFLAGS += -O2
662+ KBUILD_CFLAGS += -O3
663663endif
664664endif
665665
666+ KBUILD_CFLAGS += -mtune=cortex-a9
667+
666668KBUILD_CFLAGS += $(call cc-ifversion, -lt, 0409, \
667669 $(call cc-disable-warning,maybe-uninitialized,) )
668670
You can’t perform that action at this time.
0 commit comments