add rtu and common dirs
Add rtu (remote terminal unit) and common dirs and enable this in top
level meson.build file. Add meson option for modbus-rtu and
conditionally include rtu based on this option.
Tested: meson build passed.
Change-Id: I9b3b061cf31ebb5195854f89ce399bc765c64a85
Signed-off-by: Jagpal Singh Gill <paligill@gmail.com>
diff --git a/common/meson.build b/common/meson.build
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/common/meson.build
@@ -0,0 +1 @@
+
diff --git a/meson.build b/meson.build
index d73b2e1..9bd3146 100644
--- a/meson.build
+++ b/meson.build
@@ -16,3 +16,9 @@
phosphor_logging_dep,
sdbusplus_dep,
]
+
+subdir('common')
+
+if get_option('modbus-rtu').allowed()
+ subdir('rtu')
+endif
diff --git a/meson.options b/meson.options
new file mode 100644
index 0000000..01f8577
--- /dev/null
+++ b/meson.options
@@ -0,0 +1,7 @@
+option(
+ 'modbus-rtu',
+ type: 'feature',
+ value: 'enabled',
+ description: 'Enable modbus RTU.',
+)
+
diff --git a/rtu/meson.build b/rtu/meson.build
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/rtu/meson.build
@@ -0,0 +1 @@
+