diff --git a/Makefile b/Makefile index fd477a3fdbb3..065f4cd2a079 100644 --- a/Makefile +++ b/Makefile @@ -245,8 +245,8 @@ CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \ HOSTCC = gcc HOSTCXX = g++ -HOSTCFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -HOSTCXXFLAGS = -O2 +HOSTCFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe +HOSTCXXFLAGS = -O2 -pipe # Decide whether to build built-in, modular, or both. # Normally, just do built-in. @@ -351,12 +351,12 @@ CC = $(srctree)/scripts/gcc-wrapper.py $(REAL_CC) CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \ -Wbitwise -Wno-return-void $(CF) -CFLAGS_MODULE = +CFLAGS_MODULE = -pipe AFLAGS_MODULE = LDFLAGS_MODULE = -CFLAGS_KERNEL = -fgraphite-identity -floop-parallelize-all -ftree-loop-linear -floop-interchange -floop-strip-mine -floop-block +CFLAGS_KERNEL = AFLAGS_KERNEL = -CFLAGS_GCOV = -fprofile-arcs -ftest-coverage +CFLAGS_GCOV = -fprofile-arcs -ftest-coverage -pipe # Use LINUXINCLUDE when you must reference the include/ directory. @@ -368,20 +368,18 @@ LINUXINCLUDE := -I$(srctree)/arch/$(hdr-arch)/include \ KBUILD_CPPFLAGS := -D__KERNEL__ -KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ - -fno-strict-aliasing -fno-common \ - -Wno-implicit-function-declaration \ - -Wno-format-security \ - -Wno-maybe-uninitialized \ - -Wno-array-bounds \ - -ffast-math -fsingle-precision-constant \ - -fgraphite-identity -floop-parallelize-all \ - -ftree-loop-linear -floop-interchange \ - -floop-strip-mine -floop-block \ - -Wno-format \ - -ffast-math \ - -mvectorize-with-neon-quad \ - -fno-delete-null-pointer-checks +KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ + -fno-strict-aliasing -fno-common \ + -Werror-implicit-function-declaration \ + -Wno-format-security \ + -w \ + -fno-delete-null-pointer-checks \ + -std=gnu89 \ + -march=armv7-a \ + -mtune=cortex-a7 \ + -mfpu=neon-vfpv4 \ + -mfloat-abi=softfp \ + -pipe KBUILD_AFLAGS_KERNEL := KBUILD_CFLAGS_KERNEL := KBUILD_AFLAGS := -D__ASSEMBLY__