Drive: rename Interface to interface
Drive.Interface.yaml is not being processed and no server.hpp
is created. Renamed to Drive.interface.yaml instead.
Fixes openbmc/phosphor-dbus-interfaces#11.
Same change as in
https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-dbus-interfaces/+/43632
but that change was removed due to
https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-dbus-interfaces/+/43821
Change-Id: I3e1a7dbd84aeb92689eeedf9c613595f4e16ada3
Signed-off-by: Willy Tu <wltu@google.com>
diff --git a/gen/xyz/openbmc_project/Inventory/Item/Drive/meson.build b/gen/xyz/openbmc_project/Inventory/Item/Drive/meson.build
new file mode 100644
index 0000000..bdafb17
--- /dev/null
+++ b/gen/xyz/openbmc_project/Inventory/Item/Drive/meson.build
@@ -0,0 +1,14 @@
+# Generated file; do not modify.
+generated_sources += custom_target(
+ 'xyz/openbmc_project/Inventory/Item/Drive__cpp'.underscorify(),
+ input: [ '../../../../../../yaml/xyz/openbmc_project/Inventory/Item/Drive.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/Drive',
+ ],
+)
+
diff --git a/gen/xyz/openbmc_project/Inventory/Item/meson.build b/gen/xyz/openbmc_project/Inventory/Item/meson.build
index c9fd894..77d9be8 100644
--- a/gen/xyz/openbmc_project/Inventory/Item/meson.build
+++ b/gen/xyz/openbmc_project/Inventory/Item/meson.build
@@ -152,6 +152,20 @@
],
)
+subdir('Drive')
+generated_others += custom_target(
+ 'xyz/openbmc_project/Inventory/Item/Drive__markdown'.underscorify(),
+ input: [ '../../../../../yaml/xyz/openbmc_project/Inventory/Item/Drive.interface.yaml', ],
+ output: [ 'Drive.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/Drive',
+ ],
+)
+
subdir('Ethernet')
generated_others += custom_target(
'xyz/openbmc_project/Inventory/Item/Ethernet__markdown'.underscorify(),
diff --git a/yaml/xyz/openbmc_project/Inventory/Item/Drive.Interface.yaml b/yaml/xyz/openbmc_project/Inventory/Item/Drive.interface.yaml
similarity index 100%
rename from yaml/xyz/openbmc_project/Inventory/Item/Drive.Interface.yaml
rename to yaml/xyz/openbmc_project/Inventory/Item/Drive.interface.yaml