Parse only interface files generated by phosphor-dbus-interfaces
At present the common shared folder path has files from
phosphor-dbus-interfaces, openpower-dbus-interfaces and other
applications.
As Inventory manager is linked to only phosphor-dbus library
getting linker error for other interface files.
Change-Id: I66870f97aeaf4c8b5528187b2bfebdc9e8954106
Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
diff --git a/pimgen.py b/pimgen.py
index 2d47376..4711165 100755
--- a/pimgen.py
+++ b/pimgen.py
@@ -506,6 +506,9 @@
filter(lambda f: f.endswith('.interface.yaml'), files))
for y in yaml_files:
+ # parse only phosphor dbus related interface files
+ if not y.startswith('xyz'):
+ continue
with open(os.path.join(targetdir, y)) as fd:
i = y.replace('.interface.yaml', '').replace(os.sep, '.')