From ea6d93a724ab497ae59e4ea0ea56c33700ed4e4c Mon Sep 17 00:00:00 2001 From: Brad Bishop Date: Sat, 12 Nov 2016 12:02:24 -0500 Subject: pimgen: Rename interfaces to extra_interfaces.d Draw attention to the intent is that other packages install files here. Additionally these are 'extra' in that they are above and beyond the standard OpenBMC interfaces that will eventually be provided by a shared library. Change-Id: I8e50d39a1004ff24b1ea7de63e6534447c05a9d3 Signed-off-by: Brad Bishop --- .../xyz/openbmc_project/Example/Iface1.interface.yaml | 9 +++++++++ .../xyz/openbmc_project/Example/Iface2.interface.yaml | 9 +++++++++ .../interfaces/xyz/openbmc_project/Example/Iface1.interface.yaml | 9 --------- .../interfaces/xyz/openbmc_project/Example/Iface2.interface.yaml | 9 --------- pimgen.py | 2 +- 5 files changed, 19 insertions(+), 19 deletions(-) create mode 100644 example/extra_interfaces.d/xyz/openbmc_project/Example/Iface1.interface.yaml create mode 100644 example/extra_interfaces.d/xyz/openbmc_project/Example/Iface2.interface.yaml delete mode 100644 example/interfaces/xyz/openbmc_project/Example/Iface1.interface.yaml delete mode 100644 example/interfaces/xyz/openbmc_project/Example/Iface2.interface.yaml diff --git a/example/extra_interfaces.d/xyz/openbmc_project/Example/Iface1.interface.yaml b/example/extra_interfaces.d/xyz/openbmc_project/Example/Iface1.interface.yaml new file mode 100644 index 0000000..5d11fd1 --- /dev/null +++ b/example/extra_interfaces.d/xyz/openbmc_project/Example/Iface1.interface.yaml @@ -0,0 +1,9 @@ +description: > + Example interface for PIM. +properties: + - name: ExampleProperty1 + type: std::string + description: > + An example property. + +# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 diff --git a/example/extra_interfaces.d/xyz/openbmc_project/Example/Iface2.interface.yaml b/example/extra_interfaces.d/xyz/openbmc_project/Example/Iface2.interface.yaml new file mode 100644 index 0000000..09047a8 --- /dev/null +++ b/example/extra_interfaces.d/xyz/openbmc_project/Example/Iface2.interface.yaml @@ -0,0 +1,9 @@ +description: > + Example interface for PIM. +properties: + - name: ExampleProperty2 + type: std::string + description: > + An example property. + +# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 diff --git a/example/interfaces/xyz/openbmc_project/Example/Iface1.interface.yaml b/example/interfaces/xyz/openbmc_project/Example/Iface1.interface.yaml deleted file mode 100644 index 5d11fd1..0000000 --- a/example/interfaces/xyz/openbmc_project/Example/Iface1.interface.yaml +++ /dev/null @@ -1,9 +0,0 @@ -description: > - Example interface for PIM. -properties: - - name: ExampleProperty1 - type: std::string - description: > - An example property. - -# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 diff --git a/example/interfaces/xyz/openbmc_project/Example/Iface2.interface.yaml b/example/interfaces/xyz/openbmc_project/Example/Iface2.interface.yaml deleted file mode 100644 index 09047a8..0000000 --- a/example/interfaces/xyz/openbmc_project/Example/Iface2.interface.yaml +++ /dev/null @@ -1,9 +0,0 @@ -description: > - Example interface for PIM. -properties: - - name: ExampleProperty2 - type: std::string - description: > - An example property. - -# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 diff --git a/pimgen.py b/pimgen.py index f16b182..8e12944 100755 --- a/pimgen.py +++ b/pimgen.py @@ -65,7 +65,7 @@ if __name__ == '__main__': # Invoke sdbus++ to generate any extra interface bindings for # extra interfaces that aren't defined externally. yaml_files = [] - extra_ifaces_dir = os.path.join(args.inputdir, 'interfaces') + extra_ifaces_dir = os.path.join(args.inputdir, 'extra_interfaces.d') if os.path.exists(extra_ifaces_dir): for directory, _, files in os.walk(extra_ifaces_dir): if not files: -- cgit v1.2.3