net/bnxt: update HWRM API to version 1.10.1.6
[dpdk.git] / drivers / meson.build
index 4a1cb8b..156d2dc 100644 (file)
@@ -61,10 +61,15 @@ foreach class:dpdk_driver_classes
                # pull in driver directory which should assign to each of the above
                subdir(drv_path)
 
-               if drv_path in disabled_drivers
-                       build = false
-                       reason = 'Explicitly disabled via build config'
-               elif build
+               # skip disabled drivers. For meson 0.49 change this to use
+               # "in" keyword
+               foreach disable_path: disabled_drivers
+                       if drv_path == disable_path
+                               build = false
+                               reason = 'Explicitly disabled via build config'
+                       endif
+               endforeach
+               if build
                        # get dependency objs from strings
                        shared_deps = ext_deps
                        static_deps = ext_deps