The generic build was building for all SOC types and that takes a long time (like 10 minutes). The driver should only be built if soc_type is set to one of the know values.
Signed-off-by: Stephen Hemminger <[email protected]> --- drivers/net/cnxk/meson.build | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/cnxk/meson.build b/drivers/net/cnxk/meson.build index 53caa6c171..4a2f4e1a92 100644 --- a/drivers/net/cnxk/meson.build +++ b/drivers/net/cnxk/meson.build @@ -14,8 +14,10 @@ else soc_type = platform endif -if soc_type != 'cn9k' and soc_type != 'cn10k' and soc_type != 'cn20k' - soc_type = 'all' +if soc_type != 'cn9k' and soc_type != 'cn10k' and soc_type != 'cn20k' and soc_type != 'all' + build = false + reason = 'not supported on soc_type ' + soc_type + subdir_done() endif sources = files( -- 2.51.0

