Skip to content

Commit

Permalink
Add a new pldm feature option
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
anoo1 committed Oct 18, 2021
1 parent 9c2ef68 commit 6fc7fcd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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()
Expand Down Expand Up @@ -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',
]
Expand Down
1 change: 1 addition & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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')

0 comments on commit 6fc7fcd

Please sign in to comment.