Add xyz.openbmc_project.Console.UART
Formalize an ad-hoc interface currently implemented in obmc-console.
This will contain attributes for each console object that is connected
to a physical UART. Other console objects (e.g. VUART) would not
implement this interface. could be extended to support additional
console attributes, but for now a writable `Baud` property is the only
item.
Change-Id: Ib4c9f1e24b4843281c222e882586a0fd44af723b
Signed-off-by: Jonathan Doman <jonathan.doman@intel.com>
diff --git a/gen/xyz/openbmc_project/Console/UART/meson.build b/gen/xyz/openbmc_project/Console/UART/meson.build
new file mode 100644
index 0000000..8256242
--- /dev/null
+++ b/gen/xyz/openbmc_project/Console/UART/meson.build
@@ -0,0 +1,15 @@
+# Generated file; do not modify.
+generated_sources += custom_target(
+ 'xyz/openbmc_project/Console/UART__cpp'.underscorify(),
+ input: [ '../../../../../yaml/xyz/openbmc_project/Console/UART.interface.yaml', ],
+ output: [ 'common.hpp', 'server.cpp', 'server.hpp', 'client.hpp', ],
+ depend_files: sdbusplusplus_depfiles,
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'cpp',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.current_source_dir() / '../../../../../yaml',
+ 'xyz/openbmc_project/Console/UART',
+ ],
+)
+
diff --git a/gen/xyz/openbmc_project/Console/meson.build b/gen/xyz/openbmc_project/Console/meson.build
index 47f5fad..854b5a4 100644
--- a/gen/xyz/openbmc_project/Console/meson.build
+++ b/gen/xyz/openbmc_project/Console/meson.build
@@ -14,3 +14,18 @@
],
)
+subdir('UART')
+generated_others += custom_target(
+ 'xyz/openbmc_project/Console/UART__markdown'.underscorify(),
+ input: [ '../../../../yaml/xyz/openbmc_project/Console/UART.interface.yaml', ],
+ output: [ 'UART.md' ],
+ depend_files: sdbusplusplus_depfiles,
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'markdown',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.current_source_dir() / '../../../../yaml',
+ 'xyz/openbmc_project/Console/UART',
+ ],
+)
+
diff --git a/yaml/xyz/openbmc_project/Console/UART.interface.yaml b/yaml/xyz/openbmc_project/Console/UART.interface.yaml
new file mode 100644
index 0000000..e30c443
--- /dev/null
+++ b/yaml/xyz/openbmc_project/Console/UART.interface.yaml
@@ -0,0 +1,6 @@
+description: Serial console configuration.
+
+properties:
+ - name: Baud
+ type: uint64
+ description: Data transmission rate of the serial console.