summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/armv7/config.mk
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2011-06-10 15:00:24 -0700
committerSimon Glass <sjg@chromium.org>2011-08-29 10:39:24 -0700
commitc944c37cff2243782786352d67e3756e4bbd383e (patch)
treeaea8859d673834f4aea5668525677b85873df358 /arch/arm/cpu/armv7/config.mk
parent09d811650a3725a02830b758e6d4961f1dc91bfe (diff)
Enforce errors on warning when building tegra2 targets.
Make sere that -Werror is included in the compiler invocation line when building tegra2 targets. BUG=chromium-os:16410 TEST=manual build a seaboard image and observe -Werror included in the compilation command lines. Change-Id: Ia74df41561cd81896c5f51d7760a6be5d9a9f7d4 Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: http://gerrit.chromium.org/gerrit/2479 Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/arm/cpu/armv7/config.mk')
-rw-r--r--arch/arm/cpu/armv7/config.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/config.mk b/arch/arm/cpu/armv7/config.mk
index 49ac9c74ae..4cd33f1f39 100644
--- a/arch/arm/cpu/armv7/config.mk
+++ b/arch/arm/cpu/armv7/config.mk
@@ -24,6 +24,13 @@ PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
# Make ARMv5 to allow more compilers to work, even though its v7a.
PLATFORM_CPPFLAGS += -march=armv5
+
+# Enforce stricter warning checking.
+PLATFORM_CPPFLAGS += -Werror
+
+# Prevent warning when generating autoconf.mk.dep
+HOSTCFLAGS_autoconf.mk.dep = -Wno-variadic-macros
+
# =========================================================================
#
# Supply options according to compiler version