Update Makefile
This commit is contained in:
parent
f84608f9a5
commit
e82f86e8f7
1 changed files with 3 additions and 8 deletions
11
Makefile
11
Makefile
|
@ -743,19 +743,14 @@ include/config/auto.conf:
|
|||
endif # may-sync-config
|
||||
endif # need-config
|
||||
|
||||
KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks,)
|
||||
KBUILD_CFLAGS += $(call cc-disable-warning,frame-address,)
|
||||
KBUILD_CFLAGS += $(call cc-disable-warning, format-truncation)
|
||||
KBUILD_CFLAGS += $(call cc-disable-warning, format-overflow)
|
||||
KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member)
|
||||
|
||||
ifdef CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE
|
||||
KBUILD_CFLAGS += -O2
|
||||
else ifdef CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE_O3
|
||||
KBUILD_CFLAGS += -O3
|
||||
else ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
|
||||
KBUILD_CFLAGS += -Os
|
||||
endif
|
||||
# Force high-performance optimizations for Android kernel
|
||||
KBUILD_CFLAGS += -Ofast -fno-stack-protector -fno-plt -fomit-frame-pointer -funroll-loops
|
||||
|
||||
|
||||
# Tell gcc to never replace conditional load with a non-conditional one
|
||||
KBUILD_CFLAGS += $(call cc-option,--param=allow-store-data-races=0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue