common: Add new Priority interface
This commit introduces the new "Priority" interface, which is designed
to indicate the priority level of an entity. It can be used as a
decorator for other objects to specify their priority. While this
interface was initially developed for fan sensors, it can be applied to
various entities and is not limited to fans. This new interface provide
more specific information about the primary and secondary sensors, which
is needed for Redfish Fan schema.
bmcweb commit:
https://gerrit.openbmc.org/c/openbmc/bmcweb/+/57657
Change-Id: Iee875dbe627980139199a6d9a56fde3e5d651af0
Signed-off-by: Lakshmi Yadlapati <lakshmiy@us.ibm.com>
diff --git a/gen/xyz/openbmc_project/Common/Priority/meson.build b/gen/xyz/openbmc_project/Common/Priority/meson.build
new file mode 100644
index 0000000..6c61d6f
--- /dev/null
+++ b/gen/xyz/openbmc_project/Common/Priority/meson.build
@@ -0,0 +1,15 @@
+# Generated file; do not modify.
+generated_sources += custom_target(
+ 'xyz/openbmc_project/Common/Priority__cpp'.underscorify(),
+ input: [ '../../../../../yaml/xyz/openbmc_project/Common/Priority.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',
+ 'xyz/openbmc_project/Common/Priority',
+ ],
+)
+
diff --git a/gen/xyz/openbmc_project/Common/meson.build b/gen/xyz/openbmc_project/Common/meson.build
index cd6282e..7004139 100644
--- a/gen/xyz/openbmc_project/Common/meson.build
+++ b/gen/xyz/openbmc_project/Common/meson.build
@@ -118,6 +118,21 @@
],
)
+subdir('Priority')
+generated_others += custom_target(
+ 'xyz/openbmc_project/Common/Priority__markdown'.underscorify(),
+ input: [ '../../../../yaml/xyz/openbmc_project/Common/Priority.interface.yaml', ],
+ output: [ 'Priority.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/Common/Priority',
+ ],
+)
+
subdir('Progress')
generated_others += custom_target(
'xyz/openbmc_project/Common/Progress__markdown'.underscorify(),