summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavan Nikhilesh <pbhagavatula@caviumnetworks.com>2018-05-07 18:00:42 +0530
committerJerin Jacob <jerin.jacob@caviumnetworks.com>2018-05-10 14:03:30 +0200
commit4f760550a0935632cf262d6955ac4d25bc260545 (patch)
tree144513452d675dfa6cef38e9e5067950ace972e0
parentdb6a330baac5dcec72813f7a481025694a17325b (diff)
downloaddpdk-4f760550a093.zip
dpdk-4f760550a093.tar.gz
dpdk-4f760550a093.tar.xz
mk: disable OcteonTx for buggy compilers
Disable octeontx for gcc 4.8.5 as compiler is emitting "internal compiler error" for aarch64. Signed-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com> Tested-by: Ali Alnubani <alialnu@mellanox.com> Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
-rw-r--r--mk/toolchain/gcc/rte.toolchain-compat.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/mk/toolchain/gcc/rte.toolchain-compat.mk b/mk/toolchain/gcc/rte.toolchain-compat.mk
index 9f17131..255c896 100644
--- a/mk/toolchain/gcc/rte.toolchain-compat.mk
+++ b/mk/toolchain/gcc/rte.toolchain-compat.mk
@@ -12,6 +12,7 @@
GCC_MAJOR = $(shell echo __GNUC__ | $(CC) -E -x c - | tail -n 1)
GCC_MINOR = $(shell echo __GNUC_MINOR__ | $(CC) -E -x c - | tail -n 1)
+GCC_PATCHLEVEL = $(shell echo __GNUC_PATCHLEVEL__ | $(CC) -E -x c - | tail -n 1)
GCC_VERSION = $(GCC_MAJOR)$(GCC_MINOR)
# if GCC is older than 4.x
@@ -73,4 +74,11 @@ else
CONFIG_RTE_LIBRTE_PMD_OPDL_EVENTDEV=d
endif
+ # Disable octeontx event PMD for gcc < 4.8.6
+ ifeq ($(shell test $(GCC_VERSION)$(GCC_PATCHLEVEL) -lt 486 && echo 1), 1)
+ CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF=d
+ CONFIG_RTE_LIBRTE_OCTEONTX_MEMPOOL=d
+ CONFIG_RTE_LIBRTE_OCTEONTX_PMD=d
+ endif
+
endif