[U-Boot] [PATCH 1/2] smbios: add parsing API

Christian Gmeiner christian.gmeiner at gmail.com
Mon Apr 29 15:53:35 UTC 2019


Am Mo., 29. Apr. 2019 um 17:41 Uhr schrieb Simon Glass <sjg at chromium.org>:
>
> 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

Will try my best :)

-- 
greets
--
Christian Gmeiner, MSc

https://christian-gmeiner.info


More information about the U-Boot mailing list