Backport patches to fix arm64 build
[deb_dpdk.git] / debian / patches / dpdk-dev-app-testpmd-fix-DPAA-shared-library-dependency.patch
1 Description: app/testpmd: fix DPAA shared library dependency
2  The dynamic link is broken for ARM platform because the dependencies
3  of the DPAA PMD are not declared.
4 Author: Luca Boccassi <bluca@debian.org>
5 Original-Author: Hemant Agrawal <hemant.agrawal@nxp.com>
6 Origin: upstream, 3fcdd125463c89bdd94fb7eca7d024bfd3cf2a99
7 Last-Update: 2018-03-14
8 --- a/app/test-pmd/Makefile
9 +++ b/app/test-pmd/Makefile
10 @@ -44,8 +44,10 @@ ifeq ($(CONFIG_RTE_LIBRTE_PMD_BOND),y)
11  LDLIBS += -lrte_pmd_bond
12  endif
13  
14 -ifeq ($(CONFIG_RTE_LIBRTE_DPAA_PMD),y)
15 +ifeq ($(CONFIG_RTE_LIBRTE_DPAA_BUS)$(CONFIG_RTE_LIBRTE_DPAA_PMD),yy)
16  LDLIBS += -lrte_pmd_dpaa
17 +LDLIBS += -lrte_bus_dpaa
18 +LDLIBS += -lrte_mempool_dpaa
19  endif
20  
21  ifeq ($(CONFIG_RTE_LIBRTE_IXGBE_PMD),y)
22 --- a/app/test-pmd/cmdline.c
23 +++ b/app/test-pmd/cmdline.c
24 @@ -60,7 +60,7 @@
25  #include <rte_eth_bond.h>
26  #include <rte_eth_bond_8023ad.h>
27  #endif
28 -#ifdef RTE_LIBRTE_DPAA_PMD
29 +#if defined RTE_LIBRTE_DPAA_BUS && defined RTE_LIBRTE_DPAA_PMD
30  #include <rte_pmd_dpaa.h>
31  #endif
32  #ifdef RTE_LIBRTE_IXGBE_PMD
33 @@ -12861,7 +12861,7 @@ cmd_set_tx_loopback_parsed(
34         if (ret == -ENOTSUP)
35                 ret = rte_pmd_bnxt_set_tx_loopback(res->port_id, is_on);
36  #endif
37 -#ifdef RTE_LIBRTE_DPAA_PMD
38 +#if defined RTE_LIBRTE_DPAA_BUS && defined RTE_LIBRTE_DPAA_PMD
39         if (ret == -ENOTSUP)
40                 ret = rte_pmd_dpaa_set_tx_loopback(res->port_id, is_on);
41  #endif