openpower-dbus-interfaces: initial recipe
Resolves openbmc/openbmc#1167.
Change-Id: I6fd0029b7e2a160d7d8c91d29870a1cd1a32b1a0
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
diff --git a/meta-openbmc-machines/meta-openpower/classes/openpower-dbus-interfaces.bbclass b/meta-openbmc-machines/meta-openpower/classes/openpower-dbus-interfaces.bbclass
new file mode 100644
index 0000000..f79cf07
--- /dev/null
+++ b/meta-openbmc-machines/meta-openpower/classes/openpower-dbus-interfaces.bbclass
@@ -0,0 +1 @@
+op_yaml_dir="${datadir}/openpower-dbus-interfaces/yaml"
diff --git a/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/dbus/openpower-dbus-interfaces.bb b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/dbus/openpower-dbus-interfaces.bb
new file mode 100644
index 0000000..5d1c9fd
--- /dev/null
+++ b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/dbus/openpower-dbus-interfaces.bb
@@ -0,0 +1,35 @@
+SUMMARY = "Open POWER DBus Interfaces"
+DESCRIPTION = "Generated bindings, using sdbus++, for the openpower YAML"
+PR = "r1"
+
+S = "${WORKDIR}/git"
+
+inherit autotools pkgconfig
+inherit obmc-phosphor-license
+inherit pythonnative
+
+DEPENDS += "autoconf-archive-native"
+DEPENDS += "sdbus++-native"
+
+PACKAGE_BEFORE_PN = "${PN}-yaml"
+
+FILES_${PN}-yaml = "${datadir}/${PN}/yaml"
+
+SRC_URI += "git://github.com/openbmc/openpower-dbus-interfaces"
+SRCREV = "0862409f256cf29020d8f5fbb865fd711618b51f"
+
+DEPENDS_remove_class-native = "sdbus++-native"
+DEPENDS_remove_class-nativesdk = "sdbus++-native"
+
+PACKAGECONFIG ??= "libopenpower_dbus"
+PACKAGECONFIG[libopenpower_dbus] = " \
+ --enable-libopenpower_dbus, \
+ --disable-libopenpower_dbus, \
+ systemd sdbusplus, \
+ libsystemd sdbusplus \
+ "
+
+PACKAGECONFIG_remove_class-native = "libopenpower_dbus"
+PACKAGECONFIG_remove_class-nativesdk = "libopenpower_dbus"
+
+BBCLASSEXTEND += "native nativesdk"
diff --git a/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/packagegroups/nativesdk-packagegroup-sdk-host.bbappend b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/packagegroups/nativesdk-packagegroup-sdk-host.bbappend
new file mode 100644
index 0000000..e201766
--- /dev/null
+++ b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/packagegroups/nativesdk-packagegroup-sdk-host.bbappend
@@ -0,0 +1,3 @@
+RDEPENDS_${PN}_append = " \
+ nativesdk-openpower-dbus-interfaces \
+ "