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/packagegroups/packagegroup-obmc-phosphor-debugtools.bbappend b/common/recipes-phosphor/packagegroups/packagegroup-obmc-phosphor-debugtools.bbappend
index bb3db38..a6089bb 100644
--- a/common/recipes-phosphor/packagegroups/packagegroup-obmc-phosphor-debugtools.bbappend
+++ b/common/recipes-phosphor/packagegroups/packagegroup-obmc-phosphor-debugtools.bbappend
@@ -1,5 +1,5 @@
-RDEPENDS_${PN}_append = " \
+RDEPENDS_${PN}_append = " ${@cf_enabled(d, 'obmc-openpower-extra', '\
     pflash \
     gard \
     fsidbg \
-    "
+    ')}"