smbios-mdr: Fix the index while modifying dimm objects

Since all the dimms are being iterated in order of device locator for
all the dimm the index in the array should be same which is the order
they were inserted (but the index in the smbios can be different).

In the original block (i.e without the feature), we are also checking
the same logic. While copying the logic to the new feature, that was
missed.

Tested: In multihost machine, swapped the smbios content and reboot. The
machine showed all the dimm values properly.

Fusion-Link: fusion2 link in the comment
Affected-Platforms: Platform21 and platform15
Google-Bug-Id: 445181807
Change-Id: I9e4d7f3931735e4b2ab1ed1af967e10ba19c5799
Signed-off-by: Munawar Hussain <munawarhussain@google.com>
1 file changed
tree: a87454ee7cc45308170989fee0b1efb3d19ea4a9
  1. classes/
  2. conf/
  3. dynamic-layers/
  4. recipes-bsp/
  5. recipes-connectivity/
  6. recipes-core/
  7. recipes-devtools/
  8. recipes-extended/
  9. recipes-google/
  10. recipes-kernel/
  11. recipes-phosphor/
  12. recipes-support/
  13. recipes-tpm1/
  14. recipes-tpm2/
  15. LICENSE
  16. README.md
README.md

meta-gbmc-staging

This repository contains additions to the openbmc/meta-google layer that are not yet ready for OpenBMC inclusion.

How to use this layer

  1. Clone openbmc/openbmc from GitHub.
  2. Clone this layer from GitHub into a subdirectory of openbmc.