DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] telemetry: fix build for armv7
@ 2020-05-11 13:32 David Marchand
  2020-05-11 13:47 ` Bruce Richardson
  2020-05-11 15:21 ` David Marchand
  0 siblings, 2 replies; 5+ messages in thread
From: David Marchand @ 2020-05-11 13:32 UTC (permalink / raw)
  To: dev; +Cc: Kevin Laatz, Ciara Power, Bruce Richardson, Keith Wiles

telemetry can not depend on EAL anymore but it still wants to get arch
headers.
We directly point at the right source directories by using the same logic
than EAL. However the special case of armv7 has been missed.

Fix this by defaulting ARCH_DIR to RTE_ARCH.

Caught on OBS:
[  162s]   SYMLINK-FILE include/rte_telemetry.h
[  162s]   CC telemetry.o
[  162s]   CC telemetry_data.o
[  162s]   CC telemetry_legacy.o
[  162s] .../lib/librte_telemetry/telemetry.c:15:10: fatal error:
 rte_spinlock.h: No such file or directory
[  162s]  #include <rte_spinlock.h>
[  162s]           ^~~~~~~~~~~~~~~~
[  162s] compilation terminated.

Fixes: 6dd571fd07c3 ("telemetry: introduce new functionality")

Signed-off-by: David Marchand <david.marchand@redhat.com>
---
 lib/librte_telemetry/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/librte_telemetry/Makefile b/lib/librte_telemetry/Makefile
index 29115ba792..c62cbd86dc 100644
--- a/lib/librte_telemetry/Makefile
+++ b/lib/librte_telemetry/Makefile
@@ -6,6 +6,8 @@ include $(RTE_SDK)/mk/rte.vars.mk
 # library name
 LIB = librte_telemetry.a
 
+ARCH_DIR ?= $(RTE_ARCH)
+
 CFLAGS += -O3
 CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR)
 CFLAGS += -I$(RTE_SDK)/lib/librte_metrics/
-- 
2.23.0


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

* Re: [dpdk-dev] [PATCH] telemetry: fix build for armv7
  2020-05-11 13:32 [dpdk-dev] [PATCH] telemetry: fix build for armv7 David Marchand
@ 2020-05-11 13:47 ` Bruce Richardson
  2020-05-11 13:58   ` David Marchand
  2020-05-11 15:21 ` David Marchand
  1 sibling, 1 reply; 5+ messages in thread
From: Bruce Richardson @ 2020-05-11 13:47 UTC (permalink / raw)
  To: David Marchand; +Cc: dev, Kevin Laatz, Ciara Power, Keith Wiles

On Mon, May 11, 2020 at 03:32:12PM +0200, David Marchand wrote:
> telemetry can not depend on EAL anymore but it still wants to get arch
> headers.
> We directly point at the right source directories by using the same logic
> than EAL. However the special case of armv7 has been missed.
> 
No objection to the fix, but why is ARMv7 needing special treatment?

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

* Re: [dpdk-dev] [PATCH] telemetry: fix build for armv7
  2020-05-11 13:47 ` Bruce Richardson
@ 2020-05-11 13:58   ` David Marchand
  2020-05-11 14:23     ` Bruce Richardson
  0 siblings, 1 reply; 5+ messages in thread
From: David Marchand @ 2020-05-11 13:58 UTC (permalink / raw)
  To: Bruce Richardson; +Cc: dev, Kevin Laatz, Ciara Power, Keith Wiles

On Mon, May 11, 2020 at 3:47 PM Bruce Richardson
<bruce.richardson@intel.com> wrote:
>
> On Mon, May 11, 2020 at 03:32:12PM +0200, David Marchand wrote:
> > telemetry can not depend on EAL anymore but it still wants to get arch
> > headers.
> > We directly point at the right source directories by using the same logic
> > than EAL. However the special case of armv7 has been missed.
> >
> No objection to the fix, but why is ARMv7 needing special treatment?

For ARMv7, RTE_ARCH == ARCH_DIR so it is not set in mk/arch/* but a
default value is still set in EAL makefiles.
We could hide this in rte.vars.mk so that other components' makefiles
do not have to care about it but I went with the quicker fix.


-- 
David Marchand


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

* Re: [dpdk-dev] [PATCH] telemetry: fix build for armv7
  2020-05-11 13:58   ` David Marchand
@ 2020-05-11 14:23     ` Bruce Richardson
  0 siblings, 0 replies; 5+ messages in thread
From: Bruce Richardson @ 2020-05-11 14:23 UTC (permalink / raw)
  To: David Marchand; +Cc: dev, Kevin Laatz, Ciara Power, Keith Wiles

On Mon, May 11, 2020 at 03:58:47PM +0200, David Marchand wrote:
> On Mon, May 11, 2020 at 3:47 PM Bruce Richardson
> <bruce.richardson@intel.com> wrote:
> >
> > On Mon, May 11, 2020 at 03:32:12PM +0200, David Marchand wrote:
> > > telemetry can not depend on EAL anymore but it still wants to get arch
> > > headers.
> > > We directly point at the right source directories by using the same logic
> > > than EAL. However the special case of armv7 has been missed.
> > >
> > No objection to the fix, but why is ARMv7 needing special treatment?
> 
> For ARMv7, RTE_ARCH == ARCH_DIR so it is not set in mk/arch/* but a
> default value is still set in EAL makefiles.
> We could hide this in rte.vars.mk so that other components' makefiles
> do not have to care about it but I went with the quicker fix.
> 
Thanks for the explanation.

Acked-by: Bruce Richardson <bruce.richardson@intel.com>

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

* Re: [dpdk-dev] [PATCH] telemetry: fix build for armv7
  2020-05-11 13:32 [dpdk-dev] [PATCH] telemetry: fix build for armv7 David Marchand
  2020-05-11 13:47 ` Bruce Richardson
@ 2020-05-11 15:21 ` David Marchand
  1 sibling, 0 replies; 5+ messages in thread
From: David Marchand @ 2020-05-11 15:21 UTC (permalink / raw)
  To: dev; +Cc: Kevin Laatz, Ciara Power, Bruce Richardson, Keith Wiles

On Mon, May 11, 2020 at 3:32 PM David Marchand
<david.marchand@redhat.com> wrote:
>
> telemetry can not depend on EAL anymore but it still wants to get arch
> headers.
> We directly point at the right source directories by using the same logic
> than EAL. However the special case of armv7 has been missed.
>
> Fix this by defaulting ARCH_DIR to RTE_ARCH.
>
> Caught on OBS:
> [  162s]   SYMLINK-FILE include/rte_telemetry.h
> [  162s]   CC telemetry.o
> [  162s]   CC telemetry_data.o
> [  162s]   CC telemetry_legacy.o
> [  162s] .../lib/librte_telemetry/telemetry.c:15:10: fatal error:
>  rte_spinlock.h: No such file or directory
> [  162s]  #include <rte_spinlock.h>
> [  162s]           ^~~~~~~~~~~~~~~~
> [  162s] compilation terminated.
>
> Fixes: 6dd571fd07c3 ("telemetry: introduce new functionality")
>
> Signed-off-by: David Marchand <david.marchand@redhat.com>

Acked-by: Bruce Richardson <bruce.richardson@intel.com>

Applied.

-- 
David Marchand


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

end of thread, other threads:[~2020-05-11 15:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-11 13:32 [dpdk-dev] [PATCH] telemetry: fix build for armv7 David Marchand
2020-05-11 13:47 ` Bruce Richardson
2020-05-11 13:58   ` David Marchand
2020-05-11 14:23     ` Bruce Richardson
2020-05-11 15:21 ` David Marchand

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).