Add a new pldm feature option

The openpower-process-host-firmware and openpower-update-bios-attr-table
set up the system to use the PLDM protocol instead of hiomap (mboxd).
Since tacoma uses emmc but does not support the host PLDM protocol, need
to make it an optional feature.
Create an optional pldm feature so that the p10bmc systems can opt-in to
it. Once all the PLDM support is in place in the host side, the mboxd
support can be removed from systems that enable this new pldm option.

Tested: Enabled this new pldm feature in p10bmc, verified tacoma and
p10bmc reached power on.

Change-Id: I38a71ab3a639f132caa1e6565cca7ab319c23943
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/meson.build b/meson.build
index aa2ce5a..33869a9 100644
--- a/meson.build
+++ b/meson.build
@@ -31,6 +31,7 @@
 extra_scripts = []
 
 build_vpnor = get_option('vpnor').enabled()
+build_pldm = get_option('pldm').enabled()
 build_verify_signature = get_option('verify-signature').enabled()
 
 if not cxx.has_header('CLI/CLI.hpp')
@@ -39,6 +40,7 @@
 
 summary('building for device type', '@0@'.format(get_option('device-type')))
 summary('building vpnor', build_vpnor)
+summary('building pldm', build_pldm)
 summary('building signature verify', build_verify_signature)
 
 subs = configuration_data()
@@ -124,6 +126,11 @@
     extra_unit_files += [
         'mmc/obmc-flash-bios-init.service',
         'mmc/obmc-flash-bios-patch.service',
+    ]
+endif
+
+if build_pldm
+    extra_unit_files += [
         'mmc/openpower-process-host-firmware.service',
         'mmc/openpower-update-bios-attr-table.service',
     ]
diff --git a/meson_options.txt b/meson_options.txt
index 65638ca..5e87c44 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -2,5 +2,6 @@
 option('oe-sdk', type: 'feature', description: 'Enable OE SDK')
 option('device-type', type: 'combo', choices: ['static', 'ubi', 'mmc'], description: 'Select which device type to support')
 option('vpnor', type: 'feature', description: 'Enable virtual PNOR support')
+option('pldm', type: 'feature', description: 'Enable Host PLDM support')
 option('verify-signature', type: 'feature', description: 'Enable image signature validation')
 option('msl', type: 'string', description: 'Minimum Ship Level')