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

Kevin Traynor ktraynor at redhat.com
Tue Sep 23 15:09:18 CEST 2025


On 22/09/2025 16:52, Thomas Monjalon wrote:
> 22/09/2025 13:07, Kevin Traynor:
>> 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
> 
> The special pattern ** does not work in Meson?
> 
> 

I will check, thanks.



More information about the dev mailing list