aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2019-06-10 12:27:52 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2020-08-21 06:30:10 -0400
commita9c9727c028329e18ee3dcabb75f906147936fac (patch)
tree7fe27300de3231cef72a5eb93298ec5e8aa3cb24 /contrib
parent99650b628f03564d5c2ac022eb0430ddaab038da (diff)
contrib/rdmacm-mux: convert to Meson
We can use config-host.mak to decide whether the tool has to be built, apart from that the conversion is straightforward. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/rdmacm-mux/Makefile.objs3
-rw-r--r--contrib/rdmacm-mux/meson.build9
2 files changed, 9 insertions, 3 deletions
diff --git a/contrib/rdmacm-mux/Makefile.objs b/contrib/rdmacm-mux/Makefile.objs
deleted file mode 100644
index 3df744af89..0000000000
--- a/contrib/rdmacm-mux/Makefile.objs
+++ /dev/null
@@ -1,3 +0,0 @@
-ifdef CONFIG_PVRDMA
-rdmacm-mux-obj-y = main.o
-endif
diff --git a/contrib/rdmacm-mux/meson.build b/contrib/rdmacm-mux/meson.build
new file mode 100644
index 0000000000..6cc5016747
--- /dev/null
+++ b/contrib/rdmacm-mux/meson.build
@@ -0,0 +1,9 @@
+if 'CONFIG_PVRDMA' in config_host
+ # if not found, CONFIG_PVRDMA should not be set
+ # FIXME: broken on big endian architectures
+ libumad = cc.find_library('ibumad', required: true)
+ executable('rdmacm-mux', files('main.c'),
+ dependencies: [glib, libumad],
+ build_by_default: false,
+ install: false)
+endif