ibm: Add compatible strings for chassis
Add enums for the compatible strings used by entity-manager for the
various chassis types.
Change-Id: Ibea95513a38359b7c378add391afbb77235a4900
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/gen/com/ibm/Hardware/Chassis/meson.build b/gen/com/ibm/Hardware/Chassis/meson.build
new file mode 100644
index 0000000..3b83fb8
--- /dev/null
+++ b/gen/com/ibm/Hardware/Chassis/meson.build
@@ -0,0 +1,15 @@
+# Generated file; do not modify.
+generated_sources += custom_target(
+ 'com/ibm/Hardware/Chassis__cpp'.underscorify(),
+ input: [ '../../../../../yaml/com/ibm/Hardware/Chassis.interface.yaml', ],
+ output: [ 'common.hpp', 'server.cpp', 'server.hpp', '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',
+ 'com/ibm/Hardware/Chassis',
+ ],
+)
+
diff --git a/gen/com/ibm/Hardware/meson.build b/gen/com/ibm/Hardware/meson.build
new file mode 100644
index 0000000..d30ffa3
--- /dev/null
+++ b/gen/com/ibm/Hardware/meson.build
@@ -0,0 +1,16 @@
+# Generated file; do not modify.
+subdir('Chassis')
+generated_others += custom_target(
+ 'com/ibm/Hardware/Chassis__markdown'.underscorify(),
+ input: [ '../../../../yaml/com/ibm/Hardware/Chassis.interface.yaml', ],
+ output: [ 'Chassis.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',
+ 'com/ibm/Hardware/Chassis',
+ ],
+)
+
diff --git a/gen/com/ibm/meson.build b/gen/com/ibm/meson.build
index 85e2979..f6f99d2 100644
--- a/gen/com/ibm/meson.build
+++ b/gen/com/ibm/meson.build
@@ -1,5 +1,6 @@
# Generated file; do not modify.
subdir('Dump')
+subdir('Hardware')
subdir('Logging')
subdir('VPD')
generated_others += custom_target(
diff --git a/yaml/com/ibm/Hardware/Chassis.interface.yaml b/yaml/com/ibm/Hardware/Chassis.interface.yaml
new file mode 100644
index 0000000..f50b1d8
--- /dev/null
+++ b/yaml/com/ibm/Hardware/Chassis.interface.yaml
@@ -0,0 +1,15 @@
+description: >
+ This interface is never intended to be instantiated, but is used to define
+ enumerations for Compatible strings.
+
+enumerations:
+ - name: Model
+ description: >
+ Possible Chassis models used for compatible strings.
+ values:
+ - name: Bonnell
+ - name: Everest
+ - name: Rainier
+ - name: Rainier1S4U
+ - name: Rainier2U
+ - name: Rainier4U