DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] mk: fix dpaax library dependency
@ 2019-10-31  7:14 Gagandeep Singh
  2019-10-31  9:50 ` Thierry Herbelot
  0 siblings, 1 reply; 3+ messages in thread
From: Gagandeep Singh @ 2019-10-31  7:14 UTC (permalink / raw)
  To: dev, ferruh.yigit; +Cc: thierry.herbelot, thomas, Gagandeep Singh

This patch fixes dpaax library dependency for
NXP's PMDs.

Fixes: e56463ec47f0 ('net/enetc: enable dpaax library')
Fixes: 67fc3ff97c39 ('net/pfe: introduce basic functions')
Fixes: 9e727d4a3fd4 ('crypto/caam_jr: integrate DPAAX table')

Suggested-by: Thierry Herbelot <thierry.herbelot@6wind.com>
Signed-off-by: Gagandeep Singh <g.singh@nxp.com>
---

The first suggested patch was
https://patchwork.dpdk.org/patch/62150/ ,
which is not the right fix for this issue.

This patch is a complete fix of compilation issues
because of NXP's PMDs.


 drivers/net/pfe/meson.build |  2 +-
 mk/rte.app.mk               | 12 +++++++-----
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/drivers/net/pfe/meson.build b/drivers/net/pfe/meson.build
index 799500b0a..678ce49a9 100644
--- a/drivers/net/pfe/meson.build
+++ b/drivers/net/pfe/meson.build
@@ -4,7 +4,7 @@
 if host_machine.system() != 'linux'
 	build = false
 endif
-deps += ['bus_dpaa']
+deps += ['common_dpaax']
 
 sources = files('pfe_ethdev.c',
 		'pfe_hal.c',
diff --git a/mk/rte.app.mk b/mk/rte.app.mk
index 1f5c74841..4416caca7 100644
--- a/mk/rte.app.mk
+++ b/mk/rte.app.mk
@@ -126,11 +126,13 @@ ifneq (,$(findstring y,$(MVEP-y)))
 _LDLIBS-y += -lrte_common_mvep -L$(LIBMUSDK_PATH)/lib -lmusdk
 endif
 
-ifeq ($(CONFIG_RTE_LIBRTE_DPAA_BUS),y)
-_LDLIBS-$(CONFIG_RTE_LIBRTE_COMMON_DPAAX)   += -lrte_common_dpaax
-endif
-ifeq ($(CONFIG_RTE_LIBRTE_FSLMC_BUS),y)
-_LDLIBS-$(CONFIG_RTE_LIBRTE_COMMON_DPAAX)   += -lrte_common_dpaax
+DPAAX-y := $(CONFIG_RTE_LIBRTE_DPAA_BUS)
+DPAAX-y += $(CONFIG_RTE_LIBRTE_FSLMC_BUS)
+DPAAX-y += $(CONFIG_RTE_LIBRTE_ENETC_PMD)
+DPAAX-y += $(CONFIG_RTE_LIBRTE_PMD_CAAM_JR)
+DPAAX-y += $(CONFIG_RTE_LIBRTE_PFE_PMD)
+ifeq ($(findstring y,$(DPAAX-y)),y)
+ _LDLIBS-y += -lrte_common_dpaax
 endif
 
 _LDLIBS-$(CONFIG_RTE_LIBRTE_PCI_BUS)        += -lrte_bus_pci
-- 
2.17.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] mk: fix dpaax library dependency
  2019-10-31  7:14 [dpdk-dev] [PATCH] mk: fix dpaax library dependency Gagandeep Singh
@ 2019-10-31  9:50 ` Thierry Herbelot
  2019-10-31 18:07   ` Ferruh Yigit
  0 siblings, 1 reply; 3+ messages in thread
From: Thierry Herbelot @ 2019-10-31  9:50 UTC (permalink / raw)
  To: Gagandeep Singh, dev, ferruh.yigit; +Cc: thomas

On 10/31/19 8:14 AM, Gagandeep Singh wrote:
> This patch fixes dpaax library dependency for
> NXP's PMDs.
> 
> Fixes: e56463ec47f0 ('net/enetc: enable dpaax library')
> Fixes: 67fc3ff97c39 ('net/pfe: introduce basic functions')
> Fixes: 9e727d4a3fd4 ('crypto/caam_jr: integrate DPAAX table')
> 
> Suggested-by: Thierry Herbelot <thierry.herbelot@6wind.com>
> Signed-off-by: Gagandeep Singh <g.singh@nxp.com>
> ---
> 
> The first suggested patch was
> https://patchwork.dpdk.org/patch/62150/ ,
> which is not the right fix for this issue.
> 
> This patch is a complete fix of compilation issues
> because of NXP's PMDs.
> 
> 
>   drivers/net/pfe/meson.build |  2 +-
>   mk/rte.app.mk               | 12 +++++++-----
>   2 files changed, 8 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/net/pfe/meson.build b/drivers/net/pfe/meson.build
> index 799500b0a..678ce49a9 100644
> --- a/drivers/net/pfe/meson.build
> +++ b/drivers/net/pfe/meson.build
> @@ -4,7 +4,7 @@
>   if host_machine.system() != 'linux'
>   	build = false
>   endif
> -deps += ['bus_dpaa']
> +deps += ['common_dpaax']
>   
>   sources = files('pfe_ethdev.c',
>   		'pfe_hal.c',
> diff --git a/mk/rte.app.mk b/mk/rte.app.mk
> index 1f5c74841..4416caca7 100644
> --- a/mk/rte.app.mk
> +++ b/mk/rte.app.mk
> @@ -126,11 +126,13 @@ ifneq (,$(findstring y,$(MVEP-y)))
>   _LDLIBS-y += -lrte_common_mvep -L$(LIBMUSDK_PATH)/lib -lmusdk
>   endif
>   
> -ifeq ($(CONFIG_RTE_LIBRTE_DPAA_BUS),y)
> -_LDLIBS-$(CONFIG_RTE_LIBRTE_COMMON_DPAAX)   += -lrte_common_dpaax
> -endif
> -ifeq ($(CONFIG_RTE_LIBRTE_FSLMC_BUS),y)
> -_LDLIBS-$(CONFIG_RTE_LIBRTE_COMMON_DPAAX)   += -lrte_common_dpaax
> +DPAAX-y := $(CONFIG_RTE_LIBRTE_DPAA_BUS)
> +DPAAX-y += $(CONFIG_RTE_LIBRTE_FSLMC_BUS)
> +DPAAX-y += $(CONFIG_RTE_LIBRTE_ENETC_PMD)
> +DPAAX-y += $(CONFIG_RTE_LIBRTE_PMD_CAAM_JR)
> +DPAAX-y += $(CONFIG_RTE_LIBRTE_PFE_PMD)
> +ifeq ($(findstring y,$(DPAAX-y)),y)
> + _LDLIBS-y += -lrte_common_dpaax
>   endif
>   
>   _LDLIBS-$(CONFIG_RTE_LIBRTE_PCI_BUS)        += -lrte_bus_pci
> 

Acked-by: Thierry Herbelot <thierry.herbelot@6wind.com>

-- 
Thierry Herbelot
6WIND
Senior Software Engineer

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] mk: fix dpaax library dependency
  2019-10-31  9:50 ` Thierry Herbelot
