functions: Add runtime entries to bios attr string

Enhance the parsing of the JSON file to add runtime entries to the bios
attribute string. Currently, if the JSON contains a A.P10 and a
A.P10.iplTime entry, it will only add the iplTime entry to the bios
attribute string.
Instead of skipping the A.P10 entries when an iplTime entry exists, add
them as a runtime file (suffix _RT) to the bios attribute string for
hostboot to consume.

Tested: New _RT entries were created:
root@p10bmc:~# pldmtool bios GetBIOSAttributeCurrentValueByHandle -a
hb_lid_ids
{
    "CurrentValue":
"ATTR_PERM=81e00663,ATTR_TMP=81e00664,BMC_INV=81e0066e,BOOTKERNEL=81e00658,DEVTREE=81e00672,EECACHE=81e00679,GUARD=81e00667,HBB=81e0065a,HBBL=81e0065b,HBD=81e0068d,HBD_RT=81e00630,HBD_RW=81e00676,HBEL=81e00668,HBI=81e0065d,HBRT=81e0068e,HBRT_RT=81e00300,HB_VOLATILE=81e0066f,HCODE=81e00696,HCODE_LID=81e0067b,HCODE_LID_RT=81e00671,HCODE_RT=81e00602,HDAT=81e00669,IMA_CATALOG=81e0065e,NVRAM=81e0066b,OCC=81e00688,OCC_RT=81e00430,OCMBFW=81e0067a,PART=81e00670,PAYLOAD=81e00660,RINGOVD=81e00620,SBE=81e00661,SBKT=81e0066c,SECBOOT=81e0066d,UVISOR=81e00678,VERSION=81e00662,WOFDATA=81e00692,WOFDATA_RT=81e00440,pnor.toc=NA"
}

Change-Id: Id72106e859040f6054907adb51dd974f856d3796
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
1 file changed
tree: 7e157d1b5db77159ca8ddd8039d9e02f6b37ebbc
  1. dbus/
  2. mmc/
  3. static/
  4. test/
  5. ubi/
  6. vpnor/
  7. .clang-format
  8. .gitignore
  9. .shellcheck
  10. activation.cpp
  11. activation.hpp
  12. functions.cpp
  13. functions.hpp
  14. generate-tar
  15. generate-ubi
  16. image_verify.cpp
  17. image_verify.hpp
  18. item_updater.cpp
  19. item_updater.hpp
  20. item_updater_main.cpp
  21. LICENSE
  22. MAINTAINERS
  23. meson.build
  24. meson_options.txt
  25. msl_verify.cpp
  26. msl_verify.hpp
  27. msl_verify_main.cpp
  28. op-pnor-msl.service
  29. openpower-pnor-update@.service
  30. org.open_power.Software.Host.Updater.service
  31. OWNERS
  32. README.md
  33. utils.cpp
  34. utils.hpp
  35. version.cpp
  36. version.hpp
README.md

openpower-pnor-code-mgmt

OpenPower PNOR (Processor NOR) Code Management provides a set of host software management applications for OpenPower systems. The host firmware is stored on the PNOR chip. More information can be found at Software Architecture or Host Code Update

To Build

To build this package, do the following steps:

  1. meson build
  2. ninja -C build

To clean the repository run rm -r build.