obmc-flash-bmc: Don't overwrite u-boot env vars if already set

The BMC requests to set various u-boot environment variables during
Activation like Priority and UBI volume information. Some of these
variables may already be set to the requested value, but u-boot writes
a new entry in the u-boot env mtd device. Prevent wearing off this mtd
by checking if the values are the same before writing.

Tested: Verified that without the change the /dev/mtd2 (u-boot env)
appends a new string every time a variable is set even if it's already
set. Verified with change that no new string is added to the mtd device.

Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
Change-Id: I8e3c379dc078d5b6ab593fe9cbeebbbd346f29e8
1 file changed
tree: 3bd85a54ee811822e0851a4607fb613497cd3eca
  1. classes/
  2. common/
  3. conf/
  4. COPYING.apache-2.0
  5. COPYING.MIT
  6. LICENSE
  7. README.md
README.md

OpenBMC

meta-phosphor is the OpenBMC layer. This layer should be included for all OpenBMC systems. The OpenBMC layer contains content which is shared between all OpenBMC systems.