path: root/meson_options.txt
diff options
authorNelio Laranjeiro <>2018-08-31 09:16:05 +0200
committerFerruh Yigit <>2018-09-28 01:41:01 +0200
commit96d7c62a70c7d636001de887f8b739a2be88d1b5 (patch)
tree8a592e86a15f276697c50f619a98702775d89fe3 /meson_options.txt
parent2b39bf0f75ab07851f61a298e0280da3d009a9b3 (diff)
net/mlx5: support meson build
Compile Mellanox driver when its external dependencies are met. A glue version of the driver can still be requested by using the -Denable_driver_mlx_glue=true Meson will try to find the required external libraries. When they are not installed system wide, they can be provided though CFLAGS, LDFLAGS and LD_LIBRARY_PATH environment variables, example (considering RDMA-Core is installed in /tmp/rdma-core): # CLFAGS=-I/tmp/rdma-core/build/include \ LDFLAGS=-L/tmp/rdma-core/build/lib \ LD_LIBRARY_PATH=/tmp/rdma-core/build/lib \ meson output # LD_LIBRARY_PATH=/tmp/rdma-core/build/lib \ ninja -C output install Note: LD_LIBRARY_PATH before ninja is necessary when the meson configuration has changed (e.g. meson configure has been called), in such situation the LD_LIBRARY_PATH is necessary to invoke the autoconfiguration script. Signed-off-by: Nelio Laranjeiro <> Signed-off-by: Shahaf Shuler <> Acked-by: Bruce Richardson <>
Diffstat (limited to 'meson_options.txt')
1 files changed, 2 insertions, 0 deletions
diff --git a/meson_options.txt b/meson_options.txt
index d38ba56..d14bde8 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -1,5 +1,7 @@
option('allow_invalid_socket_id', type: 'boolean', value: false,
description: 'allow out-of-range NUMA socket id\'s for platforms that don\'t report the value correctly')
+option('enable_driver_mlx_glue', type: 'boolean', value: false,
+ description: 'Enable glue library for Mellanox PMDs')
option('enable_kmods', type: 'boolean', value: true,
description: 'build kernel modules')
option('enable_docs', type: 'boolean', value: false,