writefrudata: validate multi-record data

It is fail to parse FRU data with multi-record area available as its
header data is different from other areas.
Support validate multi-record data so that can parse FRU data with
multi-record enabled.

Tested:
1. Check if the FRU with multi-record can be parsed.
2. Check IPMI fru print command.
  FRU Device Description : Builtin FRU Device (ID 0)
   Chassis Type          : Rack Mount Chassis
   Chassis Serial        : A1A1-A000-0000000000123
   Board Mfg Date        : Tue Feb  4 00:00:00 2020 UTC
   Board Mfg             : AmpereComputing(R)
   Board Product         : MT.JADE
   Board Serial          : 9510002CJ0LA
   Board Part Number     : B81.03010.0001
   Product Manufacturer  : AmpereComputing(R)
   Product Name          : MT.JADE
   Product Part Number   : AC82830AC10C
   Product Version       : PR010
   Product Serial        : AMPX3A1-A000-0000000000123

Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com>
Change-Id: I163c5c7bff2f7315e9c6b610f5074c37bc167ccf
2 files changed
tree: b27da9dcba5e32df10ffcdedd1f3e18212966010
  1. scripts/
  2. .clang-format
  3. .gitignore
  4. bootstrap.sh
  5. configure.ac
  6. fru_area.cpp
  7. fru_area.hpp
  8. frup.cpp
  9. frup.hpp
  10. LICENSE
  11. MAINTAINERS
  12. Makefile.am
  13. readeeprom.cpp
  14. README.md
  15. strgfnhandler.cpp
  16. types.hpp
  17. writefrudata.cpp
  18. writefrudata.hpp
README.md

To Build

To build this package, do the following steps:

    1. ./bootstrap.sh
    2. ./configure ${CONFIGURE_FLAGS}
    3. make

To full clean the repository again run `./bootstrap.sh clean`.