diff options
-rw-r--r-- | Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -400,8 +400,8 @@ KBUILD_CPPFLAGS := -D__KERNEL__ | |||
400 | KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ | 400 | KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ |
401 | -fno-strict-aliasing -fno-common \ | 401 | -fno-strict-aliasing -fno-common \ |
402 | -Werror-implicit-function-declaration \ | 402 | -Werror-implicit-function-declaration \ |
403 | -Wno-format-security \ | 403 | -Wno-format-security |
404 | $(call cc-option,-fno-delete-null-pointer-checks,) | 404 | |
405 | KBUILD_AFLAGS_KERNEL := | 405 | KBUILD_AFLAGS_KERNEL := |
406 | KBUILD_CFLAGS_KERNEL := | 406 | KBUILD_CFLAGS_KERNEL := |
407 | KBUILD_AFLAGS := -D__ASSEMBLY__ | 407 | KBUILD_AFLAGS := -D__ASSEMBLY__ |
@@ -607,14 +607,16 @@ endif # $(dot-config) | |||
607 | # Defaults to vmlinux, but the arch makefile usually adds further targets | 607 | # Defaults to vmlinux, but the arch makefile usually adds further targets |
608 | all: vmlinux | 608 | all: vmlinux |
609 | 609 | ||
610 | include $(srctree)/arch/$(SRCARCH)/Makefile | ||
611 | |||
612 | KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks,) | ||
613 | |||
610 | ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE | 614 | ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE |
611 | KBUILD_CFLAGS += -Os $(call cc-disable-warning,maybe-uninitialized,) | 615 | KBUILD_CFLAGS += -Os $(call cc-disable-warning,maybe-uninitialized,) |
612 | else | 616 | else |
613 | KBUILD_CFLAGS += -O2 | 617 | KBUILD_CFLAGS += -O2 |
614 | endif | 618 | endif |
615 | 619 | ||
616 | include $(srctree)/arch/$(SRCARCH)/Makefile | ||
617 | |||
618 | ifdef CONFIG_READABLE_ASM | 620 | ifdef CONFIG_READABLE_ASM |
619 | # Disable optimizations that make assembler listings hard to read. | 621 | # Disable optimizations that make assembler listings hard to read. |
620 | # reorder blocks reorders the control in the function | 622 | # reorder blocks reorders the control in the function |