X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fmeson.build;h=4daa2658b76362ddddc7e71ef8a7cc38d204b394;hb=d9934a8a3dfe4de79306249493813d94369ea992;hp=34c0276487bd8149c0be630c578e8a79e93e9827;hpb=65bcddfc6694a16024cd8af7aad9fed550d5fcdb;p=dpdk.git diff --git a/drivers/meson.build b/drivers/meson.build index 34c0276487..4daa2658b7 100644 --- a/drivers/meson.build +++ b/drivers/meson.build @@ -19,6 +19,7 @@ subdirs = [ 'vdpa', # depends on common, bus and mempool. 'event', # depends on common, bus, mempool and net. 'baseband', # depends on common and bus. + 'gpu', # depends on common and bus. ] if meson.is_cross_build() @@ -39,6 +40,8 @@ endif # these drivers must always be enabled, otherwise the build breaks always_enable = ['bus/pci', 'bus/vdev'] +# we always need a mempool driver, and ring is default, so make it mandatory +always_enable += ['mempool/ring'] enable_drivers += always_enable default_cflags = machine_args @@ -99,6 +102,7 @@ foreach subpath:subdirs # static builds. ext_deps = [] pkgconfig_extra_libs = [] + testpmd_sources = [] if not enable_drivers.contains(drv_path) build = false @@ -243,6 +247,10 @@ foreach subpath:subdirs set_variable('shared_@0@'.format(lib_name), shared_dep) set_variable('static_@0@'.format(lib_name), static_dep) dependency_name = ''.join(lib_name.split('rte_')) + if testpmd_sources.length() != 0 + testpmd_drivers_sources += testpmd_sources + testpmd_drivers_deps += dependency_name + endif if developer_mode message('drivers/@0@: Defining dependency "@1@"'.format( drv_path, dependency_name))