
Am Mo., 29. Apr. 2019 um 17:41 Uhr schrieb Simon Glass sjg@chromium.org:
Hi,
On Thu, 25 Apr 2019 at 04:09, Alexander Graf agraf@csgraf.de wrote:
On 16.04.19 13:38, Christian Gmeiner wrote:
Add an very simple API to be able to access SMBIOS strings like vendor, model and bios version.
Signed-off-by: Christian Gmeiner christian.gmeiner@gmail.com
include/smbios.h | 37 ++++++++++ lib/Kconfig | 6 ++ lib/Makefile | 1 + lib/smbios-parser.c | 162 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 206 insertions(+) create mode 100644 lib/smbios-parser.c
Can you please also add a test for each of these functions, with sample data.
BTW here is some code to write fake tables in case it helps:
https://chromium-review.googlesource.com/c/chromiumos/platform2/+/1062212/6/...
Will try my best :)