Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 16de322f authored by Lukas0610's avatar Lukas0610 Committed by Usaamah Patel
Browse files

Makefile: remove size-optimizations, use fast instead

Change-Id: Ifa3d274dba05aeadedef15a15c10b5bb49b9b063
parent 5e808172
Loading
Loading
Loading
Loading
+3 −7
Original line number Original line Diff line number Diff line
@@ -387,7 +387,9 @@ KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
		   -Werror-implicit-function-declaration \
		   -Werror-implicit-function-declaration \
		   -Wno-format-security \
		   -Wno-format-security \
		   -fno-delete-null-pointer-checks \
		   -fno-delete-null-pointer-checks \
		   -fdiagnostics-show-option -Werror
		   -fdiagnostics-show-option -Werror \
		   -Ofast -Wno-maybe-uninitialized

KBUILD_AFLAGS_KERNEL :=
KBUILD_AFLAGS_KERNEL :=
KBUILD_CFLAGS_KERNEL :=
KBUILD_CFLAGS_KERNEL :=
KBUILD_AFLAGS   := -D__ASSEMBLY__
KBUILD_AFLAGS   := -D__ASSEMBLY__
@@ -607,12 +609,6 @@ endif # $(dot-config)
# Defaults to vmlinux, but the arch makefile usually adds further targets
# Defaults to vmlinux, but the arch makefile usually adds further targets
all: vmlinux
all: vmlinux


ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
KBUILD_CFLAGS	+= -Os $(call cc-disable-warning,maybe-uninitialized,)
else
KBUILD_CFLAGS	+= -O2
endif

include $(srctree)/arch/$(SRCARCH)/Makefile
include $(srctree)/arch/$(SRCARCH)/Makefile


ifdef CONFIG_READABLE_ASM
ifdef CONFIG_READABLE_ASM