meta-openpower: Predicate packages on MACHINE_FEATURES

Change packages enabled by meta-openpower to be enabled if and only if
both its corresponding feature string (obmc-openpower,
obmc-openpower-extra, obmc-openpower-legacy) are present in both
MACHINE_FEATURES and DISTRO_FEATURES.

Fixes openbmc/openbmc#2652.

Change-Id: Ife1a9b08e94bd85a888d584a0caa4dbfa6a172c0
Signed-off-by: Xo Wang <xow@google.com>
diff --git a/common/recipes-phosphor/logging/phosphor-logging.bbappend b/common/recipes-phosphor/logging/phosphor-logging.bbappend
index ec5c68f..f4190ef 100644
--- a/common/recipes-phosphor/logging/phosphor-logging.bbappend
+++ b/common/recipes-phosphor/logging/phosphor-logging.bbappend
@@ -1,4 +1,4 @@
-DEPENDS_append = " \
-            openpower-debug-collector-native \
-            openpower-dbus-interfaces-native \
-            "
+DEPENDS_append = " ${@cf_enabled(d, 'obmc-openpower', '\
+        openpower-debug-collector-native \
+        openpower-dbus-interfaces-native \
+        ')}"