From: Hemant Agrawal Date: Fri, 23 Feb 2018 09:58:02 +0000 (+0530) Subject: app/testpmd: fix DPAA shared library dependency X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=3fcdd125463c89bdd94fb7eca7d024bfd3cf2a99;p=dpdk.git app/testpmd: fix DPAA shared library dependency The dynamic link is broken for ARM platform because the dependencies of the DPAA PMD are not declared. Fixes: 83c82e15e1c0 ("app/testpmd: support loopback config for DPAA") Cc: stable@dpdk.org Reported-by: Marco Varlese Signed-off-by: Thomas Monjalon Signed-off-by: Hemant Agrawal --- diff --git a/app/test-pmd/Makefile b/app/test-pmd/Makefile index ed588ab6d9..60ae9b9c19 100644 --- a/app/test-pmd/Makefile +++ b/app/test-pmd/Makefile @@ -44,8 +44,10 @@ ifeq ($(CONFIG_RTE_LIBRTE_PMD_BOND),y) LDLIBS += -lrte_pmd_bond endif -ifeq ($(CONFIG_RTE_LIBRTE_DPAA_PMD),y) +ifeq ($(CONFIG_RTE_LIBRTE_DPAA_BUS)$(CONFIG_RTE_LIBRTE_DPAA_PMD),yy) LDLIBS += -lrte_pmd_dpaa +LDLIBS += -lrte_bus_dpaa +LDLIBS += -lrte_mempool_dpaa endif ifeq ($(CONFIG_RTE_LIBRTE_IXGBE_PMD),y) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index d1dc1de6c1..40b31ad7e7 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -60,7 +60,7 @@ #include #include #endif -#ifdef RTE_LIBRTE_DPAA_PMD +#if defined RTE_LIBRTE_DPAA_BUS && defined RTE_LIBRTE_DPAA_PMD #include #endif #ifdef RTE_LIBRTE_IXGBE_PMD @@ -12861,7 +12861,7 @@ cmd_set_tx_loopback_parsed( if (ret == -ENOTSUP) ret = rte_pmd_bnxt_set_tx_loopback(res->port_id, is_on); #endif -#ifdef RTE_LIBRTE_DPAA_PMD +#if defined RTE_LIBRTE_DPAA_BUS && defined RTE_LIBRTE_DPAA_PMD if (ret == -ENOTSUP) ret = rte_pmd_dpaa_set_tx_loopback(res->port_id, is_on); #endif