public inbox for dev@dpdk.org
 help / color / mirror / Atom feed
* [RFC] net/cnxk: only build if platform is specified
@ 2026-02-24 20:37 Stephen Hemminger
  2026-02-25  8:01 ` [EXTERNAL] " Pavan Nikhilesh Bhagavatula
  0 siblings, 1 reply; 8+ messages in thread
From: Stephen Hemminger @ 2026-02-24 20:37 UTC (permalink / raw)
  To: dev
  Cc: Stephen Hemminger, Nithin Dabilpuram, Kiran Kumar K,
	Sunil Kumar Kori, Satha Rao, Harman Kalra

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 <stephen@networkplumber.org>
---
 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


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

end of thread, other threads:[~2026-02-27 13:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-24 20:37 [RFC] net/cnxk: only build if platform is specified Stephen Hemminger
2026-02-25  8:01 ` [EXTERNAL] " Pavan Nikhilesh Bhagavatula
2026-02-25 17:43   ` Stephen Hemminger
2026-02-25 19:30     ` Pavan Nikhilesh Bhagavatula
2026-02-25 22:20       ` Stephen Hemminger
2026-02-26  4:50         ` Pavan Nikhilesh Bhagavatula
2026-02-26 21:16           ` Stephen Hemminger
2026-02-27 13:03             ` Pavan Nikhilesh Bhagavatula

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox