[PATCH 2/2] build: add backwards compatibility for wildcarding nested drivers

Kevin Traynor ktraynor at redhat.com
Mon Sep 22 13:07:08 CEST 2025


Up until DPDK 25.03 'net/*' could be used with meson options
enable_drivers or disable_drivers to explicitly enable or
disable all net drivers.

In DPDK 25.03 commit
c1d145834f28 ("net/intel: move Intel drivers to a subdirectory")
moved Intel drivers to 'net/intel/*' and 'net/*' no longer enabled
or disabled the Intel drivers.

Expand wildcards handling to include nested drivers.
e.g. 'net/*' will also enable/disable drivers in 'net/*/*'

This adds backwards compatibility so that so that 'net/*' will
continue to enable/disable Intel and any future nested drivers.

Signed-off-by: Kevin Traynor <ktraynor at redhat.com>
---
 drivers/meson.build | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/meson.build b/drivers/meson.build
index 3fbf04e1cd..ccd25e4d18 100644
--- a/drivers/meson.build
+++ b/drivers/meson.build
@@ -58,4 +58,9 @@ foreach driver_type : [['disable', get_option('disable_drivers')],
                     .format(driver, driver_mapped))
             driver = driver_mapped
+        elif driver.contains('*')
+            if driver.endswith('/*') and not driver.contains('/*/*')
+                # for wildcard add nested wildcard
+                driver = driver + ',' + driver + '/*'
+            endif
         endif
         if driver_list_name == 'disable_drivers'
-- 
2.51.0



More information about the dev mailing list