diff options
Diffstat (limited to 'debian/patches/dpdk-dev-app-testpmd-fix-DPAA-shared-library-dependency.patch')
-rw-r--r-- | debian/patches/dpdk-dev-app-testpmd-fix-DPAA-shared-library-dependency.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/debian/patches/dpdk-dev-app-testpmd-fix-DPAA-shared-library-dependency.patch b/debian/patches/dpdk-dev-app-testpmd-fix-DPAA-shared-library-dependency.patch new file mode 100644 index 00000000..04112df8 --- /dev/null +++ b/debian/patches/dpdk-dev-app-testpmd-fix-DPAA-shared-library-dependency.patch @@ -0,0 +1,41 @@ +Description: 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. +Author: Luca Boccassi <bluca@debian.org> +Original-Author: Hemant Agrawal <hemant.agrawal@nxp.com> +Origin: upstream, 3fcdd125463c89bdd94fb7eca7d024bfd3cf2a99 +Last-Update: 2018-03-14 +--- 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) +--- a/app/test-pmd/cmdline.c ++++ b/app/test-pmd/cmdline.c +@@ -60,7 +60,7 @@ + #include <rte_eth_bond.h> + #include <rte_eth_bond_8023ad.h> + #endif +-#ifdef RTE_LIBRTE_DPAA_PMD ++#if defined RTE_LIBRTE_DPAA_BUS && defined RTE_LIBRTE_DPAA_PMD + #include <rte_pmd_dpaa.h> + #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 |