Inventory: Add Item.Storage D-Bus Interface
Adding Storage interface to organize the Storage resource for Redfish.
Change-Id: I70222fa3d49a975a76629dd15379417904b628c0
Signed-off-by: Willy Tu <wltu@google.com>
diff --git a/gen/xyz/openbmc_project/Inventory/Item/Storage/meson.build b/gen/xyz/openbmc_project/Inventory/Item/Storage/meson.build
new file mode 100644
index 0000000..870b0f4
--- /dev/null
+++ b/gen/xyz/openbmc_project/Inventory/Item/Storage/meson.build
@@ -0,0 +1,14 @@
+# Generated file; do not modify.
+generated_sources += custom_target(
+ 'xyz/openbmc_project/Inventory/Item/Storage__cpp'.underscorify(),
+ input: [ '../../../../../../yaml/xyz/openbmc_project/Inventory/Item/Storage.interface.yaml', ],
+ output: [ 'server.cpp', 'server.hpp', 'client.hpp', ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'cpp',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.current_source_dir() / '../../../../../../yaml',
+ 'xyz/openbmc_project/Inventory/Item/Storage',
+ ],
+)
+
diff --git a/gen/xyz/openbmc_project/Inventory/Item/meson.build b/gen/xyz/openbmc_project/Inventory/Item/meson.build
index c301158..c9fd894 100644
--- a/gen/xyz/openbmc_project/Inventory/Item/meson.build
+++ b/gen/xyz/openbmc_project/Inventory/Item/meson.build
@@ -320,6 +320,20 @@
],
)
+subdir('Storage')
+generated_others += custom_target(
+ 'xyz/openbmc_project/Inventory/Item/Storage__markdown'.underscorify(),
+ input: [ '../../../../../yaml/xyz/openbmc_project/Inventory/Item/Storage.interface.yaml', ],
+ output: [ 'Storage.md' ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'markdown',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.current_source_dir() / '../../../../../yaml',
+ 'xyz/openbmc_project/Inventory/Item/Storage',
+ ],
+)
+
subdir('StorageController')
generated_others += custom_target(
'xyz/openbmc_project/Inventory/Item/StorageController__markdown'.underscorify(),
diff --git a/yaml/xyz/openbmc_project/Inventory/Item/Storage.interface.yaml b/yaml/xyz/openbmc_project/Inventory/Item/Storage.interface.yaml
new file mode 100644
index 0000000..bc8fa8d
--- /dev/null
+++ b/yaml/xyz/openbmc_project/Inventory/Item/Storage.interface.yaml
@@ -0,0 +1,2 @@
+description: >
+ Implement to provide storage attributes.