>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

Instead of disabling the build, we can just diable template functions when 
soc_type is 'all'

diff --git a/drivers/event/cnxk/meson.build b/drivers/event/cnxk/meson.build
index 24b48d045f..00295246b6 100644
--- a/drivers/event/cnxk/meson.build
+++ b/drivers/event/cnxk/meson.build
@@ -36,6 +36,10 @@ if meson.version().version_compare('>=1.1.0')
         endif
 endif
 
+if soc_type == 'all'
+    disable_template = true
+endif
+
 if soc_type == 'cn9k' or soc_type == 'all'
 sources += files(
         'cn9k_eventdev.c',
diff --git a/drivers/net/cnxk/meson.build b/drivers/net/cnxk/meson.build
index 53caa6c171..9382491ae4 100644
--- a/drivers/net/cnxk/meson.build
+++ b/drivers/net/cnxk/meson.build
@@ -52,6 +52,11 @@ if meson.version().version_compare('>=1.1.0')
         endif
 endif
 
+if soc_type == 'all'
+    disable_template = true
+endif
+
+
 if soc_type == 'cn9k' or soc_type == 'all'
 # CN9K
 sources += files(


Thanks,
Pavan.

>
> sources = files(
>--
>2.51.0


Reply via email to