]> git.ozlabs.org Git - petitboot/commit
lib/flash: Add support for platform versions
authorSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>
Mon, 14 Dec 2015 23:02:31 +0000 (10:02 +1100)
committerSam Mendoza-Jonas <sam@mendozajonas.com>
Tue, 9 Feb 2016 02:40:15 +0000 (13:40 +1100)
commitaaeba8e515e6b3416718b7feac985f01fb948b8f
tree414a6a796682d2d2c9128e49f8c32e9b2a025617
parent9239994cdedfc5dd70e3c5d27ea92754674aaa1f
lib/flash: Add support for platform versions

Add basic libflash support to read the VERSION partition on BMC
machines. This adds a dependency on the libflash shared library from
Skiboot.
The MTD partition is accessed through the libflash helper functions.
Once read into a buffer, the VERSION partition is a simple list of
newline-terminated version strings. Some BMC platforms may have two
'sides' to flash - these are interpreted as the "current" and "other"
sides depending on which one the current Petitboot is running from.

Signed-off-by: Sam Mendoza-Jonas <sam@mendozajonas.com>
lib/Makefile.am
lib/flash/config.h [new file with mode: 0644]
lib/flash/flash.c [new file with mode: 0644]
lib/flash/flash.h [new file with mode: 0644]