|
@@ -400,8 +400,8 @@ KBUILD_CPPFLAGS := -D__KERNEL__
|
|
KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
|
|
KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
|
|
-fno-strict-aliasing -fno-common \
|
|
-fno-strict-aliasing -fno-common \
|
|
-Werror-implicit-function-declaration \
|
|
-Werror-implicit-function-declaration \
|
|
- -Wno-format-security \
|
|
|
|
- $(call cc-option,-fno-delete-null-pointer-checks,)
|
|
|
|
|
|
+ -Wno-format-security
|
|
|
|
+
|
|
KBUILD_AFLAGS_KERNEL :=
|
|
KBUILD_AFLAGS_KERNEL :=
|
|
KBUILD_CFLAGS_KERNEL :=
|
|
KBUILD_CFLAGS_KERNEL :=
|
|
KBUILD_AFLAGS := -D__ASSEMBLY__
|
|
KBUILD_AFLAGS := -D__ASSEMBLY__
|
|
@@ -607,14 +607,16 @@ 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
|
|
|
|
|
|
|
|
+include $(srctree)/arch/$(SRCARCH)/Makefile
|
|
|
|
+
|
|
|
|
+KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks,)
|
|
|
|
+
|
|
ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
|
|
ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
|
|
KBUILD_CFLAGS += -Os $(call cc-disable-warning,maybe-uninitialized,)
|
|
KBUILD_CFLAGS += -Os $(call cc-disable-warning,maybe-uninitialized,)
|
|
else
|
|
else
|
|
KBUILD_CFLAGS += -O2
|
|
KBUILD_CFLAGS += -O2
|
|
endif
|
|
endif
|
|
|
|
|
|
-include $(srctree)/arch/$(SRCARCH)/Makefile
|
|
|
|
-
|
|
|
|
ifdef CONFIG_READABLE_ASM
|
|
ifdef CONFIG_READABLE_ASM
|
|
# Disable optimizations that make assembler listings hard to read.
|
|
# Disable optimizations that make assembler listings hard to read.
|
|
# reorder blocks reorders the control in the function
|
|
# reorder blocks reorders the control in the function
|