add EM configuration for GPIOLeakDetector
Add entity manager configuration for GPIOLeakDetector based on
https://gerrit.openbmc.org/c/openbmc/entity-manager/+/75734.
Change-Id: I366700a523620b8f891298f544ad46ba175a1d14
Signed-off-by: Jagpal Singh Gill <paligill@gmail.com>
diff --git a/gen/xyz/openbmc_project/Configuration/GPIOLeakDetector/meson.build b/gen/xyz/openbmc_project/Configuration/GPIOLeakDetector/meson.build
new file mode 100644
index 0000000..0b2ad07
--- /dev/null
+++ b/gen/xyz/openbmc_project/Configuration/GPIOLeakDetector/meson.build
@@ -0,0 +1,35 @@
+# Generated file; do not modify.
+
+sdbusplus_current_path = 'xyz/openbmc_project/Configuration/GPIOLeakDetector'
+
+generated_sources += custom_target(
+ 'xyz/openbmc_project/Configuration/GPIOLeakDetector__cpp'.underscorify(),
+ input: [
+ '../../../../../yaml/xyz/openbmc_project/Configuration/GPIOLeakDetector.interface.yaml',
+ ],
+ output: [
+ 'common.hpp',
+ 'server.hpp',
+ 'server.cpp',
+ 'aserver.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/Configuration/GPIOLeakDetector',
+ ],
+ install: should_generate_cpp,
+ install_dir: [
+ get_option('includedir') / sdbusplus_current_path,
+ get_option('includedir') / sdbusplus_current_path,
+ false,
+ get_option('includedir') / sdbusplus_current_path,
+ get_option('includedir') / sdbusplus_current_path,
+ ],
+ build_by_default: should_generate_cpp,
+)
+
diff --git a/gen/xyz/openbmc_project/Configuration/meson.build b/gen/xyz/openbmc_project/Configuration/meson.build
index 9f5cc12..9a6171b 100644
--- a/gen/xyz/openbmc_project/Configuration/meson.build
+++ b/gen/xyz/openbmc_project/Configuration/meson.build
@@ -1,5 +1,6 @@
# Generated file; do not modify.
subdir('GPIODeviceDetect')
+subdir('GPIOLeakDetector')
sdbusplus_current_path = 'xyz/openbmc_project/Configuration'
@@ -20,3 +21,20 @@
build_by_default: should_generate_markdown,
)
+generated_markdown += custom_target(
+ 'xyz/openbmc_project/Configuration/GPIOLeakDetector__markdown'.underscorify(),
+ input: [ '../../../../yaml/xyz/openbmc_project/Configuration/GPIOLeakDetector.interface.yaml', ],
+ output: [ 'GPIOLeakDetector.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/Configuration/GPIOLeakDetector',
+ ],
+ install: should_generate_markdown,
+ install_dir: [inst_markdown_dir / sdbusplus_current_path],
+ build_by_default: should_generate_markdown,
+)
+
diff --git a/yaml/xyz/openbmc_project/Configuration/GPIOLeakDetector.interface.yaml b/yaml/xyz/openbmc_project/Configuration/GPIOLeakDetector.interface.yaml
new file mode 100644
index 0000000..0c71b98
--- /dev/null
+++ b/yaml/xyz/openbmc_project/Configuration/GPIOLeakDetector.interface.yaml
@@ -0,0 +1,43 @@
+description: >
+ Implement to provide entity manager configuration for the gpio based leak
+ detector.
+
+properties:
+ - name: Type
+ type: string
+ description: >
+ The type of configuration object.
+ flags:
+ - readonly
+ - name: Name
+ type: string
+ description: >
+ The name of the leak detector.
+ flags:
+ - readonly
+ - name: SubType
+ type: string
+ description: >
+ The type of leak detector from
+ https://redfish.dmtf.org/schemas/v1/LeakDetector.v1_2_0.json.
+ flags:
+ - readonly
+ - name: PinName
+ type: string
+ description: >
+ The GPIO pin name for the leak detector.
+ flags:
+ - readonly
+ - name: Polarity
+ type: string
+ description: >
+ The GPIO pin polarity depicting leak detector's active status.
+ flags:
+ - readonly
+ - name: Level
+ type: string
+ description: >
+ The severity level associated with the leak detector based on certain
+ attributes such as physical placement of detectors.
+ flags:
+ - readonly