From: Amit Gupta <agup...@marvell.com> Add a additional condition to check if all required internal dependencies are met before building octeontx drivers using meson.
Bugzilla ID: 387 Fixes: 7f615033d64f ("drivers/net: build Cavium NIC PMDs with meson") Signed-off-by: Amit Gupta <agup...@marvell.com> --- v2: - rebased to v20.02 - upstream comments incorporated. drivers/net/octeontx/base/meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/net/octeontx/base/meson.build b/drivers/net/octeontx/base/meson.build index a06a2c8..035aeda 100644 --- a/drivers/net/octeontx/base/meson.build +++ b/drivers/net/octeontx/base/meson.build @@ -10,7 +10,11 @@ sources = [ depends = ['ethdev', 'mempool_octeontx'] static_objs = [] foreach d: depends - static_objs += [get_variable('static_rte_' + d)] + test_dep_obj = '@0@'.format(get_variable('static_rte_' + d, '')) + if test_dep_obj == '' + subdir_done() + endif + static_objs += get_variable('static_rte_' + d) endforeach c_args = cflags -- 1.8.3.1