From: Elena Agostini Date: Wed, 17 Nov 2021 21:39:01 +0000 (+0000) Subject: build: make gpudev optional X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=f64b299cb341284a1ddff21501979fb08e077d10;p=dpdk.git build: make gpudev optional This library can be made optional. drivers/gpu and app/test-gpudev depend on this library, so they are automatically disabled if the lib is disabled. Signed-off-by: Elena Agostini --- diff --git a/doc/guides/prog_guide/gpudev.rst b/doc/guides/prog_guide/gpudev.rst index e464109d35..ff4626812b 100644 --- a/doc/guides/prog_guide/gpudev.rst +++ b/doc/guides/prog_guide/gpudev.rst @@ -23,6 +23,9 @@ Out of scope of this library is to provide a wrapper for GPU specific libraries on the device or create GPU specific objects (e.g. CUDA Driver context or CUDA Streams in case of NVIDIA GPUs). +This library is optional in DPDK +and can be disabled with ``-Ddisable_libs=gpudev``. + Features -------- diff --git a/lib/meson.build b/lib/meson.build index dad9fce14d..018976df17 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -67,6 +67,7 @@ libraries = [ optional_libs = [ 'bitratestats', + 'gpudev', 'gro', 'gso', 'kni',