From 6fc7fcd6b12cdf11552468244ea4b61d0c339d11 Mon Sep 17 00:00:00 2001 From: Adriana Kobylak Date: Mon, 18 Oct 2021 18:47:55 +0000 Subject: [PATCH] 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 --- meson.build | 7 +++++++ meson_options.txt | 1 + 2 files changed, 8 insertions(+) diff --git a/meson.build b/meson.build index aa2ce5a..33869a9 100644 --- a/meson.build +++ b/meson.build @@ -31,6 +31,7 @@ extra_unit_files = [] 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 @@ endif 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 @@ if get_option('device-type') == 'mmc' 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('tests', type: 'feature', description: 'Build tests.') 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')