@ 2019-10-31 18:07   ` Ferruh Yigit
  0 siblings, 0 replies; 3+ messages in thread
From: Ferruh Yigit @ 2019-10-31 18:07 UTC (permalink / raw)
  To: Thierry Herbelot, Gagandeep Singh, dev; +Cc: thomas

On 10/31/2019 9:50 AM, Thierry Herbelot wrote:
> On 10/31/19 8:14 AM, Gagandeep Singh wrote:
>> This patch fixes dpaax library dependency for
>> NXP's PMDs.
>>
>> Fixes: e56463ec47f0 ('net/enetc: enable dpaax library')
>> Fixes: 67fc3ff97c39 ('net/pfe: introduce basic functions')
>> Fixes: 9e727d4a3fd4 ('crypto/caam_jr: integrate DPAAX table')
>>
>> Suggested-by: Thierry Herbelot <thierry.herbelot@6wind.com>
>> Signed-off-by: Gagandeep Singh <g.singh@nxp.com>
> 
> Acked-by: Thierry Herbelot <thierry.herbelot@6wind.com>
> 

Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>

Applied to dpdk-next-net/master, thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-10-31 18:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-31  7:14 [dpdk-dev] [PATCH] mk: fix dpaax library dependency Gagandeep Singh
2019-10-31  9:50 ` Thierry Herbelot
2019-10-31 18:07   ` Ferruh Yigit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).