Skip to content

Commit

Permalink
net/octeontx: fix meson build for disabled drivers
Browse files Browse the repository at this point in the history
[ upstream commit be284df ]

Add a condition to check if octeontx drivers are disabled.
octeontx drivers are built only if dependent drivers i.e.
ethdev, mempool and common/octeontx are enabled.

Bugzilla ID: 387
Fixes: 7f61503 ("drivers/net: build Cavium NIC PMDs with meson")

Signed-off-by: Amit Gupta <agupta3@marvell.com>
Reviewed-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Harman Kalra <hkalra@marvell.com>
  • Loading branch information
Amit Gupta authored and kevintraynor committed May 27, 2020
1 parent 206b150 commit 7610bf2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/net/octeontx/base/meson.build
Expand Up @@ -10,7 +10,10 @@ sources = [
depends = ['ethdev', 'mempool_octeontx']
static_objs = []
foreach d: depends
static_objs += [get_variable('static_rte_' + d)]
if not is_variable('shared_rte_' + d)
subdir_done()
endif
static_objs += get_variable('static_rte_' + d)
endforeach

c_args = cflags
Expand Down

0 comments on commit 7610bf2

Please sign in to comment.