[dpdk-dev,v3,14/40] app/test-pmd: can't find include

Message ID 152592044962.119328.17964630920299292110.stgit@localhost.localdomain (mailing list archive)
State Superseded, archived
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Andy Green May 10, 2018, 2:47 a.m. UTC
  /home/agreen/projects/dpdk/app/test-pmd/cmdline.c:64:10:
fatal error: rte_pmd_dpaa.h: No such file or directory
 #include <rte_pmd_dpaa.h>
          ^~~~~~~~~~~~~~~~

Signed-off-by: Andy Green <andy@warmcat.com>
---
 app/test-pmd/Makefile |    1 +
 1 file changed, 1 insertion(+)
  

Comments

De Lara Guarch, Pablo May 10, 2018, 1:50 p.m. UTC | #1
Hi Andy,

> -----Original Message-----

> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Andy Green

> Sent: Thursday, May 10, 2018 3:47 AM

> To: dev@dpdk.org

> Subject: [dpdk-dev] [PATCH v3 14/40] app/test-pmd: can't find include

> 

> /home/agreen/projects/dpdk/app/test-pmd/cmdline.c:64:10:

> fatal error: rte_pmd_dpaa.h: No such file or directory  #include

> <rte_pmd_dpaa.h>

>           ^~~~~~~~~~~~~~~~

> 

> Signed-off-by: Andy Green <andy@warmcat.com>

> ---

>  app/test-pmd/Makefile |    1 +

>  1 file changed, 1 insertion(+)

> 

> diff --git a/app/test-pmd/Makefile b/app/test-pmd/Makefile index

> 60ae9b9c1..a0fdd0e11 100644

> --- a/app/test-pmd/Makefile

> +++ b/app/test-pmd/Makefile

> @@ -13,6 +13,7 @@ APP = testpmd

>  CFLAGS += -DALLOW_EXPERIMENTAL_API

>  CFLAGS += -O3

>  CFLAGS += $(WERROR_FLAGS)

> +CFLAGS += -I$(RTE_SDK)/drivers/net/dpaa

> 

>  #

>  # all source are stored in SRCS-y


I don't think this is necessary. This is including files directly from the source code,
but when they get copied in build/include/, so if you are not seeing that include,
it is because the driver is not getting compiled (I assume that this was because of the broken dpaa bus).
  

Patch

diff --git a/app/test-pmd/Makefile b/app/test-pmd/Makefile
index 60ae9b9c1..a0fdd0e11 100644
--- a/app/test-pmd/Makefile
+++ b/app/test-pmd/Makefile
@@ -13,6 +13,7 @@  APP = testpmd
 CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += -O3
 CFLAGS += $(WERROR_FLAGS)
+CFLAGS += -I$(RTE_SDK)/drivers/net/dpaa
 
 #
 # all source are stored in SRCS-y