Add kernel MCTP (AF_MCTP) support and transport-implementation option
-Added support for kernel MCTP (AF_MCTP) to enable MCTP communication
using AF_MCTP sockets.
- Introduced a new configuration option 'transport-implementation'
The 'transport-implementation' option can be set to either:
- 'mctp-demux': Uses the existing mctp-demux transport method.
- 'af-mctp': Uses the new kernel AF_MCTP transport method.
Change-Id: Ib2f7b97d0a96ceaa0cb0fc8cd7313e84c03bbd61
Signed-off-by: Pavithra Barithaya <pavithrabarithaya07@gmail.com>
diff --git a/meson.build b/meson.build
index a0fa425..7fea7c2 100644
--- a/meson.build
+++ b/meson.build
@@ -45,6 +45,12 @@
conf.set('CONFIG_PHAL_API', get_option('phal').allowed())
+if(get_option('transport-implementation')) == 'mctp-demux'
+ add_project_arguments('-DPLDM_TRANSPORT_WITH_MCTP_DEMUX', language : 'cpp')
+else
+ add_project_arguments('-DPLDM_TRANSPORT_WITH_AF_MCTP', language: 'cpp')
+endif
+
if cmplr.has_header('poll.h')
add_project_arguments('-DPLDM_HAS_POLL=1', language: 'cpp')
endif