X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fmeson.build;h=4daa2658b76362ddddc7e71ef8a7cc38d204b394;hb=5933c656b972441718d65275c6bdbec24ee71f9e;hp=b7d680868ad8bfeeac797b34e065bb94b9dd91f6;hpb=b36970f2e13eadd34aef0c5b611a10e345a6f5b0;p=dpdk.git diff --git a/drivers/meson.build b/drivers/meson.build index b7d680868a..4daa2658b7 100644 --- a/drivers/meson.build +++ b/drivers/meson.build @@ -10,15 +10,16 @@ subdirs = [ 'common/qat', # depends on bus. 'common/sfc_efx', # depends on bus. 'mempool', # depends on common and bus. + 'dma', # depends on common and bus. 'net', # depends on common, bus, mempool - 'raw', # depends on common, bus and net. + 'raw', # depends on common, bus, dma and net. 'crypto', # depends on common, bus and mempool (net in future). 'compress', # depends on common, bus, mempool. 'regex', # depends on common, bus, regexdev. 'vdpa', # depends on common, bus and mempool. 'event', # depends on common, bus, mempool and net. 'baseband', # depends on common and bus. - 'dma', # 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))