meta-ibm: add phal machine feature checks

The p10bmc machines require the phal and op-fsi features to be enabled
to function properly.

Tested:
- Confirmed both features enabled on p10bmc machine
- Confirmed only op-fsi was enabled on witherspoon

Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: Id01cae6246204a025f4401d0d2c26ccda78d7d77
diff --git a/meta-ibm/recipes-phosphor/host/op-proc-control_git.bbappend b/meta-ibm/recipes-phosphor/host/op-proc-control_git.bbappend
new file mode 100644
index 0000000..47869c4
--- /dev/null
+++ b/meta-ibm/recipes-phosphor/host/op-proc-control_git.bbappend
@@ -0,0 +1 @@
+PACKAGECONFIG:append:p10bmc = " phal"
diff --git a/meta-openpower/recipes-phosphor/host/op-proc-control_git.bb b/meta-openpower/recipes-phosphor/host/op-proc-control_git.bb
index ad66ab4..90c50fc 100644
--- a/meta-openpower/recipes-phosphor/host/op-proc-control_git.bb
+++ b/meta-openpower/recipes-phosphor/host/op-proc-control_git.bb
@@ -24,6 +24,13 @@
 # For libpdbg, provided by the pdbg package
 DEPENDS += "pdbg"
 
+PACKAGECONFIG ??= "${@bb.utils.filter('OBMC_MACHINE_FEATURES', 'phal op-fsi', d)}"
+PACKAGECONFIG[phal] = "-Dphal=enabled, -Dphal=disabled -Dp9=enabled, ipl pdata"
+PACKAGECONFIG[op-fsi] = "-Dopenfsi=enabled, -Dopenfsi=disabled"
+
+# By default all openpower systems support op-fsi
+PACKAGECONFIG = " op-fsi"
+
 TEMPLATE = "pcie-poweroff@.service"
 INSTANCE_FORMAT = "pcie-poweroff@{}.service"
 INSTANCES = "${@compose_list(d, 'INSTANCE_FORMAT', 'OBMC_CHASSIS_INSTANCES')}"