OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c397a78
)
Makefile: Optimize for our CPU
author
wloot
<wlootlxt123@gmail.com>
Sat, 1 Jun 2019 21:15:08 +0000
(
05:15
+0800)
committer
0ranko0P
<ranko0p@outlook.com>
Tue, 24 Dec 2019 20:42:20 +0000
(
04:42
+0800)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index
649f251
..
48ea99b
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-666,6
+666,13
@@
else
KBUILD_CFLAGS += -O2
endif
+ifeq ($(cc-name),gcc)
+KBUILD_CFLAGS += -mcpu=cortex-a73.cortex-a53
+endif
+ifeq ($(cc-name),clang)
+KBUILD_CFLAGS += -mcpu=cortex-a53
+endif
+
KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks,)
KBUILD_CFLAGS += $(call cc-disable-warning,maybe-uninitialized,)
KBUILD_CFLAGS += $(call cc-disable-warning,frame-address,)