# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-driver_classes = ['bus', 'mempool']
+driver_classes = ['bus', 'crypto', 'mempool', 'net']
foreach class:driver_classes
drivers = []
# set up empty variables used for build
build = true # set to false to disable, e.g. missing deps
+ name = drv
version = 1
allow_experimental_apis = false
sources = []
subdir(drv_path)
if build
- dpdk_conf.set(config_flag_fmt.format(drv.to_upper()),1)
+ dpdk_conf.set(config_flag_fmt.format(name.to_upper()),1)
if allow_experimental_apis
cflags += '-DALLOW_EXPERIMENTAL_API'
endforeach
# now build the driver itself, and add to the drivers list
- drv_name = driver_name_fmt.format(drv)
+ lib_name = driver_name_fmt.format(name)
version_map = '@0@/@1@/@2@_version.map'.format(
meson.current_source_dir(),
- drv_path, drv_name)
- lib = library(drv_name,
+ drv_path, lib_name)
+ lib = library(lib_name,
sources,
objects: objs,
include_directories: includes,
# create a dependency object and add it to the global dictionary so
# testpmd or other built-in apps can find it if necessary
- set_variable('dep_@0@'.format(drv_name),
+ set_variable('dep_@0@'.format(lib_name),
declare_dependency(link_with: lib,
include_directories: includes,
dependencies: dep_objs))