rtu: add mock modbus test device
Add the mocked modbus test device/server. The purpose of this mocked
device is to help facilitate testing on Qemu VM. More details are
captured in Readme.md file.
Change-Id: I3b09f4057ea5cc03db101b81f435ae772d51d601
Signed-off-by: Jagpal Singh Gill <paligill@gmail.com>
diff --git a/mocked_test_device/meson.build b/mocked_test_device/meson.build
new file mode 100644
index 0000000..116129b
--- /dev/null
+++ b/mocked_test_device/meson.build
@@ -0,0 +1,9 @@
+executable(
+ 'mock-modbus-server',
+ ['mock_modbus_server.cpp'],
+ include_directories: ['.', common_include],
+ dependencies: [default_deps, modbus_rtu_dep],
+ link_with: [modbus_rtu_lib],
+ install: true,
+ install_dir: get_option('libexecdir') / 'phosphor-modbus',
+)