mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-03 01:36:52 +09:00
Makefile: those hacks are needed to build AMLogic drivers on newer GCC's
Change-Id: Ieb4ba65c33a672552b4ca96e9bbdd6729ba85379 Signed-off-by: Dongjin Kim <tobetter@gmail.com>
This commit is contained in:
committed by
Dongjin Kim
parent
e131f3b2ab
commit
f366710865
11
Makefile
11
Makefile
@@ -373,21 +373,16 @@ 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 \
|
||||
-Werror
|
||||
-fno-delete-null-pointer-checks
|
||||
|
||||
KBUILD_CFLAGS += -Werror=enum-compare \
|
||||
-Werror=comment \
|
||||
-Werror=implicit-int \
|
||||
-Werror=missing-braces \
|
||||
-Werror=unused-value \
|
||||
-Werror=maybe-uninitialized \
|
||||
-Werror=unused-variable \
|
||||
-Werror=format \
|
||||
-Werror=unused-function \
|
||||
-Werror=switch \
|
||||
-Werror=strict-prototypes \
|
||||
-Werror=declaration-after-statement \
|
||||
-Werror=uninitialized \
|
||||
-Werror=unused-label \
|
||||
-Werror=undef \
|
||||
-Werror=unused-result \
|
||||
@@ -596,7 +591,7 @@ all: vmlinux
|
||||
ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
|
||||
KBUILD_CFLAGS += -Os $(call cc-disable-warning,maybe-uninitialized,)
|
||||
else
|
||||
KBUILD_CFLAGS += -O2
|
||||
KBUILD_CFLAGS += -O2 $(call cc-disable-warning,maybe-uninitialized,)
|
||||
endif
|
||||
|
||||
include $(srctree)/arch/$(SRCARCH)/Makefile
|
||||
|
||||
Reference in New Issue
Block a user