summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorJan Viktorin <viktorin@rehivetech.com>2015-11-03 00:47:26 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-11-18 22:41:33 +0100
commit79fa5c2a9992f5fdef2cd7cb4e76704940699fbc (patch)
tree5bbdc6db7a637c3739e3052f1a1d75325e4caeb6 /mk
parent5aa739bd39a09cbd756d94412bfd346c72b0eed2 (diff)
downloaddpdk-79fa5c2a9992f5fdef2cd7cb4e76704940699fbc.zip
dpdk-79fa5c2a9992f5fdef2cd7cb4e76704940699fbc.tar.gz
dpdk-79fa5c2a9992f5fdef2cd7cb4e76704940699fbc.tar.xz
mk: ignore alignment errors for ARMv7
There several issues with alignment when compiling for ARMv7. They are not considered to be fatal (ARMv7 supports unaligned access of 32b words), so we just leave them as warnings. They should be solved later, however. Signed-off-by: Jan Viktorin <viktorin@rehivetech.com> Signed-off-by: Vlastimil Kosar <kosar@rehivetech.com> Acked-by: David Marchand <david.marchand@6wind.com>
Diffstat (limited to 'mk')
-rw-r--r--mk/toolchain/gcc/rte.vars.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/mk/toolchain/gcc/rte.vars.mk b/mk/toolchain/gcc/rte.vars.mk
index 0f51c66..c2c5255 100644
--- a/mk/toolchain/gcc/rte.vars.mk
+++ b/mk/toolchain/gcc/rte.vars.mk
@@ -77,6 +77,12 @@ WERROR_FLAGS += -Wcast-align -Wnested-externs -Wcast-qual
WERROR_FLAGS += -Wformat-nonliteral -Wformat-security
WERROR_FLAGS += -Wundef -Wwrite-strings
+# There are many issues reported for ARMv7 architecture
+# which are not necessarily fatal. Report as warnings.
+ifeq ($(CONFIG_RTE_ARCH_ARMv7),y)
+WERROR_FLAGS += -Wno-error=cast-align
+endif
+
# process cpu flags
include $(RTE_SDK)/mk/toolchain/$(RTE_TOOLCHAIN)/rte.toolchain-compat.mk