diff options
| author | Moyster <oysterized@gmail.com> | 2017-12-22 10:49:39 +0100 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-12-22 16:23:45 +0100 |
| commit | 401d8be0c43f32e76c7dfd7b1dc26427025be148 (patch) | |
| tree | a6b5d82a9eafa30eb4b3f80e8a3d2bceb7b11be1 | |
| parent | c1fe3fd99a61dcfdc66bd8ae6ce342dee8525798 (diff) | |
cflags: cleanup Makefile & arm64 Makefile (-ftree-vectorize is enabled when building with O3, let's keep it clean)
| -rw-r--r-- | Makefile | 11 | ||||
| -rwxr-xr-x | arch/arm64/Makefile | 2 |
2 files changed, 1 insertions, 12 deletions
@@ -369,16 +369,6 @@ LINUXINCLUDE := \ KBUILD_CPPFLAGS := -D__KERNEL__ -ifdef CONFIG_ARM64 -KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ - -fno-strict-aliasing -fno-common \ - -Werror-implicit-function-declaration \ - -Wno-format-security \ - -fno-delete-null-pointer-checks \ - -std=gnu89 -Werror=format \ - -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast \ - -mtune=cortex-a53 -march=armv8-a -else KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ -fno-strict-aliasing -fno-common \ -Werror-implicit-function-declaration \ @@ -386,7 +376,6 @@ KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ -fno-delete-null-pointer-checks \ -std=gnu89 -Werror=format \ -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -endif KBUILD_AFLAGS_KERNEL := KBUILD_CFLAGS_KERNEL := diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index 203793642..c29344087 100755 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -23,7 +23,7 @@ KBUILD_DEFCONFIG := defconfig cflags-$(CONFIG_ARCH_MT6753) += -DMEIZU_M81 KBUILD_CFLAGS += $(cflags-y) KBUILD_CFLAGS += -mgeneral-regs-only -KBUILD_CFLAGS += -fno-pic -mtune=cortex-a53 -march=armv8-a -O2 -ftree-vectorize +KBUILD_CFLAGS += -fno-pic KBUILD_CPPFLAGS += -mlittle-endian AS += -EL LD += -EL |
