[dpdk-dev] [PATCH 3/5] distributor: skip building if power library not found

Hunt, David david.hunt at intel.com
Tue Apr 9 11:37:32 CEST 2019


On 9/4/2019 10:29 AM, Bruce Richardson wrote:
> The power library is not built on non-Linux systems, so skip the
> distributor sample if it's not found, as it's a mandatory dependency.
>
> Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
> ---
>   examples/distributor/meson.build | 3 +++
>   1 file changed, 3 insertions(+)
>
> diff --git a/examples/distributor/meson.build b/examples/distributor/meson.build
> index 8cf2ca1da..26f108d65 100644
> --- a/examples/distributor/meson.build
> +++ b/examples/distributor/meson.build
> @@ -6,6 +6,9 @@
>   # To build this example as a standalone application with an already-installed
>   # DPDK instance, use 'make'
>   
> +# require the power library
> +build = dpdk_conf.has('RTE_LIBRTE_POWER')
> +
>   deps += ['distributor', 'power']
>   sources = files(
>   	'main.c'


Acked-by: David Hunt <david.hunt at intel.com>





More information about the dev mailing list