[U-Boot] [PATCH 1/2] smbios: add parsing API
Simon Glass
sjg at chromium.org
Mon Apr 29 15:41:06 UTC 2019
Hi,
On Thu, 25 Apr 2019 at 04:09, Alexander Graf <agraf at 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 at 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/chromeos-config/libcros_config/identity_x86.cc
Regards,
Simon
More information about the U-Boot
mailing list